Bug Tracker

Modify

Ticket #5639 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

Binding a function to submit() a form fails in FF 3.0.15 and Chrome

Reported by: Julian Owned by: brandon
Priority: major Milestone: 1.4
Component: event Version: 1.4a1
Keywords: form submit firefox chrome bind click Cc:
Blocking: Blocked by:

Description

Bind a click handler to a function that submits a form fails with no error in 1.4a1.

If you replace $('#the_form').submit(); with alert('something'); it works fine in both versions, so it seems to be related to submit().

This bug is reproducible in Firefox 3.0.15 on Windows and Linux as well as Chrome for Windows and Linux. The issue is not present in IE6 or IE8. The page works fine when you load it with jQuery 1.3.2. I've attached a test file.

Attachments

jqform.html Download (531 bytes) - added by Julian 3 years ago.
test for submit event bug

Change History

Changed 3 years ago by Julian

test for submit event bug

comment:1 Changed 3 years ago by Julian

This seems similar to  http://dev.jquery.com/ticket/5124 - I tried the patch for that one with no success.

comment:2 Changed 3 years ago by Julian

Nope, scratch that! The patch for 5124 fixed this issue as well, so please mark this as resolved.

comment:3 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to fixed

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.