ST2JS - Smalltalk to Javascript translator

Todd Blanchard tblanchard at mac.com
Wed Aug 2 21:11:41 UTC 2006


 


On Wednesday, August 02, 2006, at 11:06AM, Gerardo Richarte <gera at corest.com> wrote:

>>Plain sockets are just not available for JS
>> code.
>
>	That's one and the most standard way, you can also try using the
>HTTPXMLRequest, a trusted ActiveX object which can be used from Internet
>Explorer, Mozilla, etc. Works in windows and unix, and AFAIK Ajax heavily
>uses it. I think this HTTPXMLRequest will be more and more standard, as
>more web applications start using it. And XML is not a bad option...

The call is mis-named.  XML is not required and most developers are using JSON as the data format.

>	However, for security restrictions, most connections you'll be able
>to open will be limited to the originating host.

This can be worked around by using hidden iFrames if you really need it.

-Todd Blanchard



More information about the Squeak-dev mailing list