mobile.changePage with 1.3 alpha
Coming from 1.2 to 1.3, there seems to be an issue (or change) w/ mobile.changePage.
- $("a[href=#page-children]").live('click', function() {
- var id = "";
- var url = "";
- if ($(this).data("id") != null) {
- id = $(this).data("id");
- url = "/get.Children/"+id;
- } else {
- id = $(this).data("group");
- url = "/get.Group?group="+id;
- }
- //take out if statement to load child items every time
- id = id.replace(/\s/g, "");
- if ($('#page-'+id).length == 0) {
- createChildPage(id);
- loadChildrenListItems(id, url, $(this).text());
- }
- $.mobile.changePage('#page-'+id, "slide", false, true); //freezes here w/ loading symbol
- });
Basically, i'm checking to see if a child page exists, and if not, I'm dynamically creating child pages and appending it to the main page using $('body').append(page);. Then programatically going to that page using mobile.changePage, but now just hangs at the changePage event w/ the default loading symbol.
Any ideas?
Thanks