Opened 13 years ago

Closed 13 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();
}

Change History (1)

comment:1 Changed 13 years ago by anonymous

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.