I am making a book, and use jQuery to change pages etc.
At the top I have an $(document).ready(function() that does different stuff when the page is loaded.
On the GUI page I got a “change page” button, and when this is pushed, the function turnPage() is called. This method contain some code pluss this:
$.mobile.changePage("#device"+window.device, {
transition: "slide",
reverse: false,
changeHash: true
});
My question is, when turnPage() is called, is also $(document).ready(function() called?
(Yes, I am new to this)
DOM ready event is an event that fires when the DOM is fully loaded except of images (
<img>).The event fires once for each page load. So:
turn page()function makes a redirect, the answer is Yes.turn page()function only gets data withajaxrequest, the answer is No.Important Update:
I found this in the official plugin website :
So
turn pagedoes anajaxrequest, so the final answer is No.What is the ready event: