Difference between revisions of "Jqm"
From Wiki2
(Created page with " pageinit doesn't fire if its in the loaded .js <pre> <body> <div id="indexPage" data-role="page"> <script type="text/javascript"> $("#indexPage").live('p...") |
|||
| Line 1: | Line 1: | ||
pageinit doesn't fire if its in the loaded .js so put it in the div | |||
pageinit doesn't fire if its in the loaded .js | |||
<pre> | <pre> | ||
<body> | <body> | ||
Revision as of 13:55, 24 January 2012
pageinit doesn't fire if its in the loaded .js so put it in the div
<body>
<div id="indexPage" data-role="page">
<script type="text/javascript">
$("#indexPage").live('pageinit', function() {
// do something here...
});
</script>
</div>
</body>