I have an application that it call sequentially others applications.
each application has a back button, it work well, but the problem that I have,
if when the user uses the browser for go back, then application show a error because it can’t load the page (error cache is showed)
coud anybody help me.? Any information will be valuable?
thanks.
Copy and paste this code in the apps that can’t go back, if it is ‘grid’ put it on the OnScriptInit event and on the ‘forms’ in OnLoad:
?>
<script type="text/javascript">
history.pushState(null, null, location.href);
history.back();
history.forward();
window.onpopstate = function () { history.go(1); };
</script>
<?php
Examples:
Grid:
Form:
1 Curtida
I see the back browser buttorn is being blocked. it works perfect in the Grid, but in the Form app. it works fine the fist time but when I go back and I try to enter a second o more times, the form show blank (not load the page). The url in the top is correct but don’t load de page.
this form starts in mode new(insert) but I don’t think it was the issue.
thanks