Squirrl
Squirrl

Reputation: 4966

How do I make this plugin work with jQuery Mobile?

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

Answers (1)

Gajotres
Gajotres

Reputation: 57309

Don't use iscroll on jQM project.

Use these two plugins instead:

  1. JQM iscrollview - plugin created for purpose of iScroll integration with the jQuery mobile.
  2. Overthrow - another alternative

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

Related Questions