×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    1

    Smile [moved] Nokia on eclipse (wondows xp), XMLHttpRequest implementation

    Hi,

    I am Working on windows xp environment

    eclipse, aptana plugin, Nokia WRT (which uses firefox as defalut browser)

    http_request = new XMLHttpRequest();
    http_request.onreadystatechange = alertContents;
    http_request.open('POST', url, true);

    I am getting the error as follows:
    Exception: uncaught exception: [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "file:///C:/wrt_preview_main.html Line: 25"] File: Line: 0 Column: 0

    Please help me out in this issue.


    Thanks in advance.
    Durga Malleswar

  2. #2
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: [moved] Nokia on eclipse (wondows xp), XMLHttpRequest implementation

    That is a security restriction in desktop browser.
    To make it work you will need to:

    1)
    Insert this code before http_request.open('POST', url, true);

    Code:
    try{ 
    netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); }
    catch(e){ }
    2)
    In FireFox type about:config to the address bar and
    set signed.applets.codebase_principal_support to true

    NB. Set this key back to false when you are done with debugging.

    -Ilkka

  3. #3
    Registered User
    Join Date
    May 2010
    Posts
    1

    Re: [moved] Nokia on eclipse (wondows xp), XMLHttpRequest implementation

    Hey,

    This works fine.

    I had the same problem.

    Thank you.

Posting Permissions

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