XML/Minibrowser/SnomIPPhoneMenu

From Snom User Wiki

Jump to: navigation, search

Overview

The <SnomIPPhoneMenu> constructs a menu as a list of text items. The user can choose a menu item to request the page with the URL that is associated with the menu item.

Syntax

  • Sub Tags:
    • <Title>
    • <MenuItem>
    • <URL>

Example

<?xml version="1.0" encoding="UTF-8"?>

<SnomIPPhoneMenu>
<Title>Menu</Title>
<MenuItem>
<Name>Readme First</Name>
<URL>http://www.snom.com/minibrowser/readme.xml</URL>
</MenuItem>
<MenuItem>
<Name>Ken and Dennis</Name>
<URL>http://www.snom.com/minibrowser/ken_dennis.xml</URL>
</MenuItem>
<MenuItem>
<Name>Lejla bmp in xml</Name>
<URL>http://www.snom.com/minibrowser/lejla_image.xml</URL>
</MenuItem>
<MenuItem>
<Name>Picture of snom320</Name>
<URL>http://www.snom.com/minibrowser/snom320_image.xml</URL>
</MenuItem>
<MenuItem>
<Name>Picture of snom VoIP box</Name>
<URL>http://www.snom.com/minibrowser/snombox_image.xml</URL>
</MenuItem>
<MenuItem>
<Name>internal telefonlist of snom</Name>
<URL>http://www.snom.com/minibrowser/telbook.xml</URL>
</MenuItem>
<MenuItem>
<Name>send data to php-server</Name>
<URL>http://www.snom.com/minibrowser/input.xml</URL>
</MenuItem>
<SoftKeyItem>
<Name>#</Name>
<URL>http://www.snom.com/minibrowser/start.xml</URL>
</SoftKeyItem>
<SoftKeyItem>
<Name>*</Name>
<URL>http://www.snom.com/minibrowser/start.xml</URL>
</SoftKeyItem>
</SnomIPPhoneMenu>

result:

Image:menu1.gif

Since release 7.1.18 you can use sel=true, e.g.

<MenuItem sel=true>
 ...
</MenuItem>

another example:

<DirectoryEntry sel="true">
  <Name>Tom Bauer</Name>
  <Telephone>123456</Telephone>
</DirectoryEntry>

to preselect the item.

Please note: Try to avoid multiple elements with sel=true (1, "true" work too) as the last found / parsed will "win".

Personal tools
Interoperability