pagecreate


pagecreate eventversion added: 1.0

Description: Triggered when the page has been created in the DOM (via ajax or other) but before all widgets have had an opportunity to enhance the contained markup.

  • jQuery( ".selector" ).on( "pagecreate", function( event ) { ... } )

This event is most useful for user's wishing to create their own custom widgets for child markup enhancement as the jQuery Mobile widgets do.

1
2
3
$( "#aboutPage" ).on( "pagecreate", function( event ) {
$.( ":jqmData(role='sweet-plugin')" ).sweetPlugin();
});