techguy_75 ha scritto:
I want to submit a form from a page on
a.mydomain.com
to another page on
b.mydomain.com
without reloading my original page


Both the pages are on the same domain but within different subdomains.

If I use .ajax() , type=POST , it works fine on IE , but fails on
Firefox because of the cross domain issue with this error below

Error: [Exception... "'Permission denied to call method
XMLHttpRequest.open' when calling method:
[nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)"  location: "<unknown>"  data: no]

Any of you have any thoughts , how best to do this so that it works on
all the browsers
To avoid this error you have to do the upload on the same domain calling a page that manage the upload, and the in that page you can move your file in the location you want on the disk (if the subdomain is on the same server, via ftp if the subdomain is on another server).

The idea is to use something like a proxy to avoid the XMLHttpRequest.open error.

Bye

--
gianiaz.net - Giovanni Battista Lenoci P.le Bertacchi 66 23100 Sondrio (SO) - Italy

Reply via email to