I followed the introduction of the official jQuery Mobile docs:
Important: Use pageInit(), not $(document).ready()
but, when I write:
pageInit(function()
alert('ahhh');
});
my Safari Console tells me: Cant find variable "pageInit"
Why is this? How can I use the function pageInit()?
or with JQuery 1.7
http://api.jquery.com/on/
http://api.jquery.com/live/
btw in JQMobile its recommended to use Jquery 1.6.4, thus, first example is the right one.
zY