Alert

Alert is used for short notifications. You can display some error messages, warnings or infos.

Format

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:locify="http://client.locify.com/locify_ns/1.0" xml:lang="en" lang="en">
  <head>
    <title>Title-of-alert</title>
  </head>
  <body class="alert">
    <div>
      <p class="text">Alert-text</p>
      <a href="Next-url" class="next">next</a>
      <locify:timeout value="Timeout-value" />
    </div>
  </body>
</html>

Parameters

  • Title-of-alert - Heading of alert. Titles Info, Warning or Error are recommended.
  • Alert-text - Text of alert
  • Next-url - After alert is dismissed, user will be redirected to this URL. You can also use URL's of internal Locify screens.
  • locify:timeout(optional) - Alert timeout in miliseconds specified in Timeout-value. When there is no timeout, client waits until user dismisses alert.

Example

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:locify="http://client.locify.com/locify_ns/1.0" xml:lang="en" lang="en">
  <head>
    <title>Warning</title>
  </head>
  <body class="alert">
    <div>
      <p class="text">This cool alert is used just for demonstration!</p>
      <a href="locify://mainScreen" class="next">next</a>
      <locify:timeout value="6000" />
    </div>
  </body>
</html>

How it looks like

Alert screenshot