Subj : Re: Spidermonkey/js =>> alert() function To : netscape.public.mozilla.jseng From : Keith MacDonald Date : Wed May 25 2005 10:20 am It sounds like you are running jsshell. If so, type "help();" to find out what functions it implements. alert() is implemented by the browser code that embeds JavaScript (ie. FireFox). wrote in message news:d701a0$g3s1@ripley.netscape.com... >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 > > Question: > 1)Is there a component of the API that contains the alert() function > that has not been loaded? > a)If so, how do I load it. > b)If not, that probably goes for the DOM as well, so am I using > the wrong application for my needs (thus BUTWT)? > > Any recommendations, pointers to documentation are welcome. I could find > nothing in README.html that came with the spidermonkey code regarding this > subject. > > Thanks > Tim .