W
wardy
Hi all,
Looking for a bit of help with this one...I have a situation where I
need to be able to determine the control that initiated a form's submit
action in client-side Javascript. I am currently calling a Javascript
function on the client-click that returns true/false to control the
submission of a product, but I am now trying to implement functionality
to disable the buttons after the initial click, but continue with the
submit operations. My form is a mixture of HTML and .NET controls, so
I'm wondering if there is a generic way to determine in Javascript what
control actually caused my validation function to be invoked, short of
having to pass the control as part of the argument list - I am trying
to get a generic solution not requiring that level of modification.
Of note here is that as soon as I disable a button, the postback event
doesn't fire anymore, so I'm having to manually invoke this postback in
Javascript, and this is why I need the control that initiated the
submit, as I must invoke it's postback routine.
Thanks,
wardy
Looking for a bit of help with this one...I have a situation where I
need to be able to determine the control that initiated a form's submit
action in client-side Javascript. I am currently calling a Javascript
function on the client-click that returns true/false to control the
submission of a product, but I am now trying to implement functionality
to disable the buttons after the initial click, but continue with the
submit operations. My form is a mixture of HTML and .NET controls, so
I'm wondering if there is a generic way to determine in Javascript what
control actually caused my validation function to be invoked, short of
having to pass the control as part of the argument list - I am trying
to get a generic solution not requiring that level of modification.
Of note here is that as soon as I disable a button, the postback event
doesn't fire anymore, so I'm having to manually invoke this postback in
Javascript, and this is why I need the control that initiated the
submit, as I must invoke it's postback routine.
Thanks,
wardy