Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery pageinit not firing
    text
    copied!<p>I have 2 pages that I linked using swipeleft and swiperight event(back and forth) but when I swipe to the other page, jquery doesn't fire the pageinit event and I am left with just the header and footer. Should I be using the changePage event or should I be using the loadPage event? I know that there is a bug in the other version of jquerymobile where pageinit event does not fire but I am already using the RC1 which has already solved it but the event is still not firing. what is stopping it from firing? Thanks in advance.</p> <p>Code is as follow:</p> <pre><code> &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" /&gt; &lt;meta http-equiv="Content-type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;esports&lt;/title&gt; &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0-rc.1/jquery.mobile-1.1.0-rc.1.min.css" /&gt; &lt;link rel="stylesheet" href="jquery.zrssfeed.css" /&gt; &lt;/script&gt; &lt;style&gt; &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;!-- index --&gt; &lt;div data-role="page" id="index"&gt; &lt;div data-role="header"&gt; &lt;h1&gt;esports times&lt;/h1&gt; &lt;/div&gt; &lt;!--/header--&gt; &lt;div data-role="content" id="content"&gt; &lt;div id="currentFeed"&gt;teamliquid. &amp;nbsp; skgamin&lt;/div&gt; &lt;ul id="rssFeed" data-role="listview"&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; &lt;!-- load javscripts here--&gt; &lt;script src="http://code.jquery.com/jquery-1.7.1.min.js"&gt;&lt;/script&gt; &lt;script src="http://code.jquery.com/mobile/1.1.0-rc.1/jquery.mobile-1.1.0-rc.1.min.js"&gt; &lt;/script&gt; &lt;script src="jquery.zrssfeed.js"&gt;&lt;/script&gt; &lt;script&gt; $('#index').bind("pageinit", (function () { $('#rssFeed').rssfeed('http://feeds.reuters.com/reuters/oddlyEnoughNews', { limit: 10, date: false, }); })); $('#index').bind("swipeleft", function () { $.mobile.changePage("teamliquid.html", "slide", true, false); }); &lt;/script&gt; &lt;!-- /javascript--&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload