Hi,
By clicking next button it has to update the database and should show next page. For which I writtern the following code
<A HREF="/servlet/SFAWhatNextServlet?Request=rerun" onclick="return checkSaveState(formname)">Image</A>
In which the methode checkSaveState(formname) has the following code
.....
var status = document.forms[0].element["to_save_any"].value;
if(status == "yes"
{
document.forms[0].submit();
}
return true;
......
Actually after submitting it usually takes atleast 30seconds to update database . But immediately with in a second after the submit command, it is returning true and executing
HREF="/servlet/SFAWhatNextServlet?Request=rerun"
by stopping submit action.
ie. in one step it is doing two actions. So How I can complete submit command(for completing submit it takes 30sec ) and then it has to execute HREF. If anyone suggest any alternative or any solution to same code will be appreciated.
Thanks in advance
chags
By clicking next button it has to update the database and should show next page. For which I writtern the following code
<A HREF="/servlet/SFAWhatNextServlet?Request=rerun" onclick="return checkSaveState(formname)">Image</A>
In which the methode checkSaveState(formname) has the following code
.....
var status = document.forms[0].element["to_save_any"].value;
if(status == "yes"
{
document.forms[0].submit();
}
return true;
......
Actually after submitting it usually takes atleast 30seconds to update database . But immediately with in a second after the submit command, it is returning true and executing
HREF="/servlet/SFAWhatNextServlet?Request=rerun"
by stopping submit action.
ie. in one step it is doing two actions. So How I can complete submit command(for completing submit it takes 30sec ) and then it has to execute HREF. If anyone suggest any alternative or any solution to same code will be appreciated.
Thanks in advance
chags