John5269257
Posts: 0
Joined: Mon Jun 17, 2013 11:04 am

popup opened from javascript won't close

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

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

popup opened from javascript won't close

Hi John,

Please give us a public app link.

John5269257
Posts: 0
Joined: Mon Jun 17, 2013 11:04 am

popup opened from javascript won't close

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.

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

popup opened from javascript won't close

John,

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

John5269257
Posts: 0
Joined: Mon Jun 17, 2013 11:04 am

popup opened from javascript won't close

Thanks Katya, problem solved.

Return to “Issues”