Tuesday, May 21, 2024
 Popular · Latest · Hot · Upcoming
131
rated 0 times [  132] [ 1]  / answers: 1 / hits: 30352  / 13 Years ago, wed, june 15, 2011, 12:00:00

I have the following code:



<html xmlns=http://www.w3.org/1999/xhtml>
<head runat=server>
<title></title>
<script src=http://code.jquery.com/jquery-1.4.4.min.js></script>

<script type=text/javascript language=javascript>
$( function() {
window.onload = function () {
alert('This page was just hidden:');
}
});
</script>
</head>
<body pageshow=alert('Done');>
<div id=mypage data-role=page data-theme=b>
<div data-role=header>
<h1>Page 2</h1>
</div>
<div data-role=content>
<p>This is page 2.</p>
</div>
</div>
</body>
</html>


But the pageShow event is not firing in IE. Any idea why?


More From » jquery

 Answers
16

OnPageShow and OnPageHide are new HTML5 event attributes, and as such will only enjoy limited browser support (at the time of writing)



Its more likely that later versions of incumbent browsers will support it. Firefox certainly will, as will Safari according to this article.



I couldn't find anything that stated it definitively, but I would say that its likely that these events aren't supported in the version of IE that you are using. Can you maybe post this information for clarification.



Hope this helps


[#91691] Tuesday, June 14, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
monetm

Total Points: 615
Total Questions: 103
Total Answers: 119

Location: Finland
Member since Fri, Oct 21, 2022
2 Years ago
monetm questions
Fri, Feb 26, 21, 00:00, 3 Years ago
Wed, Sep 9, 20, 00:00, 4 Years ago
Sun, Jul 26, 20, 00:00, 4 Years ago
Thu, Jun 11, 20, 00:00, 4 Years ago
;