G
Goofy
Hi everyone,
My question is related to making a form submit using javascript. Here is my
scenario. I have a form, which includes a user control. The user control
has a search button and a submit button. I have visably hidden th search
button by setting its appearance and added an HTML button which calls the
click event of my real server control button.
This works fine.
I now want to cause the click event of the search button to be called when
the user hits the enter key in the text search text box. I have done this by
using the OnKeyDown event of the body tag and check if the character is the
enter key. This does invoke the function and I can do an alert('hello
world'); to prove it is working.
However . . . . . . .
If I try and call the real search button click() from this event nothing
happens.
Does anyone have insight into what I am doing wrong or how I can resolve it.
Many Thanks
My question is related to making a form submit using javascript. Here is my
scenario. I have a form, which includes a user control. The user control
has a search button and a submit button. I have visably hidden th search
button by setting its appearance and added an HTML button which calls the
click event of my real server control button.
This works fine.
I now want to cause the click event of the search button to be called when
the user hits the enter key in the text search text box. I have done this by
using the OnKeyDown event of the body tag and check if the character is the
enter key. This does invoke the function and I can do an alert('hello
world'); to prove it is working.
However . . . . . . .
If I try and call the real search button click() from this event nothing
happens.
Does anyone have insight into what I am doing wrong or how I can resolve it.
Many Thanks