Subj : Re: recursion errors
To : Rastus
From : Nightfox
Date : Mon Dec 30 2013 07:44 pm
Re: Re: recursion errors
By: Rastus to Rastus on Mon Dec 30 2013 15:36:29
>> Had been calling the Javascript menus using a command such as this:
>> bbs.exec("?Space_Menu.js");
>> But if I found if I call them using 'Load' I'm not seeing errors and
>> the programs work properly. ie:
>> load("Space_Menu.js");
>> I can then use bbs.exec to call any JavaScript door programs ie:
>> bbs.exec("?/sbbs/xtrn/dicewarz/dice.js");
Ra> This is just an example.. I would create a xtrn program using scfg for
Ra> such thing... I forgot to mention that..
>> Or should I using some other syntax?
I don't think I've tried running a JavaScript door using bbs.exec().. I
usually set up a JavaScript as an external door in SCFG and running it using
bbs.exec_xtrn() and passing the door's internal code. For instance, one of the
doors I have set up on my BBS is Global One-Linerz, which is implemented in
JavaScript. I've set that up with the internal code GONLINRZ, so to run that
from a JavaScript script, I call bbs.exec_xtrn("GONLINRZ");
I'd think you should be able to use bbs.exec("?....js") though... Sorry I
can't think of a good reason why that's not working.
Nightfox
---
� Synchronet � Digital Distortion BBS - digitaldistortionbbs.com