Content

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen

Usage notes:

  • See also http://phone_ip/minibrowser.htm?show=RENDERED_XML when running example code for sel callback result.
  • sel Value is the id of the menu / menuitem where the cursor is located
    • Into the RENDERED_XML phone web page: this will actually show the actual menu / menuitem id when you refresh the page
    • In PUI (phone display): it will only show the first menu / menuitem id, when it is not in the first menu / menuitem
  • lastsel Value is the id of the last menuitem id where the cursor in the last menu located. As example when you change from first menu to second menu the lastsel callback will return id of the menuitem in first menu, where the cursor was last located.


Example code:

Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"?>
<SnomIPPhoneMenu track="yes">
<Menu name="l1menu1" id="l1menu1">
<MenuItem name="l2mi1:$(sel),$(lastsel)" id="l2m1mi1"><Url>snom://mb_nop</Url></MenuItem>
<MenuItem name="l2mi2:$(sel),$(lastsel)" id="l2m1mi2"><Url>snom://mb_nop</Url></MenuItem>
<MenuItem name="l2mi3:$(sel),$(lastsel)" id="l2m1mi3"><Url>snom://mb_nop</Url></MenuItem>
<MenuItem name="l2mi4:$(sel),$(lastsel)" id="l2m1mi4"><Url>snom://mb_nop</Url></MenuItem>
</Menu>
<Menu name="l1menu2" id="l1menu2">
<MenuItem name="l2mi1:$(sel),$(lastsel)" id="l2m2mi1"><Url>snom://mb_nop</Url></MenuItem>
<MenuItem name="l2mi2:$(sel),$(lastsel)" id="l2m2mi2"><Url>snom://mb_nop</Url></MenuItem>
<MenuItem name="l2mi3:$(sel),$(lastsel)" id="l2m2mi3"><Url>snom://mb_nop</Url></MenuItem>
<MenuItem name="l2mi4:$(sel),$(lastsel)" id="l2m2mi4"><Url>snom://mb_nop</Url></MenuItem>
</Menu>
<Menu name="l1menu3" id="l1menu3" >
<MenuItem name="l2mi1:$(sel),$(lastsel)" id="l2m3mi1"><Url>snom://mb_nop</Url></MenuItem>
<MenuItem name="l2mi2:$(sel),$(lastsel)" id="l2m3mi2"><Url>snom://mb_nop</Url></MenuItem>
<MenuItem name="l2mi3:$(sel),$(lastsel)" id="l2m3mi3"><Url>snom://mb_nop</Url></MenuItem>
<MenuItem name="l2mi4:$(sel),$(lastsel)" id="l2m3mi4" sel="true"><Url>snom://mb_nop</Url></MenuItem>
</Menu>
</SnomIPPhoneMenu>


Instruction example for example code:

  1. Select first menu (l1menu1)
  2. Move the cursor to fourth position and select it using the OK button
  3. Press X twice (go back to first layer)
  4. Select l1menu2


Result:
Image Added


Include Page
Howto Footer - uni-en
Howto Footer - uni-en

Content by Label
showLabelsfalse
max50
spacesPW
showSpacefalse
sorttitle
typepage
cqllabel = "callbacks" and type = "page"
labels minibrowser xml-minibrowser

...

Sv translation
languagede

Hinweise zur Verwendung:

  • Siehe auch http://phone_ip/minibrowser.htm?show=RENDERED_XML beim Ausführen von Beispielcode für sel Callback-Ergebnis.
  • sel Wert ist die ID des Menüs / Menüpunkts, in dem sich der Cursor befindet.
    • In der RENDERED_XML Telefon-Webseite: Dies zeigt die tatsächliche menu / menuitem id an, wenn Sie die Seite aktualisieren
    • Im PUI (Telefondisplay): es wird nur die ID des ersten menu / menuitem angezeigt, wenn es sich nicht im ersten menu / menuitem befindet
  • lastsel  Value ist die ID des letzten menuitem, an dem sich der Cursor im letzten Menü befindet. Wenn Sie z. B. vom ersten Menü zum zweiten Menü wechseln, gibt der lastsel-Callback die ID des menuitem im ersten Menü zurück, in dem sich der Cursor zuletzt befand.


Beispielcode:

Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"?>
<SnomIPPhoneMenu track="yes">
<Menu name="l1menu1" id="l1menu1">
<MenuItem name="l2mi1:$(sel),$(lastsel)" id="l2m1mi1"><Url>snom://mb_nop</Url></MenuItem>
<MenuItem name="l2mi2:$(sel),$(lastsel)" id="l2m1mi2"><Url>snom://mb_nop</Url></MenuItem>
<MenuItem name="l2mi3:$(sel),$(lastsel)" id="l2m1mi3"><Url>snom://mb_nop</Url></MenuItem>
<MenuItem name="l2mi4:$(sel),$(lastsel)" id="l2m1mi4"><Url>snom://mb_nop</Url></MenuItem>
</Menu>
<Menu name="l1menu2" id="l1menu2">
<MenuItem name="l2mi1:$(sel),$(lastsel)" id="l2m2mi1"><Url>snom://mb_nop</Url></MenuItem>
<MenuItem name="l2mi2:$(sel),$(lastsel)" id="l2m2mi2"><Url>snom://mb_nop</Url></MenuItem>
<MenuItem name="l2mi3:$(sel),$(lastsel)" id="l2m2mi3"><Url>snom://mb_nop</Url></MenuItem>
<MenuItem name="l2mi4:$(sel),$(lastsel)" id="l2m2mi4"><Url>snom://mb_nop</Url></MenuItem>
</Menu>
<Menu name="l1menu3" id="l1menu3" >
<MenuItem name="l2mi1:$(sel),$(lastsel)" id="l2m3mi1"><Url>snom://mb_nop</Url></MenuItem>
<MenuItem name="l2mi2:$(sel),$(lastsel)" id="l2m3mi2"><Url>snom://mb_nop</Url></MenuItem>
<MenuItem name="l2mi3:$(sel),$(lastsel)" id="l2m3mi3"><Url>snom://mb_nop</Url></MenuItem>
<MenuItem name="l2mi4:$(sel),$(lastsel)" id="l2m3mi4" sel="true"><Url>snom://mb_nop</Url></MenuItem>
</Menu>
</SnomIPPhoneMenu>


Anleitungsbeispiel für Beispielcode::

  1. Erstes Menü wählen (l1menu1)
  2. Bewegen Sie den Cursor auf die vierte Position und wählen Sie diese mit der OK-Taste aus
  3. Drücken Sie zweimal X (zurück zur ersten Ebene)
  4. Wählen Sie l1menu2


Ergebnis:
Image Added


Include Page
Howto Footer - de
Howto Footer - de

Content by Label
showLabelsfalse
max50
spacesPW
showSpacefalse
sorttitle
typepage
cqllabel = "callbacks" and type = "page"
labels

...

minibrowser xml-

...

minibrowser