XML <URI>-Object and Variables

c.daus
Posts: 4
Member Since:
2008-06-15

My phone displays a page load / nothing to display error if I add the following XML-Code to my application.

<SoftKey index="1">
<Label>YES>/LABEL>
<URI>http://xxx/xxx.php?action=1&action2=2</URI>
</SoftKey>

The URI-Object seems to be the problem. If I use only one variable after the "?" everything is working as expected and no error is displayed. As soon as I add a second variable with the "&" the application stopps working an the page load / nothing to display (in german: keine anzeige) error occurs.

How is it possible to use two or more variables with a xml-softkey?



ethans
Posts: 519
Member Since:
2007-01-16
& should be & It's much

& should be & It's much easier programming with Aastra's API which takes care of the XML generation for you. Your XML looks malformed, too.



stechnique
Posts: 733
Member Since:
2008-02-21
Ethan's comment caught the

Ethan's comment caught the tag filter in the forum, but to clarify, change the & to "&amp," (without quotes and change the , for a ;).
Also look at your LABEL closing tag, which should be (no space).



c.daus
Posts: 4
Member Since:
2008-06-15
Solved.

@ethan:
You are right. There was a typo in the code I posted above. The correct code I used in the app is something like this:

<SoftKey index="1">
<Label>YES</Label>
<URI>http://xxx/xxx.php?action=1&action2=2</URI>
</SoftKey>

@stechnique:
Solved! Thank you. I replaced the uri-statement with the following and it works well.

<URI>http://xxx/xxx.php?action=1&action2=2"</URI>


ethans
Posts: 519
Member Since:
2007-01-16
Whoops ;)

Whoops ;)



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.