beautypg.com

Grandstream GXP21xx XML Application Guide User Manual

Page 30

background image

FIRMWARE VERSION 1.0.4.23 GXP21xx XML APPLICATION GUIDE Page 30 of 36

Example 2 - UseURL:

A softkey "Start" will be displayed. When pressing it, phone will send out HTTP request for the link

specified in commandArgs. The XML document in link "http://192.168.40.144/hotelSurvey/login.php" will

be displayed. This could be used for directing to Next page, or back to Previous page in the XML

application.

The URL in commandArgs could also have variables directly appended to reflect user's response in XML

application. The following "Yes" softkey pressing will trigger request for link with answer=yes at the end.

HTTPS URL can also be used.

Example 3 - AppendInputURL:

A softkey "Login" will be displayed. When pressing it, phone will send out HTTP request for the link with

element "name=value" appended at the end of the link. Then the corresponding page will be

displayed. For example, if the element has name=id, and the user enters "1234" in the screen

input field, the requested link will be "http://192.168.40.144/hotelSurvey/login.php?id=1234". In this way,

the input information could be passed to the next XML application pages.

commandId="0"

commandArgs="1087" />

commandArgs="http://192.168.40.144/Survey/start.php" />

commandArgs="http://192.168.40.144/Survey/question1.php?answer=yes" />

commandArgs="https://user:[email protected]/Survey/xmlpage1.xml" />