sketchucation logo sketchucation
    • 登入
    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!
    🔌 Smart Spline | Fluid way to handle splines for furniture design and complex structures. Download

    Between different Macs plugin works and doesn't work

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

      Ya not a very good typist sorry is this right


      Screen Shot 2014-02-16 at 8.51.52 PM.png

      2011 iMac
      SU 2015 Pro, 2017 Make
      V2 Twilight
      macOS Sierra 10.12.5

      1 條回覆 最後回覆 回覆 引用 0
      • S 離線
        slbaumgartner
        最後由 編輯

        @mwm5053 said:

        Ya not a very good typist sorry is this right

        That appears to be right. Did it work?

        I'm turning in for the night in a minute. Will check back tomorrow.

        Steve

        1 條回覆 最後回覆 回覆 引用 0
        • M 離線
          mwm5053
          最後由 編輯

          still no inspect element on right click

          2011 iMac
          SU 2015 Pro, 2017 Make
          V2 Twilight
          macOS Sierra 10.12.5

          1 條回覆 最後回覆 回覆 引用 0
          • M 離線
            mwm5053
            最後由 編輯

            Ok this AM I had Safari open with Inspect Element open on a web page just to see what it did and opened SU and clicked on Web Dialog Test and right clicked on Connect to Website and Web Inspector popped up with this. Now what? I'll be here for a while then off to work for the day will check back.

            Walt


            Screen Shot 2014-02-17 at 7.31.12 AM.png

            2011 iMac
            SU 2015 Pro, 2017 Make
            V2 Twilight
            macOS Sierra 10.12.5

            1 條回覆 最後回覆 回覆 引用 0
            • S 離線
              slbaumgartner
              最後由 編輯

              @mwm5053 said:

              Ok this AM I had Safari open with Inspect Element open on a web page just to see what it did and opened SU and clicked on Web Dialog Test and right clicked on Connect to Website and Web Inspector popped up with this. Now what? I'll be here for a while then off to work for the day will check back.

              Walt

              That's more like it! I wonder what was wrong before...

              Anyway, click on the console button and show me what it displays then. In particular, if there are any warning or error messages. The little red symbol at the bottom makes me think there was a error reported.

              Steve

              1 條回覆 最後回覆 回覆 引用 0
              • M 離線
                mwm5053
                最後由 編輯

                Evidently Inspect needs to open in Safari eo get Web Inp. to popup but here it is.


                Screen Shot 2014-02-17 at 8.24.20 AM.png

                2011 iMac
                SU 2015 Pro, 2017 Make
                V2 Twilight
                macOS Sierra 10.12.5

                1 條回覆 最後回覆 回覆 引用 0
                • S 離線
                  slbaumgartner
                  最後由 編輯

                  @mwm5053 said:

                  Evidently Inspect needs to open in Safari eo get Web Inp. to popup but here it is.

                  OK! My cross-domain security theory confirmed!

                  What's happening is that when the html is loaded directly, the document's domain is empty (null). The XMLHttpRequest security won't allow load from some other domain. I can verify that the domain is also empty on my Mavericks box, so this implies that they added a special case for null domain in the security rules after the WebKit version that comes with Lion (or perhaps modified the domain to be an empty string instead of null).

                  Steve

                  [edit] The typeof document.domain on my Mavericks box is a string, "". They fixed it so that a locally loaded html gets an empty string domain instead of null.

                  1 條回覆 最後回覆 回覆 引用 0
                  • S 離線
                    slbaumgartner
                    最後由 編輯

                    Garry,

                    To fix this you will either need to load the html from your site instead of from Ruby (so the document's domain is your domain) or try the xml content technique described in the reference I posted previously (which requires some server settings as well). Your code can make the domain less specific (e.g. strip www off http://www.cabmaker32.com), but it cannot make it more specific (e.g. change the null to anything else).

                    Steve

                    1 條回覆 最後回覆 回覆 引用 0
                    • G 離線
                      Garry K
                      最後由 編輯

                      Steve,

                      I'm not sure where to go next. I really don't want to have to load the html page from the server. But then I don't currently know how to do that.

                      The hosting company that I use doesn't provide SSL unless I double my yearly payments. It is a WordPress site.

                      My StairMaker_service.php is pretty simple. I do use JSON format. Currently I use the following to read the http POST coming from web dialog

                      $raw = file_get_contents( "php://input" );
                      $json = json_decode( $raw, true );

                      // Then I do a bunch of validation, cleaning, testing etc.

                      I use echo to send the information back to the web dialog.

                      1 條回覆 最後回覆 回覆 引用 0
                      • S 離線
                        slbaumgartner
                        最後由 編輯

                        @Garry - You don't need SSL to address this. If you read the link I sent, there are ways to do it via javascript and server-side php. But if you don't want to do that, perhaps it would be enough just to trap the error and inform people that you don't support pre-10.8 versions of Mac OS X.

                        @Walt, could you try the attached version and see if it pops up an alert about the error? I just added an error handler to the javascript, but since I don't get the error I don't know whether it works 😲 Thanks

                        Steve


                        dialog_test.rb

                        1 條回覆 最後回覆 回覆 引用 0
                        • jeff hammondJ 離線
                          jeff hammond
                          最後由 編輯

                          @garry k said:

                          I'm not sure where to go next.

                          next is telling walt to get rid of that 1,1 macpro*.. save up for a new mac pro.. they're super sweet.. and they run mavericks

                          😆

                          (just kidding @walt)
                          *(I'm guessing as to why he's on lion but this is the reason i have lion on one of my computers)

                          dotdotdot

                          1 條回覆 最後回覆 回覆 引用 0
                          • G 離線
                            Garry K
                            最後由 編輯

                            Jeff,

                            I've been reading that Mavericks 10.9 is a free upgrade to Lion 10.8.
                            If this is indeed true what is stopping you from upgrading?

                            1 條回覆 最後回覆 回覆 引用 0
                            • jeff hammondJ 離線
                              jeff hammond
                              最後由 編輯

                              @garry k said:

                              Jeff,

                              I've been reading that Mavericks 10.9 is a free upgrade to Lion 10.8.
                              If this is indeed true what is stopping you from upgrading?

                              the early mac pros (2006) aren't supported by mavericks (or 10.8 mountain lion).. they top out at lion 10.7.5..

                              apple is less likely to support older hardware.. once they make a decision to move forward, they'll do so.. in general, you're looking at approx 5 years before your mac won't be able to upgrade to a new OS.. so roughly 8 year max life span if you want to keep your applications up to date.

                              @unknownuser said:

                              There are two things that prevent 10.8 from installing on a MacPro 1,1. The first is the lack of EFI64. Mountain Lion as has no support for 32bit kernel and extensions so it will not boot. This is true of many early Intel macs… The other thing is that checks are made by the installer; against a supported machines list. If your mac isn’t on the list, it refuses to install.

                              dotdotdot

                              1 條回覆 最後回覆 回覆 引用 0
                              • M 離線
                                mwm5053
                                最後由 編輯

                                @slbaumgartner a couple screen shots

                                @ Jeff don't I wish I drool every time I go to Apple .com


                                Screen Shot 2014-02-17 at 5.50.22 PM.png


                                Screen Shot 2014-02-17 at 5.51.00 PM.png

                                2011 iMac
                                SU 2015 Pro, 2017 Make
                                V2 Twilight
                                macOS Sierra 10.12.5

                                1 條回覆 最後回覆 回覆 引用 0
                                • S 離線
                                  slbaumgartner
                                  最後由 編輯

                                  So the Alert shows that it caught the error, but evidently I don't know how to read out the message. BTW, I added that "Hello!" just because a blank dialog leaves me wondering if anything happened.

                                  Steve

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

                                  Advertisement