XMLHttpRequest

Jun 16, 2011 at 12:04 PM

I've successfully used Jurassic to implement a rudimentary scripting layer on top of my app and it seems to be working really well.  Has anyone considered adding an XMLHttpRequest implementation (similar to what's in the browser DOM) to the Jurassic library or perhaps a separate open source effort?  This would open up the possibility to start leveraging tons of services from our scripts.  Thanks.

Jun 16, 2011 at 12:16 PM

That shouldn't be too hard (though I'm not certain). It's probably just a lot of mappings to the HttpSomthing-class in .Net xD. Why not look at it yourself? Jurassic is easily built up, and you can start with something like the Date-implementation (which if I remember correctly is built around the DateTime in .Net) and construct it from there. The hardest part is probably that if you want to follow the documentation down to the specification you need to program DOM (good luck xD), for the xml-part I think. But just firing of requests and getting the result should be fairly simple.