on 05-16-2006 10:09 AM
Hi
Can any one give me suggestion that how to stop back button navigation from jspDyn page.
My criteria is once the order is complete ie. after reaching to the last page then if user tries to navigate to back screen using browser back button , we should not allow him.
I have use this statement in html:
<script language="javascript">
window.history.forward(1);
</script>
this is working fine , but if i keep the same in jspDyn page it is not working.
Please suggest me how to solve this issue.
This is quiet urgent issue, early suggestion/answer will be highly appreciated.
Regards,
Joseph
Hi,
Try like this in your jsp page.
<html>
<script>window.history.forward(1)</script>
</html>
Hope it helps.
Regards,
M.Subathra
Message was edited by: Subathra M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harini,
I have tried out like that also. It is same as usual.
This is the page i created.
<%@ taglib uri="tagLib" prefix="hbj" %>
<hbj:content id="myContext" >
<hbj:page title="PageTitle">
<script>
var funcName = htmlb_formid+"_getHtmlbElementId";
func = window[funcName];
func.history.forward(1);
</script>
<hbj:form id="myFormId" >
<h1>Request Submitted</h1>
</hbj:form>
</hbj:page>
</hbj:content>
Pls do let me know any other options
Regards,
Joseph
Hi,
When using javascript in your JSPDynPage, for it to reflect you must include the following line:
<hbj:form id="myFormId" encodingType="multipart/form-data">
rather than a simple
<hbj:form id="myFormId" >
Try this, it should work, cause it has worked for me.
Regards,
Sujana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.