I am having a jquery Mobile page .
It has a deep list which has got Category at the parent level, on click it fetches the sub categories and populates them to the list. Now the thing is that in this i have to handle back buttons . I could take care of this using Ben Alman’s BBQ but then everything is to be handled on hash change event manually. But in jquery mobile it already uses bbq internally as per i have read.
Is there any easy way i could push the current page state into history and it will be handled by jquery mobile when a user clicks a back button ?
The reason to avoid it is that that it saves many bugs . I have used it before and when the things get too deep , handling back buttons gets very difficult.
As long as you do not empty the list or remove the page from DOM programatically on the
pagehideevent; you should be getting back to previous page’s list using<a href="#" data-rel="back"></a>for your back buttons.