sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    WebDialog.set_html fails under Safari 5.0.6

    Scheduled Pinned Locked Moved Developers' Forum
    111 Posts 7 Posters 17.2k Views 7 Watching
    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.
    • Dan RathbunD Offline
      Dan Rathbun
      last edited by

      I wish someone could make a one-click dmg installer for Sketchup Mac that would bring their Ruby up to par with the PC edition.

      I'm not here much anymore.

      1 Reply Last reply Reply Quote 0
      • fredo6F Offline
        fredo6
        last edited by

        The problem seems to be in all versions after 5.0.6

        A user encountered the problem on Safari Version 5.1 (7534.48.3): images not shozing and Update (via xmlhttprequest not working)

        Fred

        1 Reply Last reply Reply Quote 0
        • P Offline
          Pout
          last edited by

          I'm a bit confused here.

          So if you would use set_file then all should work fine?
          I'm using that method and it loads a html file but the linked js files inside do not seem to work.
          They do however work when just opening the html file with Safari. (So not in a webdialog)

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            @pout said:

            I'm a bit confused here.

            So if you would use set_file then all should work fine?
            I'm using that method and it loads a html file but the linked js files inside do not seem to work.
            They do however work when just opening the html file with Safari. (So not in a webdialog)

            Yes, set_file should work. Got a sample of what is not working?

            Thomas Thomassen — SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 Reply Last reply Reply Quote 0
            • P Offline
              Pout
              last edited by

              here you go
              unzip, put the rb in plugisn and the Grid directory to
              thx for testing!


              test.zip

              1 Reply Last reply Reply Quote 0
              • P Offline
                Pout
                last edited by

                and in SU you can launch by TESTOLA.testing in ruby console

                1 Reply Last reply Reply Quote 0
                • D Offline
                  driven
                  last edited by

                  With your WebDialog in Safari 5.0.6 Web Inspector shows this error

                  TypeError: 'null' is not an object (evaluating 'navigator.userAgent.match(/(?:KHTML\D*|VERSION\D*)(\d[\d\.]+)/i)[1]')

                  I'd look into that to start.

                  john

                  learn from the mistakes of others, you may not live long enough to make them all yourself...

                  1 Reply Last reply Reply Quote 0
                  • thomthomT Offline
                    thomthom
                    last edited by

                    hmm... why are you sniffing the userAgent string? It's preferred to test for features instead of testing the user agent string.

                    Thomas Thomassen — SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      Pout
                      last edited by

                      Well it is in fact not a script written by me.
                      It is an external script which i'm trying to incorporate.
                      So the complete js side is unclear to me.
                      In what file is the error located?

                      Thx again

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        driven
                        last edited by

                        @pout said:

                        In what file is the error located?
                        Thx again

                        GridE.js
                        It's in encodedstring LZD="....."

                        which I can't look at.

                        john

                        learn from the mistakes of others, you may not live long enough to make them all yourself...

                        1 Reply Last reply Reply Quote 0
                        • P Offline
                          Pout
                          last edited by

                          driven, thx!!
                          I have reported the error an already received a debugged version (bug at their side)

                          1 Reply Last reply Reply Quote 0
                          • 1
                          • 2
                          • 3
                          • 4
                          • 5
                          • 6
                          • 6 / 6
                          • First post
                            Last post
                          Buy SketchPlus
                          Buy SUbD
                          Buy WrapR
                          Buy eBook
                          Buy Modelur
                          Buy Vertex Tools
                          Buy SketchCuisine
                          Buy FormFonts

                          Advertisement