Subj : Javascript Door
To   : Corey
From : Digital Man
Date : Fri Mar 26 2010 10:22 am

 Re: Javascript Door
 By: Corey to Nightfox on Fri Mar 26 2010 07:59 am

>   Re: Javascript Door
>   By: Nightfox to Rassilon on Fri Mar 26 2010 07:30 am
>
>  >   Re: Javascript Door
>  >   By: Rassilon to All on Thu Mar 25 2010 23:37:00
>  >
>  >  > I was just trying to add a javascript door & I seem to have run into
>  >  > a sn I can't get the javascript to run.  Synchronet just pauses for a
>  >  > second & returns to the prompt.
>  >
>  > To execute a JavaScript door, you need to start the command line with a
>  > ?.  example, for Deuce's FS editor:
>  > ?fseditor.js %f
>  >
>  >  > Is it even possible to write a door in javascript or do I need to use
>  >  > baj C++ or something?
>  >
>  > Yes, doors can be written in JavaScript, although they tend to be
>  > Synchronet-specific doors.  Synchronet comes with at least one
>  > Synchronet do (tw2), and things like Deuce's FS editor and SlyEdit are
>  > written in JavaScri
>  > Nightfox
>  >
>
> so how would you run a door from the js menu like classic_shell.js?

bbs.exec_xtrn("code") is the most correct way to run any "door" from a shell,
regardless of what language the door is written in. Alternatively, you could
use load() or bbs.exec(), but I dont' recommend it.

                                           digital man

Snapple "Real Fact" #71:
There is a town called "Big Ugly" in West Virginia.

---
� Synchronet � Vertrauen � Home of Synchronet � telnet://vert.synchro.net