I'm building a JQM app. It's a multiple page app that uses the jquery mobile page divs to hide and show pages as it goes through.
The pages are laid out like:
<div data-role="page" id="listpets" data-title="List Pet">
<p>Page Data</p>
</div>
There are loads of these, and i'm trying to make it so that when listpets page is loaded, it fires javascript events.
I've been reading up on pagecontainershow to try and make it run.
Heres the code I have:
$( "#listpets" ).on( "pagecontainershow", function( event, ui ) {
alert("BOOOM");
});
However, when I load listpets it doesn't fire the alert.
Can anyone see where I'm going wrong?
Tom
I am building an UI with jsPlumb were I have multiple boxes that can be connected together. Each box has 1 target and 3 sources, made with the makeTarget and makeSource methods called upon the same ...
I am building an UI with jsPlumb were I have multiple boxes that can be connected together. Each box has 1 target and 3 sources, made with the makeTarget and makeSource methods called upon the same ...
I need to define different style by the value of a champ in ng-repeat, i try this : <thead> <tr><th>#</th><th>Nom</th><th>Ville</th><th style="...
I need to define different style by the value of a champ in ng-repeat, i try this : <thead> <tr><th>#</th><th>Nom</th><th>Ville</th><th style="...
I am trying to make an animation of the effect of an opening door. Is there any known algortihms for doing this? If not, I need to alter a rectangular div making the right side longer than the left ...
I am trying to make an animation of the effect of an opening door. Is there any known algortihms for doing this? If not, I need to alter a rectangular div making the right side longer than the left ...
I'm trying to debug a Firefox extension, using Firefox 28.0. I have set up the dev environment as suggested in https://developer.mozilla.org/en-US/Add-ons/Setting_up_extension_development_environment ...
I'm trying to debug a Firefox extension, using Firefox 28.0. I have set up the dev environment as suggested in https://developer.mozilla.org/en-US/Add-ons/Setting_up_extension_development_environment ...