Main:Home: Difference between revisions

m
Tags: Mobile edit Mobile web edit
Tags: Mobile edit Mobile web edit
Line 66: Line 66:


=== Scripting examples ===
=== Scripting examples ===
{{NoteLine|Insert here an announcement & maybe an intro


{| class="wikitable" width="100%" align="left"
|+ Example: To open a contact given a <u>Web account</u> with a profile containing a phone number to use, a Memento Intent object using an Android action to view «<u>'''TBD'''</u>»
{{NoteLine|Finish table caption & align the columns to the left}}
<pre>
<pre>
var w ="https://wa.me/phone_number"
var w ="https://wa.me/phone_number"
Line 73: Line 77:
i.send()
i.send()


The difficulty may be in concatenating https://wa.me/ to the contact number, which is achieved with three variables:
// The difficulty may be in concatenating https://wa.me/ to the contact number,
//    which is achieved with three variables:


var w1 = "https://wa.me/"
var w1 = "https://wa.me/"; var t = entry().field ("Phone"); var w = w1 + t;
var t = entry().field ("Phone")
var w = w1 + t;


'''Example'''
'''Example'''
Line 94: Line 97:


// Line breaks, if necessary in view of the data to be sent, are achieved with \n to insert into a variable and then join.
// Line breaks, if necessary in view of the data to be sent, are achieved with \n to insert into a variable and then join.
'''Example'''


var ml = "\n"
var ml = "\n"