Home AMX User Forum AMXForums Archive Threads Tips and Tricks

Keep travk of popup`s

Hi guys

I got a client who want a button, that activates a popup, to be active as long as the popup is open.....

How do I track whether a popup is active/open or not ?

Comments

  • DHawthorneDHawthorne Posts: 4,584
    Send the TPAGEON command to the panel in it's online event. Then, create a STRING handler for the panel. In the DATA.TEXT whenever a STRING event occurs will be a "PPN-<popup name>" for every time the popup appears, and a "PPF-<popup name>" for when it goes away. Parse those and use the data to track your pages.

    Alternately, if the popup can only be called with a button press, and is modal, and can only dismissed with another button press, you can use the button events to track it.
  • Why not just put the button or a copy of the button on the popup page?
Sign In or Register to comment.