Published on 2007-07-10 14:31:17
How do you spend your weekend ?! John Resig was from Friday until mid-Monday coding a server-side browser/DOM environment, written in JavaScript ! The implementation run on top of Rhino and it's capable of running jQuery, Prototype, and MochiKit. Something that could be used for Automated testing, screen crapping or Web Application Development.
When I came up with this idea for an environment, I was mulling over a couple ideas: Namely, better ways of automating tests and ways to bring JS-style DOM/HTML interaction to the server-side. Having a way to bring this popular idiom to established problem sets seemed like a lot of fun.
$ java -jar js.jar
js> load('env.js');
js> window.location = 'some.html';
some.html
js> // Your code here!
Member of the PHP Magazine Network, Copyright (C) 2005-2008 phpmagazine.net All Rights Reserved