I was just trying to add a javascript door & I seem to have run into a
snag. I can't get the javascript to run. Synchronet just pauses for a second & returns to the prompt.
Is it even possible to write a door in javascript or do I need to use baja or C++ or something?
I was just trying to add a javascript door & I seem to have run into a snag. I can't get the javascript to run. Synchronet just pauses for a second & returns to the prompt.
Is it even possible to write a door in javascript or do I need to use baja or C++ or something?
Is it even possible to write a door in javascript or do I need to use baja o C++ or something?Yeah, there's three or four allready written.... In a way, one would assume
I was just trying to add a javascript door & I seem to have run into a snag. I can't get the javascript to run. Synchronet just pauses for a second & returns to the prompt.
Is it even possible to write a door in javascript or do I need to use baja o C++ or something?
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
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?
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.
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.
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.
what one?
To execute a JavaScript door, you need to start the command line with a ?. example, for Deuce's FS editor:
?fseditor.js %f
I was just trying to add a javascript door & I seem to have run into a I sn can't get the javascript to run. Synchronet just pauses for a second & returns to the prompt.
what one?
I was planning to write one.
Re: Javascript Door
By: Digital Man to Rassilon on Fri Mar 26 2010 12:54 am
Internal Code: TEST
Start-up Directory: (It's in the exec. directory for now - so no value) Command Line: test.js
Sysop: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 578 |
Nodes: | 8 (0 / 8) |
Uptime: | 04:47:17 |
Calls: | 10,736 |
Files: | 5 |
Messages: | 443,460 |