All:
I've been doing some fiddlin' with js menus and was wondering if someone could give me the correct syntax to call another js.
Ie.
I have default.js which has most of the menu options in it, but it was getting rather large, so I created an additional js for external programs and such (xtrn.js).
I've tried a few things, but I seem to fail.
I've been doing some fiddlin' with js menus and was wondering if someone could give me the correct syntax to call another js.
Ie.
I have default.js which has most of the menu options in it, but it was getting rather large, so I created an additional js for external programs and such (xtrn.js).
I've been doing some fiddlin' with js menus and was wondering if someone could give me the correct syntax to call another js.
Ie.
I have default.js which has most of the menu options in it, but it was getting rather large, so I created an additional js for external programs
and such (xtrn.js).
I've tried a few things, but I seem to fail.
I've tried a few things, but I seem to fail.
USE:
load("xtrn.js");
or
bbs.exec("?xtrn.js");
use the load if you can... it will give you less headaches in the end, trust me... if you need params, load("xtrn.js","param1","param2"...);
If I switch back to loading bullseye as a logon event (set up through scfg) should the command line be ?bullseye.js or ?I changed mine in scfg to ?bullseye.js and it runs perfectly..
Also how/when do you know to use a ? or * in something like bbs.exec("?xtrn.js"); and why isn't it used in load("xtrn.js");?
If I switch back to loading bullseye as a logon event (set up through scfg)I changed mine in scfg to ?bullseye.js and it runs perfectly..
should the command line be ?bullseye.js or ?
Re: Re: JS: Exec, Load or DIE
By: Mindless Automaton to Tracker1 on Wed Sep 14 2005 07:08 pm
Also how/when do you know to use a ? or * in something like bbs.exec("?xtrn.js"); and why isn't it used in load("xtrn.js");?
bbs.exec() can be used to run all kinds of modules:
* 16-bit DOS applications
* 32-bit native applications
* Baja modules
* JavaScript modules
'?' is used to indicate that the module being executed is a JavaScript module.
'*' is used to indicate that the module being executed is a Baja (.bin) module.
load() can only be used to execute other JavaScript modules, so no '?' is needed.
digital man
Sysop: | Ree |
---|---|
Location: | Toronto, ON |
Users: | 2 |
Nodes: | 10 (0 / 10) |
Uptime: | 139:50:05 |
Calls: | 369 |
Files: | 2 |
Messages: | 38,437 |