doubletake
Posts: 0
Joined: Sat May 25, 2013 5:55 pm

open popup using JS

I created a popup named "mapPopUp." Using Appery, how do I open the popup in JS? In JQM, I would use $('#mypopuppage').popup('open').

I tried this ...
var pu = Appery("mapPopUp");
pu.popup('open',{ history: false });

But it doesn't seem to work.

Thanks,
Don

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

open popup using JS

Hi Don,

RuncodeAppery.navigateTo('mapPopUp')/code

doubletake
Posts: 0
Joined: Sat May 25, 2013 5:55 pm

open popup using JS

Thanks Katya. Works good, except the close button (that gets added to header) doesn't close the popup. Is it supposed to? Or do I just have to add my own click event listener via JS?

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

open popup using JS

Yes, you would need to add handler, too.

Lee Lim
Posts: 0
Joined: Sun Oct 06, 2013 9:26 am

open popup using JS

Hi, how do i add the handler ?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

open popup using JS

  1. Choose component;
    1. Open Events tab;
    2. Choose click/tap/vclick Event;
    3. Choose Action Close popup.
    4. Add event.
Lee Lim
Posts: 0
Joined: Sun Oct 06, 2013 9:26 am

open popup using JS

Thanks !

Bobby
Posts: 0
Joined: Wed Jun 24, 2015 4:24 pm

open popup using JS

Hello,

Is this still the way to open a pop up using JS? I tried running that code on page show and nothing happens when that page shows. I did an open pop up action on page show to make sure it works and it worked when I did that. But I only want it to open in certain circumstances which is why I need to be able to do it using JS.

Thanks!

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

open popup using JS

Hello Bobby,

Please check this thread:
https://getsatisfaction.com/apperyio/...

Return to “Issues”