Ankündigung

Einklappen
Keine Ankündigung bisher.

Conditional Popup

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Conditional Popup

    Abend,

    how do I create a conditional popup?
    situation; if I push a button the action will be call a visu page, now the curtain open/close popup will be shown.
    and you will be able to open and/or close the curtain.
    But this curtain is situated in front of a door, so if the door has been opened during the day I want a warning popup first, like
    "Close and lock the door first" and if the OK button of that popup window is pushed the open/close popup window can be shown
    so;

    ICO; DoorHasBeenOpened = 0 --> Show open/close curtain popup .
    DoorHasBeenOpened = 1 ----> Show the close and lock door popup and thereafter the open/close curtain popup

    Grusse,

    Gerwin



    #2
    Hello,

    I havent't had the opportunity to test it yet, but I think you might be able to solve this by using the XXDOMODULCLICK-function. I've recently put up something quite similar to protect certain pages with a passphrase.

    Here's what I think MIGHT work:

    - Create a Popup-page "pop_condition", that contains an element to close the page and a module-container named for example "mod_condition". The Module "mod_condition" is the area to be filled with either the content-page "door" or the content-page "curtain" (Make sure you've defined those pages via XXMARK in the first place).

    - Now you place two dynamic text-objects on your page "pop_condition". Both listen to your ICO "DoorHasBeenOpened" and create different DoModulClick-Code as shown in the images I appended.

    curtain.gifdoor.gif

    Greetings,
    Johannes

    Kommentar


      #3
      Hi Johannes,

      Thanks for the input, I will have a go !!

      grusse,

      Gerwin

      Kommentar


        #4
        Hi Johannesburg,

        How do I create a module container?

        grusse

        gerwin

        Kommentar


          #5
          "module container" was simply my description for an XXMODUL. So - in our example - the container mod_condition would just be a textelement with the content "XXMODUL*mod_condition"

          Kommentar


            #6
            Hi Johannes,

            Thanks again for the input, as I do not fully understand the MODUL concept -yet- I will tell you what I did so far.
            I use 4 main pages, for this "problem" I use the Visualisation page "GroundFloor".
            On this page I put an text-element, it is a static text element. static text is "XXDOMODULCLICK". The action setting is "open page".
            and the page to be opened is "pop_condition".

            Next I created a visualisation page, named "pop_condition".
            On this page are the following items:
            - A text element with designation (Bezeichnung) "Mod Selection Curtain". I use the Dyn. text selection.
            in the dyn text selection I put "from 0 to 0, XXMODUL*Curtain* " For this page I use action "none"
            - A text element with designation (Bezeichnung) "Mod Selection Door". I use the Dyn. text selection.
            in the dyn text selection I put "from 1 to 1, XXMODUL*Door* ". For this page I use also action "none"

            Both listening to the ICO "DoorHasBeenOpened".
            and,
            - A static text element showing "XXPAGE*POPUP*top:MOUSE-200px;left:MOUSE-300px;"

            and the two pop-up pages "Door" and "Curtain"

            on the xxapi-init page I put;
            XXMARK*Curtain* (Action, open page and the page is "Curtain")
            XXMARK*Door* (Action, open page and the page is "Door")

            Now I do a test,
            if I click the text element, the "Door" page is shown when the ICO = 1 and the "Curtain" page when the ICO = 0.
            (In both pop-up I had to change the navigation back action to open page with the page "GroundFloor" ???)
            I also made a button to change the value of the ICO, when I reset it to 1 again, the door page is not shown, instead
            the curtain page right away.....

            Where do I go wrong....

            Grusse,

            Gerwin






            Kommentar

            Lädt...
            X