Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Web Form and don't want it to submit on enter.



Chris,

Have tried using a type='button' and then attaching some JS to it to submit the page onclick? That should work.

Josh

On Mar 14, 2006, at 3:32 PM, Chris Brandstetter wrote:

I am doing a web page that I would like to not submit on enter. The reason
for this is that some of the page is filled out using a barcode reader,
which sends either a new line, or carriage return and a new line after the
barcode. I have tried using different text field types so there is not all
one type and that did not work. Any hints?



print <<HTML;
<html>
<body onLoad="document.forms.MyForm.outin.focus()">
<center><b><u><h3>Library Barcode Entry</h3></u></b>
<FORM NAME="MyForm" ACTION="barcodeaddout.cgi" METHOD="POST">
Out or In Entry: <input type="text" name="outin" size="25"
maxlength="100"><br>
File UPC Code Entry: <input type="text" name="fileupccode"
size="25" maxlength="100"><br>
Folder UPC Code Entry: <input type="text" name="folderupccode"
size="25" maxlength="100"><br>
Document UPC Code: <input type="text" name="docupccode" size="25"
maxlength="100"><br>
File Name: <textarea cols="25" rows="1"
name="filename"></textarea><br>
Document Name: <input type="text" name="docname" size="25"
maxlength="100"><br>
Default Location: <input type="text" name="defaultloc" size="25"
maxlength="100"><br>





<input type="submit" value="Enter"> HTML


Thank You Chris Brandstetter Network Administrator Atwood, Holsten & Brown Law Firm P.C., L.L.O. 1133 H St Lincoln NE 68508 (402)476-4400 Ext 35 (402)476-4410 (Fax)



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Web-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden
References: 
 >Web Form and don't want it to submit on enter. (From: Chris Brandstetter <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.