Page 2 of 2

Dialog

Posted: Fri Jun 27, 2014 5:51 am
by deveu

$( "#tick" ).dialog( "destroy" );
this is working
i got it


Dialog

Posted: Fri Jun 27, 2014 6:11 am
by Kateryna Grynko

Hi,

Thank you for the update! Lat us know if you need any help.


Dialog

Posted: Tue May 05, 2015 5:44 am
by Jarl Gjessing

Is there a way to "wait" until the dialog is done?
If I want the app to show a login dialog, and when the dialog closes (with success) i change the view to logged in.
I mean I could set a local variable when the login services ends successfully and have a while loop that checks the variable but that is just dirty.
I.e. if I do this:
Appery.navigateTo('LoginRegister');
alert("After dialog");
Appery("MainLoginButton").text("Logout").button('refresh');

Then the alert is shown immediately when the dialog is shown. I'd like for it to be shown when the dialog closes.
And I cannot connect events from the dialog to the mainapp :-(


Dialog

Posted: Tue May 05, 2015 8:42 pm
by Serhii Kulibaba

Hello Jarl,

You can use dialog's events "Page show" and "Page hide".


Dialog

Posted: Wed May 06, 2015 7:50 am
by Jarl Gjessing

No I can't. I know how to show/hide a dialog. What I want to is to "pause" the function calling it until it is closed. Run it as a modal..


Dialog

Posted: Wed May 06, 2015 5:45 pm
by Serhii Kulibaba

The only one way is using promises:
https://developer.mozilla.org/en/docs...


Dialog

Posted: Mon Jul 20, 2020 7:10 pm
by deveu

2)!= ""04"" ) { Appery('lbl_status').html(""font color=\""#FF0000\""This is not aus no./font""); return; } if(Appery('input_phone_no').val()== ""0412345678"" ) { //show dialog here return; }"


Dialog

Posted: Mon Jul 20, 2020 7:10 pm
by deveu

2)!= ""04"" ) { Appery('lbl_status').html(""font color=\""#FF0000\""This is not aus no./font""); return; } if(Appery('input_phone_no').val()== ""0412345678"" ) { //show dialog here return; }"


Dialog

Posted: Mon Jul 20, 2020 7:10 pm
by deveu

2)!= ""04"" ) { Appery('lbl_status').html(""font color=\""#FF0000\""This is not aus no./font""); return; } pls check here http://appery.io/app/view/2aa23e01-a137 ... Login.html entring 0412345678 will show popup and 0412345677 will not show popup "