deveu
Posts: 0
Joined: Tue Apr 08, 2014 4:10 am

Dialog

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Dialog

Hi,

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

Jarl Gjessing
Posts: 0
Joined: Sat May 02, 2015 2:26 pm

Dialog

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 :-(

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Dialog

Hello Jarl,

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

Jarl Gjessing
Posts: 0
Joined: Sat May 02, 2015 2:26 pm

Dialog

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..

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Dialog

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

deveu
Posts: 0
Joined: Tue Apr 08, 2014 4:10 am

Dialog

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; }"

deveu
Posts: 0
Joined: Tue Apr 08, 2014 4:10 am

Dialog

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; }"

deveu
Posts: 0
Joined: Tue Apr 08, 2014 4:10 am

Dialog

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 "

Return to “Issues”