Opened 16 years ago
Closed 16 years ago
#596 closed defect (fixed)
Safari: using dojo.event.connect to cause form submit does not work
Reported by: | anonymous | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | General | Version: | 0.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
In Safari, using dojo.event.connect to fire a form's submit method does not work. It does work in Firefox, though.
var myform = dojo.byId('myForm'); var mybutton = dojo.byId('myButton'); dojo.event.connect(mybutton,'onclick',myform,'submit'); // doesn't work in safari... however the following DOES work in Safari: var myform = dojo.byId('myForm'); var mybutton = dojo.byId('myButton'); dojo.event.connect(mybutton,'onclick',submitmyform); function submitmyform() { myform.submit(); }
Note: See
TracTickets for help on using
tickets.