Having an issue with getting the current page name on PAGESHOW event
.
.
.
$('div').live('pageshow', function( e,ui ) {
alert( "prev page=" + ui.prevPage );
});
.
.
.
When this alert is run, all I get is "[object Object]" displayed. I though it was suppose to be the actual page name, not an object This is what the sample code on page
http://jquerymobile.com/demos/1.0a3/#docs/api/events.html
has
$('div').live('pageshow',function(event, ui){
alert('This page was just hidden: '+ ui.prevPage);
});
I'm using jQuery 1.5 and 1.0a3 of mobile, I actually would like the current page but was starting with this code to test with.