Page 1 of 1

Popup is not re-firing ?

Posted: Thu Jan 30, 2014 3:54 pm
by Bad Addy

I have a popup, which is opened in javascript. When the cross, in the top right, is pressed the box closes, The popup is a template, and is reused, but the second time, its not firing the code on load. How do I unload a popup box, when the close cross (top left) is pressed ?


Popup is not re-firing ?

Posted: Thu Jan 30, 2014 5:34 pm
by Kateryna Grynko

Hi,

Sorry, not sure I understand about top left and top right. A button to close popup is in the top left.
Do you use this code to call popup?preAppery.navigateTo('ScreenName', {
transition: 'pop'
});/pre


Popup is not re-firing ?

Posted: Thu Jan 30, 2014 6:06 pm
by Bad Addy

But if i want to use that Popup again and again, the same one, and when it closes, and I need it to open again, it does not run the event Load again. It only does it once :(


Popup is not re-firing ?

Posted: Thu Jan 30, 2014 7:00 pm
by Kateryna Grynko

Sure, Load event fires only for the first time. If you need to execute your code each time you open a popup, you can use Page show event.


Popup is not re-firing ?

Posted: Thu Jan 30, 2014 10:24 pm
by Bad Addy

Thank you :)