Synchronously or asynchronously
-
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?
-
hmm...I don't think you and use an HTTP request to communicate with SU...
-
Thanks Thom,
I don't know - so was just throwing the idea out to see if anyone thought it was possible.
-
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 protocolskp. But the XMLHttpRequest deals with the HTTP protocol.If we only knew more about this
skp:protocol... -
@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.
-
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
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 LoginAdvertisement