nanatiris / jquery-watermark

Automatically exported from code.google.com/p/jquery-watermark
0 stars 0 forks source link

Form doesn't submit in Chrome when submitting programmatically #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use Chrome.  
2. Attempt to submit a form programmatically upon a button click, like so:
$('#searchSubmitLink').click(function() { 
            $(this).closest('form').submit(); 
        });

What is the expected output? What do you see instead?

I expect the form to be submitted.  While all of the watermarked form 
fields are cleared out, the form isn't submitted.  If instead I submit 
using standard browser behavior (pressing Enter in an input), it clears 
watermarks and submits properly.

What version of the product are you using? On what operating system?
Using 3.0.2, with jQuery 1.3.2.

Please provide any additional information below.
The same code works fine in IE8 & FF3.5.  Doesn't work in the latest 
Chrome.

Original issue reported on code.google.com by The...@gmail.com on 19 Nov 2009 at 5:15

GoogleCodeExporter commented 9 years ago
There is definitely an issue here with Chrome and using a programmiatic submit, 
thanks for posting the issue.  

The form submit function unfortunately differs widely among browsers.  Some 
make it 
easy to replace, others treat it in a very "hard-coded" manner.  I'll be 
looking 
into a more generic jQuery event-based approach to see if it works better for 
all 
browsers.

Whatever fix I end up using, it should be part of the next release.

Original comment by t...@speednet.biz on 30 Nov 2009 at 10:29

GoogleCodeExporter commented 9 years ago
FIXED in version 3.0.3

Original comment by t...@speednet.biz on 1 Dec 2009 at 1:23

GoogleCodeExporter commented 9 years ago
I ran across a similar problem and looking through your fix here helped me 
handle ours.  
/shakefist Chrome!  Anywho, nice solution and thanks.

Original comment by djafari...@gmail.com on 7 Feb 2010 at 9:38

GoogleCodeExporter commented 9 years ago
jquery form submit doesn't work on Chrome 11.0.696.60

Original comment by cris.gon...@gmail.com on 3 May 2011 at 9:27

GoogleCodeExporter commented 9 years ago
No, I don't see a problem in Chrome 11.  Open the demo page and see that all 
the programmatic submits work fine.

Original comment by t...@speednet.biz on 3 May 2011 at 12:09