I've got a valid and working page that begins with this definition:
div data-role="page" data-theme="b" id="alkohol.test" data-url="alkohol.test" tabindex="0" class="ui-page ui-body-b ui-page-header-fixed iscroll-page ui-page-active" >
This is called properly and being displayed like it should but it seems not to fire on page init event. My code:
$( '#alkohol.test' ).live( 'pageinit',function(event){
console.log("Test successfully loaded!");
});
When I change the page id to "alkoholtest" then it fires on pageinit. I assume that dots aren't allowed and I think that it's all about jquery selectors that expects id "alkohol" followed by the class "test" - but I want it to react to the page id being called. Is there a workaround for this problem? I mean without changing the dot to something else because I've got tons of code that will be a nightmare to change. Escaping or something?