[LON-CAPA-users] program another event to trigger "submit"
Jim Maxka
lon-capa-users@mail.lon-capa.org
Tue, 25 Jul 2006 10:04:30 -0700
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Arial">I've been thinking along the same lines. Is there a
way to have a javascript for onSubmit -- that could be scripted with a
popup. This is one way to make students verify the values they enter
like the nice routine that Phil wrote.<br>
-Jim<br>
</font><br>
James Sullivan wrote:
<blockquote cite="mid000101c6b006$3027e0d0$d0b7ac80@HAS03047"
type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=us-ascii">
<div>
<p> <span>I’d like to write some code that would use an
alternate event to trigger a “submit”. </span> </p>
<p> <span> </span> </p>
<p> <span>Details: I have a java applet that does various actions
when
the user presses “OK”. I would like to add code that would simulate
the user pressing the loncapa “submit answer” button. Obviously, I
would also like to hide the “submit answer” button so that the user
does not get confused about whether to press “OK” or “Submit
Answer”. </span> </p>
<p> <span> </span> </p>
<p> <span>Suggestions for how I might go about this? </span> </p>
<p> <span> </span> </p>
<p> <span>TIA, </span> </p>
<p> <span>Jay </span> </p>
<p> <span> </span> </p>
<p> <span> </span> </p>
<p> <span> </span> </p>
<p> <span lang="FR">James M. Sullivan, Assistant
Professor </span> <span><a
href="mailto:jmsullivan@vcu.edu"><span lang="FR">jmsullivan@vcu.edu</span></a></span>
<span lang="FR"> </span> </p>
<p> <span>Department of Physics
Virginia Commonwealth University </span> </p>
<p> <span>tel:
804/828-6343
fax: 804/828-7073</span> </p>
<p> <span> </span> </p>
<p> <span>1020 W. Main St . </span> </p>
<p> <span>PO</span> <span> BOX 842000 </span> </p>
<p> <span>Richmond</span> <span>, VA 23284-2000 </span> <span> </span>
</p>
<p> <span> </span> </p>
<p> <span>* </span> </p>
<p> <span>"If you can drive a nail, and if you have any nails to
drive, drive them." </span> </p>
<p> <span> - H. D. Thoureau, 1850 </span> </p>
<p> <span>* </span> <span> </span> </p>
<p> <span> </span> </p>
</div>
</blockquote>
</body>
</html>