[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">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<body bgcolor="#ffffff" text="#000000">
<font face="Arial">I've been thinking along the same lines.&nbsp; Is there a
way to have a javascript for onSubmit -- that could be scripted with a
popup.&nbsp; This is one way to make students verify the values they enter
like the nice routine that Phil wrote.<br>
James Sullivan wrote:
<blockquote cite="mid000101c6b006$3027e0d0$d0b7ac80@HAS03047"
  <meta http-equiv="Context-Type" content="text/html; charset=us-ascii">
  <p> <span>I&#8217;d like to write some code that would use an
alternate event to trigger a &#8220;submit&#8221;. </span> </p>
  <p> <span> &nbsp; </span> </p>
  <p> <span>Details: I have a java applet that does various actions
the user presses &#8220;OK&#8221;. I would like to add code that would simulate
the user pressing the loncapa &#8220;submit answer&#8221; button. Obviously, I
would also like to hide the &#8220;submit answer&#8221; button so that the user
does not get confused about whether to press &#8220;OK&#8221; or &#8220;Submit
Answer&#8221;. </span> </p>
  <p> <span> &nbsp; </span> </p>
  <p> <span>Suggestions for how I might go about this? </span> </p>
  <p> <span> &nbsp; </span> </p>
  <p> <span>TIA, </span> </p>
  <p> <span>Jay </span> </p>
  <p> <span> &nbsp; </span> </p>
  <p> <span> &nbsp; </span> </p>
  <p> <span> &nbsp; </span> </p>
  <p> <span lang="FR">James M. Sullivan, Assistant
Professor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Virginia Commonwealth University </span> </p>
  <p> <span>tel:
fax: 804/828-7073</span> </p>
  <p> <span> &nbsp; </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> <span> &nbsp; </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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - H. D. Thoureau, 1850 </span> </p>
  <p> <span>*&nbsp;</span> <span> </span> </p>
  <p> <span> &nbsp; </span> </p>