Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Urgent help needed for javascript

Status
Not open for further replies.

hemajb

Programmer
Sep 26, 2003
19
IN
I have 2 files, one is a html file and another is a jsp file. html file has a method "funcA" which calls a method "funcB" in a jsp file. "funcB" submits the form in the jsp and reloads the jsp page.
How do i make "funcA" to wait till the jsp is reloaded. Please reply me if anyone knows an answer to this..Its "QUIET URGENT"

Thanks in advance..
Hema

 
this is a java forum. but to answer your question,

do this:

<html>
<head>

<script>
function a(){

}
function b(){

}
</script>
</head>
<body>

<script>
function b();
//please check the right case for the word timeout
window.setTimeout(&quot;function a&quot;, 500); //0.5 seconds
</script>
</body>
</html>

~za~
You can't bring back a dead thread!
 
It just got out of my mind that this is java forum..
Thanks &quot;maxpower1&quot;, you solved my problem.
Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top