Page 1 of 1

popup opened from javascript won't close

Posted: Wed Oct 30, 2013 1:30 pm
by John5269257

Hi
Appery.navigateTo("Popup") opens the popup, but the inbuilt close button does nothing. A manually-added button with the action 'close popup' does nothing.

The same popup closes correctly when it's been opened by an 'open as popup' action.

I've tested this in two different apps, with the same result.

I don't know if it's relevant, but looking at the chrome console:
'open as popup' loads popup.html and popup.js, while Appery.navigateTo only loads popup.js.

Any workrounds?

Thanks,
John


popup opened from javascript won't close

Posted: Wed Oct 30, 2013 2:28 pm
by Kateryna Grynko

Hi John,

Please give us a public app link.


popup opened from javascript won't close

Posted: Wed Oct 30, 2013 3:04 pm
by John5269257

Hi Katya,

I hope you can use this:

http://appery.io/app/mobile-frame?src...

Especially made for you :)

If the popup is opened with the javascript button it won't close. Tested on Chrome under windows and android.


popup opened from javascript won't close

Posted: Wed Oct 30, 2013 3:42 pm
by Kateryna Grynko

John,

Try the following code:preAppery.navigateTo('popup', {
transition: 'pop'
});/pre


popup opened from javascript won't close

Posted: Wed Oct 30, 2013 4:32 pm
by John5269257

Thanks Katya, problem solved.