I’ve got a very easy problem, but my knowledge about deeper JS is a bit too limited.
What I have created is a simple jQuery Mobile Application.
Page A has got an link element to page B. Page B holds some JavaScript, that fires jqPlot to draw an chart.
When I Access Page B directly, it works fine. When using the Link on Page A, it doesn’t fire the JavaScript code.
Inside B I just Call the $(document).ready(function (){});
Can anybody help me, please?
Check out the
pagechangeevent in the events documentation:http://jquerymobile.com/test/docs/api/events.html
This event should accomplish what you’re trying to do.