You can only make ajax calls from within the same domain. So if you're on http://www.something.com/ you CANNOT make an ajax request to, say, http://www.otherdomain.com/
This is a security feature to prevent cross site scripting. It's not enforced if you're running off the localhost iirc, but as soon as you put it on a website with a fully qualified domain name, it starts to throw a fit if you're attempting to request data from outside your domain. On Feb 25, 4:12 pm, "antcj...@gmail.com" <antcj...@gmail.com> wrote: > Hi Eric, > > Thanks for helping me.. > > I did what you said, I got these two exceptions in the Mozilla Error > console. > > Error: uncaught exception: [Exception... "Illegal document.domain > value" code: "1009" nsresult: "0x805303f1 > (NS_ERROR_DOM_BAD_DOCUMENT_DOMAIN)" location: "http://odibab.com/ > ostore/test.html Line: 49"] > > Error: [Exception... "Access to restricted URI denied" code: "1012" > nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: > "http://www.odibab.com/ostore/jquery.jsLine: 2700"] > Source File:http://www.odibab.com/ostore/jquery.js > Line: 2700 > > I dont know why the URI is in restricted? :( > > Thanks, > Antony Johnson > > On Feb 26, 1:49 am, Eric Garside <gars...@gmail.com> wrote: > > > In Firefox, open up the Error Console, clear it, then try submitting > > the form and see if an error is getting tossed that way. > > > Another option, is calling preventDefault(); on the event BEFORE your > > processing code, so the form won't post, even if an error/exception is > > thrown. > > > $('#myForm').submit(function(evt){ > > evt.preventDefault(); > > // Other code here > > > }); > > > On Feb 25, 3:14 pm, "antcj...@gmail.com" <antcj...@gmail.com> wrote: > > > > Hey,.. The problem seems weird.. > > > > The same page which worked well in IE is not working when I put > > > the file into my server odibab.com and opened the page from IE. > > > > So, If i keep the same html page in my local windows and use It works > > > But not when It is coming from odibab.com server. > > > > Any idea why this happening? > > > > Thanks in advance, > > > Antony Johnson > > > > On Feb 26, 12:10 am, MorningZ <morni...@gmail.com> wrote: > > > > > Chances are VERY likely that your function "showResponse" is throwing > > > > an error in JavaScript, making the rest of the script stop running, > > > > and as a result allowing the page/browser to make a normal, page > > > > changing, post > > > > > comment out all the code in said function, or wrap it in a > > > > try...catch to see if you can figure out what is happening > > > > > On Feb 25, 1:53 pm, Mike Alsup <mal...@gmail.com> wrote: > > > > > > > showRequest doesnt do anything. It just print the returned data. > > > > > > > Hey one more thing I noted, this plugin works fine with IE but not > > > > > > Mozilla :( > > > > > > > Any workaround?? > > > > > > I'm afraid you haven't provided enough information. The plugin works > > > > > fine with both FF and IE so there is something more to the story on > > > > > your end. > > > > > > Mike