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

Dialog

I created a dialog (Create Page-Dialog)
I want to open this dialog by a button click
how may i open this and pls send me help link

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Dialog

Hi -

The easiest way is to open dialog page on the event:

Image

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Dialog

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Dialog

Hello,

Could you specify your question? The behavior of your application corresponds to your javascript code

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

Dialog

I created 2 dialog

and trying to open by js
Appery.navigateTo('ThankYouTick',{transition: 'pop' });

and also by "open as dialog"

that is not working

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

Dialog

Hi,

Is your dialog named ThankYouTick? What is your library version (see in App settings)? Did you change source files?

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

Dialog

I deleted files and create again
That is now working
but I dont want to hide back parent Page
I want just poup & close with timer
let me know better way

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

Dialog

$(function() {
$( "#tick" ).dialog({
modal: true,
width: 500,
height: 400,
hide: "explode",
autoOpen: false
}
);
});

is dialog jquery file exits in appery?
Do I need to include files or already included here

Pls let me know

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

Dialog

Hi,

You would need to add jQuery UI CSS/JS to your app additionally to get such a dialog: http://jqueryui.com/dialog/

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

Dialog

$( "#tick" ).dialog( "close" );
is closing properly first time
second time when loop back from another page
$( "#tick" ).dialog( "close" );
is not executing and stopping here
let me know if you have any idea

$( "#tick" ).css("background", "transparent url('files/resources/image/tick.gif') no-repeat right top");

$( "#tick" ).dialog({
modal: true,
width: 260,
height: 290,
hide: "explode",
autoOpen: true
});

//2 sec timer
timer5 =2;
myVar5 = setInterval(function() {
timer5 = timer5 - 1;

Code: Select all

 if (timer5 == 0) { 
     clearInterval(myVar5); 
     timer5 = 0; 

     $( "#tick" ).dialog( "close" ); 

     //page code 
     clearInterval(myVar1); 
     reset_data();   
     Appery("mobilecontainer").hide();  
     Appery.navigateTo('Checkin', {}); 

 } 
 }, 1000);

Return to “Issues”