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
Advertisement