S
Scott
I have an asp.net page that performs a function for a user that can
take up to 30 seconds. So, I have a javascript function that shows an
animation to let the user know something is going on. I have tied
this animation to the single button on the page with the following
piece of code:
btn_rc.Attributes.Add("onClick", "status_change();")
This works great. When I click the button, I get the animation, and
when the page finishes the animation ends.
Now, since this is the only button on the page, I want to let the user
use the enter key to submit the form as well. So, with another piece
of code, I have successfully accomplished that:
Page.RegisterHiddenField("__EVENTTARGET", "btn_rc")
Now for the problem:
If the user hits the enter button to submit the form, it works but
does not display the javascript animation. How can I get the same
javascript animation to display if the enter key is hit vs. clicking
my submit button?
Thanks.
Scott
take up to 30 seconds. So, I have a javascript function that shows an
animation to let the user know something is going on. I have tied
this animation to the single button on the page with the following
piece of code:
btn_rc.Attributes.Add("onClick", "status_change();")
This works great. When I click the button, I get the animation, and
when the page finishes the animation ends.
Now, since this is the only button on the page, I want to let the user
use the enter key to submit the form as well. So, with another piece
of code, I have successfully accomplished that:
Page.RegisterHiddenField("__EVENTTARGET", "btn_rc")
Now for the problem:
If the user hits the enter button to submit the form, it works but
does not display the javascript animation. How can I get the same
javascript animation to display if the enter key is hit vs. clicking
my submit button?
Thanks.
Scott