sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Update | Sketchucation Tools 5.0.8 released with licensing improvements and bugfixes Download

    WebDialog.set_html fails under Safari 5.0.6

    Scheduled Pinned Locked Moved Developers' Forum
    111 Posts 7 Posters 29.9k 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
      Dan Rathbun
      last edited by

      It's a bit confusing to have your Observer table combined with both platforms, have you thot about having a table for each platform?

      I'm not here much anymore.

      1 Reply Last reply
      Reply Quote 0
      • Dan RathbunD
        Dan Rathbun
        last edited by

        And just to be clear, your testing using the Ruby ver that ships with the Sketchup version? (v1.8.5-p0)

        What happens if your change the Sketchup Ruby symbolic links on the Mac to a newer Ruby install (v1.8.6-p287 or higher?)

        I'm not here much anymore.

        1 Reply Last reply
        Reply Quote 0
        • Dan RathbunD
          Dan Rathbun
          last edited by

          And also you might try to trap the SystemExit exeception, which is supposed to be called, unless Google used exit!() in which case your out of luck.

          I'm not sure if Kernel.set_trace_func will catch a call to exit!() or not.

          I'm not here much anymore.

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

            @dan rathbun said:

            It's a bit confusing to have your Observer table combined with both platforms, have you thot about having a table for each platform?

            Wouldn't having two tables make it harder to get an overview of what observers has issues?

            @dan rathbun said:

            And just to be clear, your testing using the Ruby ver that ships with the Sketchup version? (v1.8.5-p0)

            What happens if your change the Sketchup Ruby symbolic links on the Mac to a newer Ruby install (v1.8.6-p287 or higher?)

            Yes - I only test SketchUp out of the box. And that is complicated and time-consuming enough...

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

            1 Reply Last reply
            Reply Quote 0
            • Dan RathbunD
              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
                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
                  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
                    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
                      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
                        Pout
                        last edited by

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

                        1 Reply Last reply
                        Reply Quote 0
                        • D
                          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
                            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
                              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
                                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
                                  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

                                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                  With your input, this post could be even better πŸ’—

                                  Register Login
                                  • 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