Hi,
I googled the error and came up with this:
http://www.captain.at/howto-ajax-per…ttprequest.php
HTH.
hello people.
do you know what is causing this error?
Error: uncaught exception: Permission denied to call method XMLHttpRequest.open
i’m making a webpage and i have this simple ajax script that loads a portion of it. if it’s accessed on https, it doesn’t seem to load anything. then i look at the error console and i get that error above. an exact copy is residing on http and it executes fine.
any help would be appreciated.
thank you.![]()
Hi,
I googled the error and came up with this:
http://www.captain.at/howto-ajax-per…ttprequest.php
HTH.
My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive.
thank you for the reply.
this is weird. i am not doing any cross-domain calls.
here’s part of the script to load the page:
Code:function loadPage(path,pagename){ url = "https://"+path+"/ch/"+pagename+".php"; style = "color:red;text-decoration:none;font-weight:bold"; document.getElementById("viewarea").innerHTML = "<span style="+style+">Loading.. . please wait </span>"; xmlhttp.open("GET", url,true); xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4) { document.getElementById("viewarea").innerHTML = xmlhttp.responseText; } } xmlhttp.send(null); }
it only loads pages in the same directory.
Is the +path+ the path to the Linux directory or the URL path? You may need to use the URL path instead.
I’m really not an Ajax expert, but this has caught me in the past.
My sites: Linux Home Networking – Linux Quick Fix Notebook
hell again Peter!
this sounds ridiculous but you can get around this by not using a URL form. for example i didn’t use https://myDomain/dir/list.php. instead i just placed list.php. i guess if you were calling a page from another dir, you’ll have to use relative paths.
LOLz.. .
of course the above code was modified slightly. but the general form is basically the same.
note that i’m only having problems with this script when using HTTPS. on my workstation or a live server with a real domain name, HTTP, is ok. no errors at all.
Do you have a valid SSL certificate for the domain? The application may not be tolerating an incorrect certificate for the HTTPS version of the query.
My sites: Linux Home Networking – Linux Quick Fix Notebook
Bookmarks