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!
    πŸ«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Synchronously or asynchronously

    Scheduled Pinned Locked Moved Developers' Forum
    6 Posts 3 Posters 570 Views 3 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.
    • J Offline
      Jim
      last edited by

      My understanding is that SketchUp <-> Safari communications are asynchronous, and SketchUp <-> IE communications are synchonous.

      After reading a bit about the XMLHttpRequest API, it supports a synchronous and asynchronous mode by simply by setting flag to true or false.

      Could this be used to provide a consistent communications interface between Webdialogs and SketchUp on both PC and Mac platforms?

      Hi

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

        hmm...I don't think you and use an HTTP request to communicate with SU...

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

        1 Reply Last reply Reply Quote 0
        • J Offline
          Jim
          last edited by

          Thanks Thom,

          I don't know - so was just throwing the idea out to see if anyone thought it was possible.

          Hi

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

            When we pass data back from a Webdialog to Ruby we do window.location = 'skp:some_callback' which means that Sketchup has added its own protocol skp. But the XMLHttpRequest deals with the HTTP protocol.

            If we only knew more about this skp: protocol...

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

            1 Reply Last reply Reply Quote 0
            • M Offline
              MartinRinehart
              last edited by

              @thomthom said:

              If we only knew more about this skp: protocol...

              It's possible that what you know may be all there is to know.

              Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

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

                I had a look at it. But I get an Access Denied message when I try to call back to Ruby. Turns out IE's XMLHttpRequest only works with files on the net - not local files and other stuff.
                http://www.webdeveloper.com/forum/showpost.php?s=d7e6a32ad41106e35a2d51afbce8f374&p=749574&postcount=10

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

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

                Advertisement