• JS: Exec, Load or DIE!

    From Mindless Automaton@VERT/ELDRITCH to DOVE-Net.Programming_(Jav on Mon Jun 6 13:43:00 2005
    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.ããThanks,ããMindless Automatonã---ã þ Synchronetã
  • From Digital Man@VERT to Mindless Automaton on Mon Jun 6 14:42:35 2005
    Re: JS: Exec, Load or DIE!ã By: Mindless Automaton to DOVE-Net.Programming_(Jav on Mon Jun 06 2005 01:43 pmãã > 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.ããSee the load() function in: http://synchro.net/docs/jsobjs.html#global_methodsãã digital manããSnapple "Real Fact" #126:ãA pigeon's feathers are heavier than its bones. ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Grymmjack@VERT to Mindless Automaton on Wed Jun 8 08:29:06 2005
    ã > 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 believe what you are looking for is include? i think there is an include ãfunction/feature/whatever.ããã- grymmjack<grymmz0r@yahoo.com>ãã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Tracker1@VERT/TRN to Mindless Automaton on Mon Jun 20 07:44:00 2005
    Mindless Automaton wrote:ã> 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.ãã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"...);ãã-- ãMichael J. Ryan - tracker1(at)theroughnecks(dot)net - www.theroughnecks.netãicq: 4935386 - AIM/AOL: azTracker1 - Y!: azTracker1 - MSN/Win: (email)ãã---ã þ Synchronet þ theroughnecks.net - you know you want itã
  • From Mindless Automaton@VERT/ELDRITCH to Tracker1 on Wed Sep 14 19:08:00 2005
    Tracker1 wrote:ã>>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"...);ã> ããAlrighty, I changed the logon.js? (login, logon, I get the names confused) to ãhave it run bullseye.js using load("bullseye.js") instead of the regular way ãbullseye.bin was set up to run. However, when I hit enter to continue from ãbullseye, I am get bullseye again and I can't escape!ããTherefore, there is probably a way to execute a js from the original file and ãreturn to the original file when that script is done that I haven't figured out.ããRight now I split the logon/login one in two so it loads log?n, loads bullseye, ãloads the other half, which is probably not the best way to go.ããIf I switch back to loading bullseye as a logon event (set up through scfg)ãshould the command line be ?bullseye.js or ?ãã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");?ããMany thanks,ãã-Mindless Automatonã---ã þ Synchronetã
  • From Melkor@VERT/STARFRON to Mindless Automaton on Wed Sep 14 22:22:00 2005
    ã > 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..ããã...First secure an independent income, then practice virtue.ãJoin StarNet today.. Http://starfrontiers.dyndns.orgããã---ã þ Synchronet þ Star Frontiers Home of StarNet Telnet://starfrontiers.dyndns.orgã
  • From Digital Man@VERT to Mindless Automaton on Wed Sep 14 22:47:54 2005
    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ããSnapple "Real Fact" #25:ãThe only food that does not spoil is honey.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Mindless Automaton@VERT/ELDRITCH to Melkor on Thu Sep 15 10:18:00 2005
    Melkor wrote:ã> ã> > 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..ã> ããAlrighty, I'll probably go back and try that then.ããThanks,ããMindless Automatonã---ã þ Synchronetã
  • From Mindless Automaton@VERT/ELDRITCH to Digital Man on Thu Sep 15 10:18:00 2005
    Digital Man wrote:ã> 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ããExcellent. Thanks for the clarification.ãã-Mindless Automatonã---ã þ Synchronetã