[jQuery] Re: jQuery Form Plugin redirects even if I use return false in $('#myForm2').submit(function()

2009-02-25 Thread antcj...@gmail.com
Hi Thanks for replying back. 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?? Thanks On Feb 24, 4:45 am, Mike Alsup mal...@gmail.com wrote: I am getting the output xml from the

[jQuery] Re: jQuery Form Plugin redirects even if I use return false in $('#myForm2').submit(function()

2009-02-25 Thread Mike Alsup
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

[jQuery] Re: jQuery Form Plugin redirects even if I use return false in $('#myForm2').submit(function()

2009-02-25 Thread antcj...@gmail.com
Hi Mike, Thanks a lot for your reply.. This is what I did exactly I just downloaded jquery.form.js from http://malsup.com/jquery/form/#download The following code works fine in IE (The returned XML from server is displayed through alert() ) But when I use the same code in Mozilla 3.0.6,

[jQuery] Re: jQuery Form Plugin redirects even if I use return false in $('#myForm2').submit(function()

2009-02-25 Thread MorningZ
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

[jQuery] Re: jQuery Form Plugin redirects even if I use return false in $('#myForm2').submit(function()

2009-02-25 Thread antcj...@gmail.com
Hi , As you said I put the try catch.. Again, I dint even see the alert msg :( It redirected the page to sell.php5 I am once again pasting the exactl code I have for your kind notice.

[jQuery] Re: jQuery Form Plugin redirects even if I use return false in $('#myForm2').submit(function()

2009-02-25 Thread antcj...@gmail.com
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

[jQuery] Re: jQuery Form Plugin redirects even if I use return false in $('#myForm2').submit(function()

2009-02-25 Thread Eric Garside
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.

[jQuery] Re: jQuery Form Plugin redirects even if I use return false in $('#myForm2').submit(function()

2009-02-25 Thread antcj...@gmail.com
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/

[jQuery] Re: jQuery Form Plugin redirects even if I use return false in $('#myForm2').submit(function()

2009-02-25 Thread Eric Garside
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

[jQuery] Re: jQuery Form Plugin redirects even if I use return false in $('#myForm2').submit(function()

2009-02-25 Thread antcj...@gmail.com
Hey Eric, My problem is solved!!! Thanks a million :) it's caused because I was loading the file into Firefox locally. If I upload it to our server and run it, it works fine. this was bcoz of some cross domain access policy in mozilla. I just found it after seeing the error console msg.

[jQuery] Re: jQuery Form Plugin redirects even if I use return false in $('#myForm2').submit(function()

2009-02-25 Thread Mike Alsup
it's caused because I was loading the file into Firefox locally. If I upload it to our server and run it, it works fine. this was bcoz of some cross domain access policy in mozilla. I just found it after seeing the error console msg. I'm glad you found the problem! As a side note, this is

[jQuery] Re: jQuery Form Plugin redirects even if I use return false in $('#myForm2').submit(function()

2009-02-23 Thread Mike Alsup
I am getting the output xml from the php in the same window. It never goes inside showResponse function.  I donot want this page redirection to happen :( Instead I want to handle the returned xml (or any data) in jquery itself. What does showRequest do? Can you post a link?