Download Print this page

Grandstream Networks XML Application Manual page 21

Part a – application explanations part b – xml syntax, technical detail, file examples

Advertisement

Each softkey is bound by a URI, and pressing the soft key will call the corresponding URI. If the second
softkey is pressed
http://www.XMLquestionnaire.com/questionnaire.php?ans=yes
knows the client response because the URI given to each soft key is unique. Once the answer is received,
the server will send a 200 ok with another XML attached.
  
<GS_XML_Application>
<Display>
<Screen>
</Screen>
</Display>
<SoftKeys>
<SoftKey>
<URL>http://www.XMLquestionnaire.com/questionnaire.php?do=prev
</SoftKey>
<SoftKey>
<SoftKey>
</SoftKeys>
</GS_XML_Application>
In this XML, note that the last word, "Survey", displayed at the center of the screen is in a new Line element.
Otherwise, it would be displayed off the screen and look like this screen:
 
 
 
 
 
 
 
 
Grandstream Networks, Inc.
Previous
<DisplayString valign="Center">
<X>0</X>
<Y>0</Y>
<DisplayStr> Thank you for taking the </DisplayStr>
</DisplayString >
<DisplayString >
<X>0</X>
<Y>10</Y>
<DisplayStr>Survey</DisplayStr>
</DisplayString >
<DisplayString halign="Right" valign="Bottom">
<X>0</X>
<Y>0</Y>
<DisplayStr>Surveyor</DisplayStr>
</ DisplayString>
<Label>Previous</Label>
<Action>
<UseURL>
</UseURL>
</Action>
<Label>Quit</Label>
<Action>
<QuitApp/>
</Action>
XML Application Guide
Do you have a
spouse?
Yes
No
Next
is called. The server now
</URL>
Page 21 of 24
Last Updated: 3/2009

Advertisement

loading