• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

WebDialog.set_html fails under Safari 5.0.6

Scheduled Pinned Locked Moved Developers' Forum
111 Posts 7 Posters 17.2k Views
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.
  • D Offline
    Dan Rathbun
    last edited by 8 Sept 2011, 13:53

    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
    • F Offline
      fredo6
      last edited by 9 Sept 2011, 17:47

      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 20 Sept 2011, 10:40

        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
        • T Offline
          thomthom
          last edited by 20 Sept 2011, 10:44

          @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 20 Sept 2011, 10:49

            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 20 Sept 2011, 10:50

              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 20 Sept 2011, 13:27

                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
                • T Offline
                  thomthom
                  last edited by 20 Sept 2011, 13:43

                  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 20 Sept 2011, 14:50

                    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 20 Sept 2011, 15:52

                      @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 29 Sept 2011, 07:09

                        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