-
October 2nd, 2008, 12:05 PM
#1
uncaught exception: Access to restricted URI denied (NS_ERROR_DOM_BAD_URI)
Hi there,
I am first and foremost used to C code, stuff that has to be compiled prior to its usage. Now, confronted with that "asynchronous javascript and xml" (as I learned this name is abbreviated for), I am running into that problem:
uncaught exception: Access to restricted URI denied (NS_ERROR_DOM_BAD_URI)
(showing up after XMLHttpRequest() is properly initialized, on invocation of its open()-method)
Thanks to FireBug, I FOUND this error. I have serious doubts that otherwise I could have catch it. The "restricted URI" is "everything" - no matter whether I've put the destination to a root folder or SOMEwhere, this exception sustains.
Any AJAX guru(s) who feel they can help me out?
Thanks in advance.
ariell
programming is understanding
-
October 3rd, 2008, 05:38 AM
#2
Re: uncaught exception: Access to restricted URI denied (NS_ERROR_DOM_BAD_URI)
Done. I've found a solution. One more evidence that AJAX is not a "system" but just an idiom.
And thanks for the tons of help!
ariell
programming is understanding
-
October 3rd, 2008, 08:29 AM
#3
Re: uncaught exception: Access to restricted URI denied (NS_ERROR_DOM_BAD_URI)
hi, I'm having the same problem, can you plz explain how you fix it?', what the problem might be??, what's the solution??.
thx in advnace
Daniel
-
October 3rd, 2008, 10:32 AM
#4
Re: uncaught exception: Access to restricted URI denied (NS_ERROR_DOM_BAD_URI)
What EXACTLY is your problem?
In MY case, it was something like "request.open("GET",url,true)" whereas url was (out of the sudden) considered "restricted".
Let me know.
ariell
programming is understanding
-
November 22nd, 2008, 12:54 PM
#5
Re: uncaught exception: Access to restricted URI denied (NS_ERROR_DOM_BAD_URI)
i found out that:
this don't work!
request.open("GET", "http://www.thedomainname.com/resp.php?wohin=" + wohin, false);
this works:
request.open("GET", "http://thedomainname.com/resp.php?wohin=" + wohin, false);
(without "www")
-
February 5th, 2009, 05:15 AM
#6
Re: uncaught exception: Access to restricted URI denied (NS_ERROR_DOM_BAD_URI)
i am having the same problem when page is onpen in HTTPS. but removing www does not work for me is there any other soloutin??
-
February 5th, 2009, 04:46 PM
#7
Re: uncaught exception: Access to restricted URI denied (NS_ERROR_DOM_BAD_URI)
Originally Posted by antranidox
i found out that:
this don't work!
request.open("GET", "http://www.thedomainname.com/resp.php?wohin=" + wohin, false);
this works:
request.open("GET", "http://thedomainname.com/resp.php?wohin=" + wohin, false);
(without "www")
That is because cross-domain references are not allowed. You probably had accessed the site without the www, so it would have to be without the www in the AJAX request as well.
Originally Posted by farazilu
i am having the same problem when page is onpen in HTTPS. but removing www does not work for me is there any other soloutin??]
Are you attempting to access a different domain than the one you to which you are already connected? As already mentioned, AJAX does not allow cross-domain references.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|