I have a problem handling my Request within my Widget.
I do two kinds of request which should both work quite similar, though one doesnt work at all.
Requested XML looks like this:
I get the request like that:Code:<YMResult Version="2.0" ResultType="POI_DETAIL"> <PoiDetail> <Adr> <SName>xxx</SName> <Twn>xxx</Twn> </Adr> <BNames>Tankstellen</BNames> </PoiDetail> </YMResult>
then i want to extract the values:Code:xmlResult = this.httpReq.responseXML;
Something like that should work:
But following code leads to an exception:Code:var poiList = xmlResult.documentElement.getElementsByTagName("PoiDetail");
Here comes the kicker: The Code runs in Aptana-Plugin and in Firefox. But it does not on my N95 developement Phone. Is there any possibility to debug java-script widget code on my phone or any other environement where i can do so? Or has anybody have a clue what i might have done wrong?Code:alert(poiList.length);

Reply With Quote
wtf i say


