diff --git a/js/jquery.mobile.js b/js/jquery.mobile.js index 9f081336..5a23073a 100644 --- a/js/jquery.mobile.js +++ b/js/jquery.mobile.js @@ -275,7 +275,10 @@ $.ajax({ url: fileUrl, success: function( html ) { - var page = jQuery("
" + html + "
").find('[data-role="page"]'); + var all = jQuery("
"); + //workaround to allow scripts to execute when included in page divs + all.get(0).innerHTML = html; + var page = all.find('[data-role="page"]'); if ( page.attr('id') ) { page = wrapNewPage( page );