Hi there,
I am really interested in using jQuery mobile, both for mobile and desktop as I love the fact that you can use page transitions and also have static elements that persist across different pages- for things like msuic players that play music in the background across a site.
I am trying to develop this for wordpress, but am hitting major problems with plugins not working. I expect the main issue is that most plugins use $(document).ready() to make themselves work.
For example I am using things like the sharethis and disqus plugins for wordpress. These plugins download code from the sites themselves. I could download my own copies and change the $(document).ready() to pageInit(), but the problem with that is that if disqus/sharethis change anything that they would usually expect people to be getting automatically because most users will be loading the js from their live source, my code wont work. This sounds like a maintainence nightmare.
So my question is what types of work arounds have people come up with for this kind of thing?
For example the 'shareThis' plugin adds the buttons to the first page loaded, then they dont appear on the ajax loaded page, unless you refresh it- which kind of defeats the point of it really.
I expect that shareThis and Disqus will be pretty quick off the mark with updates that work with jQm, but other things like RoleScoper and aloha editor are less likely to be that quick. So is there any method to transpose any loaded $(document).ready() to run on pageInit() or is this a bad idea- in which case does anyone have any good ideas?