Reputation: 4966
I have a scroll bar plugin that only works if I refresh the page, and I'm trying to make it work seamlessly. I reference it with this:
<script type="text/javascript" src="cubiq-iscroll-bad88fb/src/iscroll.js"></script>
The whole plugin (iscroll.js) is wrapped in this:
(function(window, doc){a lot of stuff});
Can I somehow replace that function with something like this
$('#transPage, #categorizePage, #IDKPage').live('pageinit', function( ){a lot of stuff});
so that it loads without needing to refresh?
Upvotes: 0
Views: 285
Reputation: 57309
Don't use iscroll on jQM project.
Use these two plugins instead:
Combination of jQM and Pure iScroll is not a good one mainly because pure iScroll was not built to work with jQM page logic.
Upvotes: 0