Multiple forms on aspx and ENTER key

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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
 
Back
Top