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.


    Problem loading html with webbrowser

    Pythonista
    webbrowser javascript
    2
    4
    2995
    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.
    • louis1100
      louis1100 last edited by

      I just discovered that pythonista has this cool syntax highlighting for JavaScript and HTML. So it’s by far better than any editor for html that I was using.

      I was trying to make it work with p5.js, and it did. Render everything pretty nicely.

      But then, trying to make some changes to the file I reloaded and... they don’t show up.

      My first thought was that it was some kind of cache of the browser.
      When I changed the name of the file it updated.

      So I wrote, inside the script that opens the html, some code to make a temporary file and open that. Then I added a separated txt to store a number, cause the temporary file was not updating either.
      At the end the temp file is called something like “index-temp5.html”.

      But it doesn’t update that neither.
      I have no idea of what could be happening.

      Making some tests now I realize that it might be just the js that is not getting updated.

      Any help would be appreciated.

      mikael 1 Reply Last reply Reply Quote 0
      • mikael
        mikael @louis1100 last edited by

        @louis1100, does anything in this thread help?

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

          Totally. Thank you, so much.

          I couldn’t find anything on the topic by myself.

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

            Google usually works much better than the forum search.

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