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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with HREF and Submit( )

Status
Not open for further replies.

chags

Programmer
Dec 4, 2000
12
US
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=&quot;/servlet/SFAWhatNextServlet?Request=Next&quot; target=&quot;top&quot; onclick=return CheckSaveState(this)><IMG NAME=&quot;rerun&quot; SRC=&quot;/image/next.gif\&quot; ALT=\&quot;next&quot;></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 &quot;to wait untill the submit action is completed and then allowing HREF to execute.&quot;

Advance Thanks,
Chags
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top