How to make a modal dialog in Web projects?

  1. 5 days ago

    Thomas T

    May 15 Pre-Release Testers, Xojo Pro Europe (Germany, Munich)

    See https://docs.xojo.com/index.php?title=UserGuide:Secure_Web_Login_Screens

    It says:

    Create the layout as a modal dialog (LoginDialog)

    I cannot find a way to make a WebPage into a modal one. Is that an error in the documentation or am I missing something?

    Info on creating dialog boxes:
    https://docs.xojo.com/UserGuide:Web_Dialog_Boxes

    Modal dialogs are modal in that you cannot interact with the page. They are not synchronous and do not stop your code when the dialog is displayed, unlike desktop.

  2. Paul L

    May 15 Xojo Inc Answer http://docs.xojo.com

    Info on creating dialog boxes:
    https://docs.xojo.com/UserGuide:Web_Dialog_Boxes

    Modal dialogs are modal in that you cannot interact with the page. They are not synchronous and do not stop your code when the dialog is displayed, unlike desktop.

  3. Thomas T

    May 15 Pre-Release Testers, Xojo Pro Europe (Germany, Munich)

    Oh, it's not a WebPage, it's a different type. That was new to me as Desktop projects do that differently. Still learning :)

    Thanks for the quick help.

  4. Thomas T

    May 15 Pre-Release Testers, Xojo Pro Europe (Germany, Munich)

    Uh, however, when change the LoginPage from a WebPage to a WebDialog, then the code giving in the docs does not work any more. For instance, calling LoginPage.Show does not compile then, because it's not an implicitInstance. I have to "new" it.

    So, the docs still seem to be a bit off to me.

  5. Paul L

    May 15 Xojo Inc http://docs.xojo.com

    Not sure I'm following you. The LoginPage.Show shows the page. The page then shows the dialog. It sounds like you're trying to show the dialog directly from the session?

    The example project is here:
    Examples/Web/SecureLoginExample

  6. Thomas T

    May 15 Pre-Release Testers, Xojo Pro Europe (Germany, Munich)

    Oh, now I see. I confused LoginPage and LoginDialog. I read them as being the same. Thanks for clarifying.

or Sign Up to reply!