Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Popup is not re-firing ?

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 ?

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

Popup is not re-firing ?

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

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Popup is not re-firing ?

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

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

Popup is not re-firing ?

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.

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Popup is not re-firing ?

Thank you :)

Return to “Issues”