});
/* Gen list : Dummy DB load */
- $(".virtuallist_demo_page").live("pagecreate", function () {
+ $( document ).on( "pagecreate", ".virtuallist_demo_page", function () {
/* ?_=ts code for no cache mechanism */
$.getScript( "./virtuallist-db-demo.js", function ( data, textStatus ) {
$("ul").filter( function () {
});
/*Expandable list : Dummy DB load*/
- $("#genlist_extendable_page").live("pagecreate", function ( el ) {
+ $( document ).on( "pagecreate", "#genlist_extendable_page", function () {
/*?_=ts code for no cache mechanism*/
$.getScript( "./virtuallist-db-demo.js", function ( data, textStatus ) {
$("ul").filter( function () {
});
// Expand all textarea height automatically
- $('#ButtonNolist').live( "pagecreate", function ( ev ) {
+ $( document ).on( "pagecreate", "#ButtonNolist", function ( ev ) {
var page = $( ev.target );
$( page ).bind( 'pageshow' , function ( ) {
var textarea = page.find('textarea');
}
-$( '#bAdd' ).live( 'vclick', function () {
+$( document ).on( "vclick", "#bAdd", function () {
addCheckbox();
} );
-$( "#ButtonAdd" ).live( "vclick", function() {
+$( document ).on( "vclick", "#ButtonAdd", function () {
/* Append new button */
var buttonTemplate = "<div data-role='button' data-inline='true' " +
"data-icon='call' data-style='circle' " +
/*$("#buttonItems").trigger("create");*/
} );
-$( "#ListAdd" ).live( "vclick", function() {
+$( document ).on( "vclick", "#ListAdd", function () {
var listTemplate = "<li>Appended New Item</li>";
$( listTemplate ).appendTo( "#listview" );
$( "#listview" ).listview( "refresh");
-$( "#checkbox-demo" ).live("pagecreate", function () {
+$( document ).on( "pagecreate", "#checkbox-demo", function () {
$( "#check-1" ).bind('vclick', function () {
console.log("clicked...");
value = $( "#checkbox-1" ).prop( "checked" );
-$("#pop_js").live("vclick", function ( e ) {
+$( document ).on( "vclick", "#pop_js", function ( e ) {
if ( $(e.target).is("#ctxpopup_update") ) {
$("#btn_js").text("Peekaboo!");
$("#btn_js").buttonMarkup("refresh");
{
$("#pop_text_only").popup("open");
return false;
-};
\ No newline at end of file
+};
var ContactName = "";
-$("#genlist-dialog-edit .ui-li-dialogue-edit .ui-btn").live("vclick", function ( e ) {
+$( document ).on( "vclick", "#genlist-dialog-edit .ui-li-dialogue-edit .ui-btn", function ( e ) {
$(e.target).parents(".ui-btn").siblings("input").val("");
});
if ( $(event.target).attr("id") == "genlist-dialog-edit" ) {
$("#genlist-dialog-edit input").eq(4).val(ContactName);
}
-});
\ No newline at end of file
+});
var progressbar_running;
-$("#progressbar-demo").live("pageshow", function ( e ) {
+$( document ).on( "pageshow", "#progressbar-demo", function () {
$("#progressbarTest").bind("vclick", function ( e ) {
progressbar_running = !progressbar_running;
});
});
-$("#progressbar-demo").live("pagehide", function ( e ) {
+$( document ).on( "pagehide", "#progressbar-demo", function () {
progressbar_running = false;
$("#pending").progress( "running", false );
$("#progressing").progress( "running", false );
-$( "#radio-demo" ).live("pagecreate", function () {
+$( document ).on( "pagecreate", "#radio-demo", function () {
$("input[type='radio']").bind( "change", function(event, ui) {
if( this.checked )
$( ".triggered-radio" ).text( this.id + " is selected..." );