I am working with some code that uses jQuery $ (document) .ready to set up a jqGrid instance. It seems that the code runs even when you return to the page with a back-click.
On the test page with truncation, a similar cooking function is not called when it can be obtained by pressing the "Back" button:
<html>
<head>
<script type="text/javascript" src="/JQuery/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
alert('ready');
})
</script>
</head>
<body>
<p>Index View</p>
<a href="detail.html">Detail</a>
</body>
</html>
Can you give me some tips on where to look for what causes this difference in behavior?
I found some related information in the answer to this question , but there is no event handler registered for unloading on the page with the overactive ready event.