Subj : Javascript Door
To : Digital Man
From : Corey
Date : Fri Mar 26 2010 03:04 pm
Re: Javascript Door
By: Digital Man to Corey on 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 int
> > > > a sn I can't get the javascript to run. Synchronet just pauses for
> > > > second & returns to the prompt.
> > >
> > > To execute a JavaScript door, you need to start the command line with
> > > ?. example, for Deuce's FS editor:
> > > ?fseditor.js %f
> > >
> > > > Is it even possible to write a door in javascript or do I need to u
> > > > 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.
>
works great, thanks. no I can learn javascript and build custom menus sections.
here is the first code of my door menu.
//############################ Doors Menu ###############################
case '?':
if(user.settings & USER_EXPERT)
bbs.menu("doors");
break;
case 'A':
bbs.exec_xtrn("amb4")
break;
case 'X':
default:
return;
}
}
}
I had done one in baja and now figured to make a js one.
synchronet has changed a lot over the years, but the extern system stayed the
same. thanks again.
Caput meum major podice meo.
This message has ended, go in peace...
---
� Synchronet � Three Stooges Gentlemens Club - Las Vegas, Nv