Response title
This is preview!




(function($,window){
$.widget("mobile.somesome",$.mobile.widget, {
_create: function() {
var self = this;
console.log("here we go");
...
}
});
// initialize
var trigger = $('div:jqmData(somesome="true")').live( 'pagecreate',function(event){
if ($('html').data('somesome-init', 'Off')) {
$('html').data('somesome-init', 'On')
console.log("trigger fired");
trigger.somesome();
}
});
}) (jQuery,this);However, if I start on either page1.html or page3.html and then call page2.html hoping the plugin would fire, I only get the console "trigger fired", so I'm detecting correct, but the plugin itself doesn't run.
Can anybody give me a hint as to why?
THANKS!
$.mobile.changePage( "about/us.html", { transition: "slideup"} );about; $.mobile.changePage( '$("#'+obj+'"'), { transition: "slideup"} );© 2012 jQuery Foundation
Sponsored by
and others.
