How to collect data with Javascript after change page command on jquery mobile. This is my command:
var resultDate = "123121312";
$.mobile.changePage("animation.html", { transition: "slidedown", type: "post", data:resultDate});
How to collect that data using JS on page animation.html
That should fire on pageChange and if it’s run on the page you want (obviously you need to narrow it down to that) then it will have the data variable you passed in.
You’ll either need to bind/unbind it for just the page you want, or use the url variable/data to only run it on the page you want. Or you could check the data variable and only run when it is valid, as I am doing.