×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Perth, Western Australia
    Posts
    286

    Smile XMLHttpRequest for xml file data

    Hi Yucca,

    I am trying to develop a WRT similar to the ones I developed for the OVI Beta SDK. I want to retrieve the data from my server. the code is;

    function get_Groups()
    {
    xmlhttp = new window.XMLHttpRequest();
    params = "Mode=findFamily&Name="+MyName+"&Phone="+MyPhone;

    xmlhttp.open("POST", "http://d4072.mysite.westnethosting.com.au/FamilyFinder/FindMyFamily.asp?"+params);
    xmlhttp.send(null);
    xmlhttp.onreadystatechange = stateChangedGroups;

    }

    I am using Aptana IDE to do this developemnt and displaying the result with the Nokia Web Runtime pug-in. I get no response. What am I doing wrong? This works with my web sites and Beta OVI versions.


    Regards
    Brian Oldfield

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Perth, Western Australia
    Posts
    286

    Thumbs up Re: XMLHttpRequest for xml file data

    Ok,

    I got it to work.

    function get_Groups()
    {
    xmlhttp = null;
    xmlhttp = new window.XMLHttpRequest();
    try {
    netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserRead UniversalBrowserWrite');
    } catch (e) {}

    params = "Mode=findFamily&Name="+MyName+"&Phone="+MyPhone;
    xmlhttp.open("GET", "http://d4072.mysite.westnethosting.com.au/FamilyFinder/FindMyFamily.asp?"+params);
    xmlhttp.send(null);
    xmlhttp.onreadystatechange = stateChangedGroups;

    }

    added

    xmlhyttp = null;

    xmlhttp.open("POST",..... to xmlhttp.open("GET",

    try {
    netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserRead UniversalBrowserWrite');
    } catch (e) {}

    and guess what it all works. Sorry for wasting every bodies time.

    Regards
    Last edited by oldfield; 2010-03-17 at 05:38.
    Brian Oldfield

Similar Threads

  1. Problems with MBM and MBG file
    By rsiudak in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 5
    Last Post: 2010-02-19, 02:23
  2. Replies: 7
    Last Post: 2008-03-18, 15:06
  3. problem when importing from carbide c++ to vs 2003!
    By misfit.physics in forum Symbian Tools & SDKs
    Replies: 12
    Last Post: 2008-02-19, 09:45
  4. Read and Write the encrypted data form file
    By ankushbabrekar in forum Symbian
    Replies: 6
    Last Post: 2007-04-18, 10:53
  5. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

Posting Permissions

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