MyMobileWeb TelephoneCaller Tag
From Morfeo Wiki
Contents |
Overview
Telephonecaller control allows the user to make phone calls directly from device's browser, provided the device includes this capability. If the control contains text, this text will be shown as a link in the page. If not, the phone number will be shown as a link.
Attributes
The attributes supported by this tag are the following:
- Attribute: id (required)
Identifier for this control. - Attribute: style
Reference to the CSS2 style for this component, or a E.L. which solves this reference. - Attribute: display
E.L. which contains the condition to show the control or not.
Default value: true. - Attribute: number (required)
Represents the telephone number. It must not have any spaces or other characters between the digits and it is recommended to precede it always with the country number. For example a correct spanish phone number would be +34913458745. An E.L. which resolves the phone number is also allowed. - Attribute: cti
The cti attribute (Computer Telephony Integration) allows interactions between the phone and a computer, including pauses and user actions. This is usually useful for voice services, or to make a phone call through a phone switchboard.
For example a cti string can be: +34913458745/,,12345#,678.
CSS styles
img-display style:
This control has a resourceid associated: _MYMW_IMG_TELEPHONE. With this style you can stay if the image should be shown at the left of the control. The allowed values are:
- both: Show the image and also the phone number.
- none: Only the phone number will be shown.
Default value is both.
If needed, the image resource provided by MyMobileWeb can be changed.
Example
This example is a MyMobileWeb presentation which contains the Telephonecaller control to allow the user to make phone calls. Note that both the value of number attribute and control text are Expression Languages, so we use binding to associate context and control data. No style properties are explicity set so it will take default values, for example the image resource will be shown.
- Another telephonecaller example is available in Basic Examples [1]





