By clicking nextpage button, CheckSaveState(form) is triggered and in which it checks whether any thing is there to save in the current page and if found then has to call submit() methode. This submit action takes atleast 30sec to update database in SAP. After submitting it has to show next page by calling a servlet at HREF="/servlet/SFAWhatNextServlet?Request=Next" .
The code as following:
<A HREF="/servlet/SFAWhatNextServlet?Request=Next" target="top" onclick=return CheckSaveState(this)><IMG NAME="rerun" SRC="/image/next.gif\" ALT=\"next"></A>
CheckSaveState(formname) has submit() methode.
Problem:
If any thing to save in current page it starts submitting and immediately terminated submit action by executing HREF and displaying next page.ie. it not saving the changes to database. Pl advice or give me a tip "to wait untill the submit action is completed and then allowing HREF to execute."
Advance Thanks,
Chags
The code as following:
<A HREF="/servlet/SFAWhatNextServlet?Request=Next" target="top" onclick=return CheckSaveState(this)><IMG NAME="rerun" SRC="/image/next.gif\" ALT=\"next"></A>
CheckSaveState(formname) has submit() methode.
Problem:
If any thing to save in current page it starts submitting and immediately terminated submit action by executing HREF and displaying next page.ie. it not saving the changes to database. Pl advice or give me a tip "to wait untill the submit action is completed and then allowing HREF to execute."
Advance Thanks,
Chags