Multiple forms on aspx and ENTER key

G

Guest

I received a design change to add an additional search textbox to our header
control for completely different type of search than one on the left side of
the page. Each search textbox is submitted by different linkbuttons to allow
me to handle each click event on the postback.

My problem is handling what happens when a user presses ENTER. I could trap
the Keypress event to check that they've entered text by checking which
textbox has focus and if they did, call the click() event, but I don't see a
way to determine focus in javascript. Any suggestions would be appreciated in
handling these multiple forms.

Thanks.
 
S

S. Justin Gengo

Dave,

I have a javacript object that is free and comes with all source code. It
has a few handy javascripts in it. One of them lets you specify which button
is clicked when you press enter while in a text box.

You may find a demo of all the scripts the component has and a download for
the component here: http://www.aboutfortunate.com?page=javascriptdemo

If you have any questions about the component feel free to email me.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top