Hi - I was wondering, is there a guide for converting Baja code to JavaScript somewhere that someone could point me to? I'm working on converting my Baja command shell to JavaScript, and I've been able to
figure out some of the JavaScript equivalents to what I'm doing in my Baja code, but it seems that a guide might make it easier. For instance, one of the Baja functions is GETKEYE, which gets a key and also allows slash commands, but I'm not sure what the equivalent would be in a JavaScript module - The console object has inkey(), getkey(), getstr(), getnum(), getkeys(), and gettemplate(), but I'm not certain if one of those can perform the same functionality. It seems that gettemplate() might do it, but the docs don't seem to specify the format of the template to pass to that function.
No, there is no guide (beside that of the combination of baja.html and jsobjs.html) and the example code in CVS (e.g. exec/classic_shell.js).
Deuce wrote a getkeye() method in JS (exec/coldfuncs.js) which looks like should be the functional equivalent of the Baja GETKEYE function.
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,044 |
Nodes: | 16 (1 / 15) |
Uptime: | 46:02:39 |
Calls: | 500,943 |
Calls today: | 6 |
Files: | 109,374 |
D/L today: |
5,844 files (1,061M bytes) |
Messages: | 304,051 |