Locify namespace

Namespaces are extensions to XHTML. Regular browser ignores them, but Locify client can offer user additional functionality. When writing page for Locify, you can use several tags starting with "locify:".

<locify:variables>

This tag is used for setting values of the form input's or select's. It has same effect as setting <input value="default">. But in this tag, you can use variables to obtain location and other data. It is mostly used for settings values of hidden fields in forms.

One <locify:variables> can have several <locify:element> elements. The <locify:element> have attributes "name" and "value". Locify searches the form for input named the same as "name" and replaces default value for the value specified in "value". See the example in acquire location.

<locify:where>

This tag is placed into forms and it is a visual component which allows user to select his location. See the example and screenshot in acquire location.

<locify:contact>

This tag is an form element - visual component. It allow user to access his phonebook and input phone number or e-mail.

Format:
<locify:contact name="name_of_input" type="contact_type" />
  • name_of_input means what name will appear in POST data
  • contact_type can be "tel" (for phone number) or "email" (for e-mail)

<locify:vibrate>

You can vibrate with the phone to alert user. You can specify duration of vibration in duration attribute in miliseconds.

Format:
<locify:vibrate duration="duration" />

<locify:blink>

You can light up the diplay to maximum light for some time. You can specify duration of blink in duration attribute in miliseconds.

Format:
<locify:blink duration="duration" />