Page 1 of 1
open popup using JS
Posted: Tue Jun 04, 2013 7:31 pm
by doubletake
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
open popup using JS
Posted: Tue Jun 04, 2013 8:20 pm
by Kateryna Grynko
Hi Don,
RuncodeAppery.navigateTo('mapPopUp')/code
open popup using JS
Posted: Tue Jun 04, 2013 8:32 pm
by doubletake
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?
open popup using JS
Posted: Tue Jun 04, 2013 8:47 pm
by Kateryna Grynko
Yes, you would need to add handler, too.
open popup using JS
Posted: Sun Oct 06, 2013 9:26 am
by Lee Lim
Hi, how do i add the handler ?
open popup using JS
Posted: Sun Oct 06, 2013 11:01 am
by Alena Prykhodko
- Choose component;
- Open Events tab;
- Choose click/tap/vclick Event;
- Choose Action Close popup.
- Add event.
open popup using JS
Posted: Sun Oct 06, 2013 12:09 pm
by Lee Lim
open popup using JS
Posted: Wed Jul 08, 2015 7:24 pm
by Bobby
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!
open popup using JS
Posted: Wed Jul 08, 2015 8:47 pm
by Evgene Karachevtsev