Hi all,
I am new to javascript and jslibs,
I have checked out current sources of jslibs trunk (rev: 3651) from svn (
http://jslibs.googlecode.com/svn/trunk/) and compiled it for my Linux (fedora-11).
After compilation, It creates all shared objects (.so) and binaries under jslibs/Linux_32_opt
But I am not able to run the scipts using "jshost",
When I run jshost to execute script, It gave me error that "ReferenceError: LoadModule is not defined"
Ex:
$ jshost test.js
test.js:2: ReferenceError: LoadModule is not defined
My test.js file content are as follows:
------File helloword.js -----
LoadModule('jsstd');
LoadModule('jsnspr');
var file = new File('file_test.txt');
if ( file.exist ) {
file.Open( File.RDONLY );
print( 'file content:\n'+file.Read() );
file.Close();
}
------File helloword.js -----
Can anyone provide me input how to execute scrips using jshost?
OR
Am I doing something wrong in the script.
Where can I find the definition of "LoadModule"?
Thanks in Advance,
Vasim Attar.