Note that there are some explanatory texts on larger screens.

plurals
  1. POAutosubmit single form input box when filled
    primarykey
    data
    text
    <p>I have been asked for a very short simple project to allow the magnetic stripe of an ID card to be read, and display the result from a database if dues are paid or not paid.</p> <p>I have all this working and am trying to remove some annoying behaviors. The magnetic strip information is being captured in a form with a single input text field. The user must click on submit to proceed to a second hidden page where I parse out the information and assign to variables, preparing for the database search.</p> <p>I would like to remove the requirement that the user has to press the submit button. It seems that I should be able to trigger off the length of the input variable being greater than 0.</p> <pre><code>&lt;%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%&gt; </code></pre> <p>. .</p> <pre><code>&lt;body onload = document.get_id.fID_Num.focus();&gt; </code></pre> <p>. .</p> <pre><code>&lt;form id="get_id" name="get_id" method="post" action="card_swipe_process.asp"&gt; &lt;table width="100%" border="5" cellpadding="2"&gt; &lt;tr&gt; &lt;td width="45%" class="PIN_LABEL"&gt;Swipe ID Card&lt;/td&gt; &lt;td width="10%"&gt;&amp;nbsp;&lt;/td&gt; &lt;td width="45%"&gt;&lt;label for="fID_Num"&gt;&lt;/label&gt; &lt;input name="fID_Num" type="text" id="fID_Num" maxlength="15" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="PIN_LABEL"&gt;&amp;nbsp;&lt;/td&gt; &lt;td&gt;&amp;nbsp;&lt;/td&gt; &lt;td&gt;&amp;nbsp;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="PIN_LABEL"&gt;&amp;nbsp;&lt;/td&gt; &lt;td&gt;&amp;nbsp;&lt;/td&gt; &lt;td&gt;&lt;input type="submit" name="ID_NUM_ENTER" id="ID_NUM_ENTER" value="Submit" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/form&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload