Hi Waseem, What Owen is talking about is using jQuery as a pure javascript (as a language) tool, so there is no "page" to worry about. Rhino is a javascript interpreter/compiler. Think of "jQuery for C++", you get the picture :)
cheers, - ricardo On 17 abr, 22:43, waseem sabjee <waseemsab...@gmail.com> wrote: > would doing that not cause your site to lose and w3c xhtml validation ? > or I am over thinking.... > > On Sat, Apr 18, 2009 at 3:39 AM, Ricardo <ricardob...@gmail.com> wrote: > > > Most features of jQuery are DOM related, so what part of it exactly > > would you like to use? jQuery's source is divided in "modules", guess > > you could take only what you need from each: > >http://jqueryjs.googlecode.com/svn/trunk/jquery/src/ > > > cheers, > > - ricardo > > > On Apr 17, 4:02 pm, Owen Densmore <o...@backspaces.net> wrote: > > > Hi folks. Apparently jQuery can not be used outside the browser .. or > > > at least without a DOM: > > > > Rhino 1.7 release 2 2009 03 22 > > > js> load('/Users/owen/local/jquery-1.3.2.js'); > > > js: "/Users/owen/local/jquery-1.3.2.js", line 613: uncaught JavaScript > > > runtime exception: ReferenceError: "document" is not defined. > > > > Yes, I know that env.js fakes a DOM, but that has to be tested each > > > new release of jQuery, and often requires an upgrade to env.js. > > > > So here's the question: is there a way to build a non-DOM jQuery from > > > its parts? Or maybe have a release of jQuery that is in two parts: a > > > core utility kernel with a second part that adds the DOM? > > > > (Sorry if this is noob, but searching did not turn up anything.)