When a key is pressed I want to call bbs.view_file("file") and bbs.exec_xtrn(INTERNAL_NAME).What about
How do you do this ? It seems I can do one but not both
'A': { eval: 'bbs.exec_xtrn("code")' },
---
■ Synchronet ■ Too Lazy BBS - toolazy.synchro.net:2323
When a key is pressed I want to call bbs.view_file("file") and bbs.exec_xtrn(INTERNAL_NAME).
How do you do this ? It seems I can do one but not both
'A': { eval: 'bbs.exec_xtrn("code")' },
When a key is pressed I want to call bbs.view_file("file") and
bbs.exec_xtrn(INTERNAL_NAME).
How do you do this ? It seems I can do one but not both
'A': { eval: 'bbs.exec_xtrn("code")' },
It looks like you're using default.js? I think inside the single-quotes after the eval:, you should be able to put multiple statements in there (each ending with a semicolon)..
'A': { eval: 'bbs.view_file("file"); bbs.exec_xtrn("code");' },
I haven't tried that, but I'd think that should work.
Nightfox
| Sysop: | Eric Oulashin |
|---|---|
| Location: | Beaverton, Oregon, USA |
| Users: | 124 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 05:57:50 |
| Calls: | 7,351 |
| Calls today: | 3 |
| Files: | 9,250 |
| D/L today: |
207 files (44,657K bytes) |
| Messages: | 383,699 |
| Posted today: | 1 |