<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18975">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>In HTML it is possible to create a button in a form
and cause Javascript to execute</FONT></DIV>
<DIV><FONT size=2 face=Arial>using onClick. For example, the following form
causes the JavaScript alert function</FONT></DIV>
<DIV><FONT size=2 face=Arial>to be executed when the button is
clicked.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial><form name="myForm"><BR>Name: <input
type="text"<BR>onkeyup="ajaxFunction('Hello');" name="username" /><BR>Time:
<input type="text" name="time" /><br><BR><input type=BUTTON
onClick="alert('GoodBye');" value="GoodBye" /><BR></form></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>In Seaside, I have tried to achieve the same
without success with the</FONT></DIV>
<DIV><FONT size=2 face=Arial>following button definition:</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>renderDoItButtonOn: html</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial> html button with:
'Doit';<BR> onClick: 'alert("GoodBye");'.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>The page refreshes but the JavaScript does not
appear to execute. Is there a way</FONT></DIV>
<DIV><FONT size=2 face=Arial>to accomplish this? I have tested onKeyUp: and it
does execute the string as</FONT></DIV>
<DIV><FONT size=2 face=Arial>JavaScript just as I expected.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Thank you</FONT></DIV></BODY></HTML>