javascript - How to create and Open a dialogue Box Dynamically on page load -


this question has answer here:

i trying create , open dialogue box dynamically , automatically on page load in jquery mobile page not able ..i think missing thing not able .. here jquery code , function called on pageload..

function onload() {   opendialogbox1();   document.addeventlistener("deviceready", ondeviceready, false); $("#searchby_chooser_ok_button").bind ("click", searchbycriteria);   if (typeof contact === "undefined") {     getelement("contacts_list").innerhtml = "<p>the cordova contacts api inaccessible</p>"; } }  function opendialogbox1(){  $("#simplestring").simpledialog({ 'mode' : 'string', 'prompt' : 'please enter mobile no.', 'buttons' : { 'ok': {    click: function () {      $('#dialogoutput').text($('#dialoglink').attr('data-string'));    }  },  'cancel': {    click: function () { },    icon: "delete",    theme: "c"   }  }  })  } 

please me correct mistake ..thanks..

try changing line:

document.addeventlistener("deviceready", ondeviceready, false); 

by this:

document.addeventlistener("deviceready", opendialogbox1, false); 

Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -