Programatically open a dialog as popup with jQuery Mobile -


so have page , dialog. when user click page button, 1 ajax request open dialog results. simple example without ajax: http://jsfiddle.net/rbbpx/

it works. dialog opens programatically. hides page content, showing dialog if it's page. know popup's can open dialogs in-page links, didn't point in how can programatically. tried change $.mobile.changepage() call that, didn't worked expected:

$('#dialog').popup(); $('#dialog').popup('open'); 

how can show dialog in-page, popup? ever possible? thank in advance!

in case use phonegap, there alert plugin: http://docs.phonegap.com/en/edge/cordova_notification_notification.md.html

navigator.notification.alert("your ajax result here"); 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -