Subj : Re: Spidermonkey/js =>> alert() function To : netscape.public.mozilla.jseng From : Martin Honnen Date : Wed May 25 2005 02:52 pm user@domain.invalid wrote: > I have spidermonkey installed on Linux RH 9.0, > version 1.5 pre-release 6a > > What I'm looking for (and please feel free to tell me if I'm "barking up > the wrong tree" = BUTWT) is some sort of a testing environment for > Javascript that will be used in web pages and content from CGI scripts. > > spidermonkey compiled without complaint (no config changes on my part), > but am unclear on what features are available. > > Example: I start js from a local directory and invoke > load('valid.js') // javascript source in same directory > PhoneHelp() // javascript function containing a call to alert > // error message: > valid.js:2: ReferenceError: alert is not defined Although the Spidermonkey engine is used in Mozilla it is not the engine that implements browser specific stuff like alert or the DOM. The engine implements the ECMAScript edition 3 standard with some extensions while alert or DOM are browser specific and are implemented by the browser using the engine. As for the tests you are looking for check out -- Martin Honnen http://JavaScript.FAQTs.com/ .