Hi
I am facing a problem in executig the javascript in innerHtml.
I got a login screen(jsp page), with two form in the bodyl.One form is wrapped by a div tag.Which has got the login information like username password.
The request is posted through ajax. On processing the request, if password is expired change password screen will get dispalyed.
The content is getting displayed by replacing the div tag of login screen.
Code :document.getEl ementById("cont ent").innerHTM L = http.responseTe xt.
Problem i am facing is i got a javascript code present next to the textbox tag in change screen jsp pages
The above mentioned script is not getting executed .
Can anyone suggest me a solution for the above problem.
Thanks in advance
Regards
Das
I am facing a problem in executig the javascript in innerHtml.
I got a login screen(jsp page), with two form in the bodyl.One form is wrapped by a div tag.Which has got the login information like username password.
The request is posted through ajax. On processing the request, if password is expired change password screen will get dispalyed.
The content is getting displayed by replacing the div tag of login screen.
Code :document.getEl ementById("cont ent").innerHTM L = http.responseTe xt.
Problem i am facing is i got a javascript code present next to the textbox tag in change screen jsp pages
Code:
<script> window.document.forms[0].elements[0].focus </script>
Can anyone suggest me a solution for the above problem.
Thanks in advance
Regards
Das
Comment