Checkbox onclick submit() not working in IE Mac

P

Phester

Any help with this problem would be greatly appreciated. I have a set of
checkboxes and I would like to submit the form they are when one of them
is checked. It works fine in IE, Netscape, and Mozilla on Win2K, also in
Mozilla on the Mac, but does not work in IE 5.2 Mac. When you click the
checkbox nothing happens.

Am I doing something incorrectly? Here's the code:

<form name="newRevenueBudget" method="POST" action="/budgetsurvey_02/05.do">

....

<input type="checkbox"
name="newRevenueSourceIndexes"
onclick="document.newRevenueBudget.submit(); return false;"
value="someValue">


Thanks.

Phester
 
V

VK

If onsubmit event returns false, form doesn't submit. Maybe Mac's IE
gets false from onclick as being sent from onsubmit (triggered step
before)?
Try just ...onclick="document.newRevenueBudget.submit();... without
return values It doesn't needed here anyway.
 
P

Phester

If onsubmit event returns false, form doesn't submit. Maybe Mac's IE
gets false from onclick as being sent from onsubmit (triggered step
before)?
Try just ...onclick="document.newRevenueBudget.submit();... without
return values It doesn't needed here anyway.


I removed the return value and now it seems to work. Thanks for the help.

Phester
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top