[Seaside] WAHtmlAttributes>>submitOnClick
Yar Hwee Boon
hboon at motionobj.com
Sun Feb 13 03:47:44 CET 2005
Seems #submitOnClick does not work as submit() has to be called on that
particular form. It doesn't work on Firefox, but it does on Safari. I
*think* it worked on Opera. I ended up adding
MyScriptLibrary>>submitForm
^ '
function submitForm(formName) {
document.forms[formName].submit();
}
'
WAHtmlAttributes>>submitFormOnClick: aFormNameString
self at: 'onClick' put: 'submitForm("' , aFormNameString , '")'
I also had to modified the dialog/form to allow setting of a form name.
Anyone has a better way?
--
HweeBoon
MotionObj
(65) 6764
More information about the Seaside
mailing list