Click to See Complete Forum and Search --> : firefox 3 xmlrequest problem


jamborta
07-03-2008, 02:44 PM
hi guys,

i've just installed firefox 3 into my computer, and some of the web-pages i'm working on have a problem with it.

var d = new XMLHttpRequest();
d.open("GET", xmlFile, false);

if the file is located in the same folder, it's ok, but all my pages refer to a parent folder where the xml file is located which works with all the browsers except firefox 3.

can anyone suggest a solution?

thanks,
toma

Declan1991
07-08-2008, 06:43 PM
It's a new security feature in Firefox. For the file:// protocol, AJAX can only access files in the same directory or below. The only solution (unless there is a about:config hack I don't know), is to install a webserver. Xampp is a very easy way to do that.