I want to manually create a button that leads to the previous page.
This is all ok:
newButton = $("<a href='" + $prevPage + "' title='back' data-rel='back'>" + someText + "</a>").buttonMarkup({
shadow: true,
corners: true,
theme: "a",
iconpos: "left",
icon: 'arrow-l'
});
My problem is setting the $prevPage variable. The data object supplied by JQM contains a prevPage object, so my question:
How do I extract the URL or Hashchange from this object?
Most use something like this –
You shouldn’t have to extract a hash using this method.