Trying to modify the wildcat clone menu to call a Javascript module.
cmdkey N
exec_xtrn "NEWS"
pause
end_cmd
News is the external name for the news.js module
Is this the correct way to make the call, or can baja not call java script ? Maybe I need to call jsexec and filename?
Trying to modify the wildcat clone menu to call a Javascript module.
cmdkey N
exec_xtrn "NEWS"
pause
end_cmd
News is the external name for the news.js module
Is this the correct way to make the call, or can
baja not call java script ? Maybe I need to call jsexec and filename?
Re: Calling Java Script from Baja script By: Amessyroom to All on Mon Aug 26 2024 12:53 pm
Trying to modify the wildcat clone menu to call a Javascript module.
cmdkey N
exec_xtrn "NEWS"
pause
end_cmd
News is the external name for the news.js module
Is this the correct way to make the call, or can baja not call java script
? Maybe I need to call jsexec and filename?
Looks correct to me. Why, is it not working?
You can also manually execute a JavaScript module with the "EXEC" sysop command (e.g. type ";exec ?news" from the main menu of the default command shell) - assuming news.js is in your exec or mods directory.
--
digital man (rob)
Sent before I edited. Got it working with Nightfox's suggestion of using exec and ? but had to give relative path ../mods/News-main/news.jscmdkey N
exec_xtrn "NEWS"
pause
end_cmd
Looks correct to me. Why, is it not working?
You can also manually execute a JavaScript module with the "EXEC" sysop DM> command (e.g. type ";exec ?news" from the main menu of the default command DM> shell) - assuming news.js is in your exec or mods directory. DM> --
digital man (rob)
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,031 |
Nodes: | 17 (1 / 16) |
Uptime: | 11:54:21 |
Calls: | 502,077 |
Calls today: | 24 |
Files: | 104,434 |
U/L today: |
1 files (6K bytes) |
D/L today: |
9,824 files (1,223M bytes) |
Messages: | 298,414 |
Posted today: | 1 |