I'am using the pagebeforechange event to generate my list dynamically.
The back buttons are not generated.
The code used to generate my listview is below:
- $(document).bind("pagebeforechange", function (e, data) {
- // // We only want to handle changePage() calls where the caller is
- // // asking us to load a page by URL.
- var u = $.mobile.path.parseUrl(data.toPage),
- red = /^#details/, re = /^#groupitems/, rec = /^#recherche/;
- if (typeof data.toPage === "string") {
- BottinDB.urlObj = u;
- BottinDB.options = data.options;
- if ($.trim(u.hash).length == 0) {
- BottinDB.onGetGroup(BottinDB.defaultGroup);
- return;
- }
- if (u.hash.search(re) !== -1) {
- // We're being asked to display the items for a specific category.
- // Call our internal method that builds the content for the category
- // on the fly based on our in-memory category data structure.
- BottinDB.onGroupClick()
- // Make sure to tell changePage() we've handled this call so it doesn't
- // have to do anything.
- e.preventDefault();
- return;
- }
- //Je demande à voir le détail d'un usager
- if (u.hash.search(red) !== -1) {
- BottinDB.onDetailsClick();
- e.preventDefault();
- return;
- }
- if (u.hash.search(rec) == -1)
- BottinDB.onGetGroup(Utilitaires.getParam('typegroupe', u.hash));
- }
- }).live("pageinit", SearchModule.byPass)
- .ready(BottinDB.onInit);
and the html code is :
As you see, the back buttons aren't generated.
I will note also, when I come back from page with id details, my listview link's not working also..
I very need help...