Click here to Skip to main content
16,013,489 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Drop Down w/Multiple Selections Pin
lizhill11-Aug-02 20:02
lizhill11-Aug-02 20:02 
GeneralAccess Page from TypeConverter Pin
Jamie Nordmeyer9-Aug-02 5:51
Jamie Nordmeyer9-Aug-02 5:51 
QuestionHow to make the columns of two tables have the same width? Pin
Alvaro Mendez9-Aug-02 5:10
Alvaro Mendez9-Aug-02 5:10 
AnswerRe: How to make the columns of two tables have the same width? Pin
Jeremy Falcon9-Aug-02 5:49
professionalJeremy Falcon9-Aug-02 5:49 
GeneralRe: How to make the columns of two tables have the same width? Pin
Alvaro Mendez9-Aug-02 6:29
Alvaro Mendez9-Aug-02 6:29 
AnswerA solution! Pin
Alvaro Mendez9-Aug-02 9:57
Alvaro Mendez9-Aug-02 9:57 
GeneralCatch enter pressing Pin
Mazdak9-Aug-02 3:24
Mazdak9-Aug-02 3:24 
GeneralRe: Catch enter pressing Pin
Jared Solomon9-Aug-02 10:58
Jared Solomon9-Aug-02 10:58 
You can use Javascript to perform this function. Here is the sample code.

This javascript function recives the event object and uses the keyCode property to check for character '13' which is a carriage return.It submits the form and returns false so when the user clicks enter, the carriage return is not added to the field. If it is not 13 then allow the character to be typed in.

<br />
function CheckForEnter(oEvent)<br />
{<br />
  if(oEvent.keyCode=='13')<br />
  {<br />
    return false;<br />
    myform.submit();<br />
    <br />
  }<br />
  else<br />
  {<br />
    return true;<br />
  }<br />
<br />
  <br />
}<br />


here is the HTML for a textfield, use the keyonpress event so that way the event fires before the character is actually entered.:

<br />
  <form id=myform action=test.aspx runat=server><br />
     <input type=text id=txtTest onkeypress="return CheckForEnter(event);"><br />
  </form><br />


thats all there is to it. Smile | :)




Jared Solomon
Programmer/Analyst
GeneralRe: Catch enter pressing Pin
Mazdak9-Aug-02 19:15
Mazdak9-Aug-02 19:15 
GeneralPrint HTMl Pin
Raju Pande MKCL Pune8-Aug-02 23:36
sussRaju Pande MKCL Pune8-Aug-02 23:36 
GeneralRe: Print HTMl Pin
Paul Watson9-Aug-02 0:36
sitebuilderPaul Watson9-Aug-02 0:36 
QuestionCompile a String of Email Addresses? Pin
Robby8-Aug-02 11:58
Robby8-Aug-02 11:58 
AnswerRe: Compile a String of Email Addresses? Pin
Bullschmidt8-Aug-02 16:31
Bullschmidt8-Aug-02 16:31 
GeneralRe: Compile a String of Email Addresses? Pin
Robby9-Aug-02 3:15
Robby9-Aug-02 3:15 
QuestionFill out a form dynamically? Pin
JohnnyNin8-Aug-02 11:18
JohnnyNin8-Aug-02 11:18 
AnswerRe: Fill out a form dynamically? Pin
Jared Solomon8-Aug-02 12:18
Jared Solomon8-Aug-02 12:18 
AnswerRe: Fill out a form dynamically? Pin
Todd Smith8-Aug-02 13:16
Todd Smith8-Aug-02 13:16 
AnswerRe: Fill out a form dynamically? Pin
Paul Watson9-Aug-02 0:41
sitebuilderPaul Watson9-Aug-02 0:41 
GeneralASP client-side script debugging with VID,how to?. Pin
Romeo8-Aug-02 7:39
Romeo8-Aug-02 7:39 
GeneralRe: ASP client-side script debugging with VID,how to?. Pin
Jeremy Falcon8-Aug-02 7:40
professionalJeremy Falcon8-Aug-02 7:40 
GeneralCGI & receiving form data from C/C++ Pin
Eepos8-Aug-02 4:40
Eepos8-Aug-02 4:40 
GeneralRe: CGI & receiving form data from C/C++ Pin
Jeremy Falcon8-Aug-02 7:37
professionalJeremy Falcon8-Aug-02 7:37 
GeneralTNX: CGI & receiving form data from C/C++ Pin
Eepos9-Aug-02 0:29
Eepos9-Aug-02 0:29 
GeneralSearch Function Pin
NathanScott7-Aug-02 18:19
NathanScott7-Aug-02 18:19 
GeneralRe: Search Function Pin
Paul Watson8-Aug-02 4:30
sitebuilderPaul Watson8-Aug-02 4:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.