omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    WebView newbie

    Pythonista
    4
    4
    3403
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • polymerchm
      polymerchm last edited by

      Any guidance on how to get a "hyperlink" into a webview that interact with the script that generated it. OR, can you add a "close' button to the webview?

      1 Reply Last reply Reply Quote 0
      • TutorialDoctor
        TutorialDoctor last edited by

        You could put the webview inside of a Custom View and add a button inside of that that closes them both. I could make an example if you want me to.

        1 Reply Last reply Reply Quote 0
        • cvp
          cvp last edited by

          See this example

          1 Reply Last reply Reply Quote 0
          • JonB
            JonB last edited by

            for having the webview interact with the script, you need a delegate.

            https://forum.omz-software.com/topic/1804/debugging-in-javascript-in-pythonista

            is an example, more focused on a working console and js debugging, but the same idea applies, A regular button with an href that points to your custom url scheme which you then capture in the delegate.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors