Spidermonkey can provide File I/O, but Mozilla recommend against using the API, and it requires you to install the Netscape Portable Runtime (NSPR) and re-compile Spidermonkey with some extra flags.
https://developer.mozilla.org/en/SpiderMonkey/File_object After looking at the NSPR, I wrote an APE server-side plug-in in C to perform file access instead. As for where you put your "secret.js" files, download APE server v1.0 from the web site, install from one of the RPMs and take a look at the directories. They go into <ape>/scripts/. Take a look at main.ape.js for how to include your own scripts. Then you should upgrade to the Git version of the APE server later on. The APE server isn't a web server so no one will be able to read your JS files. On Mar 21, 10:48 pm, Wes Garland <[email protected]> wrote: > SpiderMonkey provides no I/O whatsoever. > > I have general I/O in APE+GPSEE fork if you want to play with that. Code is > stable but build system needs work. > > But you can use APE's include function with whatever filename you want. Look > at main.ape.js for an example. > > Wes > > > > On Mon, Mar 21, 2011 at 5:05 PM, ramtin nova <[email protected]> wrote: > > thanks wes for answering. > > yes you are right "we're certainly not at the completeness level of PHP." > > but my first question still remains unanswered "where these modules should > > be kept physically to work?" as far as I know APE is shipped with spider > > monkey which I have no information on how it is configured to run JS files > > in diffrent directory?! and I assume that spidermonkey does provide basic > > I/O methods for files am i right? > > > -- > > You received this message because you are subscribed to the Google > > Groups "APE Project" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > >http://groups.google.com/group/ape-project?hl=en > > --- > > APE Project (Ajax Push Engine) > > Official website :http://www.ape-project.org/ > > Git Hub :http://github.com/APE-Project/ > > -- > Wesley W. Garland > Director, Product Development > PageMail, Inc. > +1 613 542 2787 x 102 -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
