Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > captue enter button

Reply
Thread Tools

captue enter button

 
 
DaveF
Guest
Posts: n/a
 
      08-19-2004
Is it possible to capture the enter button and run a javascript function?

--


David


 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      08-19-2004
This is an ASP group so it only really deals with server-side coding, not
client-side events.

But, yes, you can. Key code 13 is enter, iIrc.

Ray at work

"DaveF" <> wrote in message
news:...
> Is it possible to capture the enter button and run a javascript function?
>
> --
>
>
> David
>
>



 
Reply With Quote
 
 
 
 
DaveF
Guest
Posts: n/a
 
      08-19-2004
I am doing the following. It works in a single page, but when I try to run
it in a frameset, it does not. ?????


<Script language="JavaScript">
function checkEnterKey(event){
if (event != null) {
code = event.keyCode
alert(code)
}
}
</script>
<body onkeypress="testme(event)";>

--


David Fetrow
Helixpoint LLC.
http://www.helixpoint.com

"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:%...
> This is an ASP group so it only really deals with server-side coding, not
> client-side events.
>
> But, yes, you can. Key code 13 is enter, iIrc.
>
> Ray at work
>
> "DaveF" <> wrote in message
> news:...
> > Is it possible to capture the enter button and run a javascript

function?
> >
> > --
> >
> >
> > David
> >
> >

>
>



 
Reply With Quote
 
Ray at
Guest
Posts: n/a
 
      08-19-2004
Try inquiring in either a client-side scripting group, i.e.
m.p.scripting.jscript, or a browser group.

Ray at work

"DaveF" <> wrote in message
news:...
>I am doing the following. It works in a single page, but when I try to run
> it in a frameset, it does not. ?????
>
>
> <Script language="JavaScript">
> function checkEnterKey(event){
> if (event != null) {
> code = event.keyCode
> alert(code)
> }
> }
> </script>
> <body onkeypress="testme(event)";>
>
> --
>
>
> David Fetrow
> Helixpoint LLC.
> http://www.helixpoint.com
>
> "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
> message news:%...
>> This is an ASP group so it only really deals with server-side coding, not
>> client-side events.
>>
>> But, yes, you can. Key code 13 is enter, iIrc.
>>
>> Ray at work
>>
>> "DaveF" <> wrote in message
>> news:...
>> > Is it possible to capture the enter button and run a javascript

> function?
>> >
>> > --
>> >
>> >
>> > David
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Captue window.close() event jimmy Javascript 2 04-12-2007 07:55 PM
capturing from text area Shft+Enter, Control+Enter, Alt+Enter and browser issue. HopfZ Javascript 0 08-28-2006 10:11 AM
hitting enter button while in textbox calls correct button's click event TS ASP .Net 5 11-29-2005 01:54 AM
Enter Key H*ll, control enter key submit button BrianDH ASP .Net Web Controls 3 01-12-2005 08:29 PM
trigger HTML button by enter ENTER key Matt Javascript 1 03-06-2004 07:01 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57