Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User mdurga's Avatar
    Join Date
    Dec 2009
    Posts
    1
    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 Moderator isalento's Avatar
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    831
    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 nsanchezb's Avatar
    Join Date
    May 2010
    Posts
    1
    Hey,

    This works fine.

    I had the same problem.

    Thank you.

Similar Threads

  1. Nokia PC Connectivity能否链接到cdma手机上发送短信和其他操作?
    By bborn in forum Web Technologies and Multimedia Content- Web 技术和多媒体内容
    Replies: 2
    Last Post: 2004-05-04, 11:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved