JavaScript On pagecontainershow pagecontainer show,jquery mobile pagecontainer show

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

Answer:1

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="...

  1. angularjs repeat index
  2. angularjs repeat filter
  3. angularjs repeat n times
  4. angularjs repeat orderby
  5. angularjs repeat object
  6. angularjs repeat track by
  7. angularjs repeat without element
  8. angularjs repeat limit
  9. angularjs repeat sort
  10. angularjs repeat key value
  11. angularjs repeat array
  12. angularjs repeat group by
  13. angularjs repeat filter function
  14. angularjs repeat table
  15. angularjs repeat x times
  16. angularjs repeat div
  17. angularjs repeat last
  18. angularjs repeat select option
  19. angularjs repeat element n times
  20. angularjs repeat if

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 ...

  1. debugging firefox extension
  2. javascript debugging extension firefox
  3. firefox extension debugging not working