-
Disabling Button (1 messages)
- Posted by: sajo john
- Posted on: January 15 2010 05:35 EST
Hi All, Iam facing a problem in my code that's really buzzing me,any help provided would be welcome.I have a jsp and a frame page.On the jsp there is a button on click of which interface is hit & its takes some time for response .On the topframe there is a button on hit of which again interface is called now my requirement is i need to disable the button in the top frame while in the jsp the interface button has been hit & process is going on?Does any one have any idea as to how to go about itThreaded Messages (1)
- Disabling Button by Mahesh Tabib on April 19 2010 23:43 EDT
-
Disabling Button[ Go to top ]
- Posted by: Mahesh Tabib
- Posted on: April 19 2010 23:43 EDT
- in response to sajo john
I think a simple javascript methods would suffice to enable and disable.
1.Have a javascript method which disables the button(s) on click.
2.On load of the frame, i.e. after a response is received, enable the button. (body onload method).
For disabling button:
document.getElementById("btnCallInterface").disabled = true;
For Enabling button:
document.getElementById("btnCallInterface").disabled = false;