sketchucation logo sketchucation
    • 登入
    ℹ️ 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

    已排程 已置頂 已鎖定 已移動 Developers' Forum
    111 貼文 7 Posters 17.2k 瀏覽 7 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Dan RathbunD 離線
      Dan Rathbun
      最後由 編輯

      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 條回覆 最後回覆 回覆 引用 0
      • fredo6F 離線
        fredo6
        最後由 編輯

        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 條回覆 最後回覆 回覆 引用 0
        • P 離線
          Pout
          最後由 編輯

          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 條回覆 最後回覆 回覆 引用 0
          • thomthomT 離線
            thomthom
            最後由 編輯

            @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 條回覆 最後回覆 回覆 引用 0
            • P 離線
              Pout
              最後由 編輯

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


              test.zip

              1 條回覆 最後回覆 回覆 引用 0
              • P 離線
                Pout
                最後由 編輯

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

                1 條回覆 最後回覆 回覆 引用 0
                • D 離線
                  driven
                  最後由 編輯

                  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 條回覆 最後回覆 回覆 引用 0
                  • thomthomT 離線
                    thomthom
                    最後由 編輯

                    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 條回覆 最後回覆 回覆 引用 0
                    • P 離線
                      Pout
                      最後由 編輯

                      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 條回覆 最後回覆 回覆 引用 0
                      • D 離線
                        driven
                        最後由 編輯

                        @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 條回覆 最後回覆 回覆 引用 0
                        • P 離線
                          Pout
                          最後由 編輯

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

                          1 條回覆 最後回覆 回覆 引用 0
                          • 1
                          • 2
                          • 3
                          • 4
                          • 5
                          • 6
                          • 6 / 6
                          • 第一個貼文
                            最後的貼文
                          Buy SketchPlus
                          Buy SUbD
                          Buy WrapR
                          Buy eBook
                          Buy Modelur
                          Buy Vertex Tools
                          Buy SketchCuisine
                          Buy FormFonts

                          Advertisement