×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    16

    Solved: Request handling problem (java-script)

    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:

    Code:
    <YMResult Version="2.0" ResultType="POI_DETAIL">
     <PoiDetail>
      <Adr>
      <SName>xxx</SName>
      <Twn>xxx</Twn>
    </Adr>
    <BNames>Tankstellen</BNames>
    </PoiDetail>
    </YMResult>
    I get the request like that:

    Code:
    xmlResult = this.httpReq.responseXML;
    then i want to extract the values:

    Something like that should work:
    Code:
    var poiList = xmlResult.documentElement.getElementsByTagName("PoiDetail");
    But following code leads to an exception:

    Code:
    alert(poiList.length);
    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?
    Last edited by Äpfel; 2009-09-15 at 09:55. Reason: solved...

  2. #2
    Registered User
    Join Date
    Sep 2009
    Posts
    16

    Re: Request handling problem (java-script)

    solved: wrt parsed the "&" to &#38 which had to be replaced to a "&" again.

    wtf i say

Similar Threads

  1. Java TCP server, Symbian Client connection problem
    By ufepuf in forum Symbian Networking & Messaging (Closed)
    Replies: 9
    Last Post: 2008-02-23, 19:14
  2. Java Access Point Problem
    By viren61 in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2008-01-09, 09:45
  3. problem sending an http request with # in it.
    By jaazz in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2006-12-06, 10:58
  4. Installation problem for some java apps
    By seamus_rooney in forum Mobile Java General
    Replies: 1
    Last Post: 2006-11-08, 17:14
  5. How can i solve this error?
    By symbian-newbie in forum Symbian
    Replies: 6
    Last Post: 2006-05-23, 05:33

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×