-
Calling Java Script from Baja script
From
Amessyroom@VERT/TL-QWK to
All on Monday, August 26, 2024 12:53:59
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?
---
þ Synchronet þ Too Lazy BBS - toolazy.synchro.net:2323
-
From
Nightfox@VERT/DIGDIST to
Amessyroom on Monday, August 26, 2024 13:28:40
Re: Calling Java Script from Baja script
By: Amessyroom to All on Mon Aug 26 2024 12:53 pm
Am> Trying to modify the wildcat clone menu to call a Javascript module.
Am> cmdkey N
Am> exec_xtrn "NEWS"
Am> pause
Am> end_cmd
Am> News is the external name for the news.js module
Am> Is this the correct way to make the call, or can baja not call java
Am> script ? Maybe I need to call jsexec and filename?
That's one way to do it. I'm assuming what you're saying is you have news.js set up in External Programs and NEWS is its internal code?
Another way would be to run news.js directly from your Baja, like this:
exec "?news.js"
Nightfox
---
þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
-
From
Nightfox@VERT/DIGDIST to
Amessyroom on Monday, August 26, 2024 13:29:36
Re: Calling Java Script from Baja script
By: Nightfox to Amessyroom on Mon Aug 26 2024 01:28 pm
Also, you can refer to the Baja documentation to see what all you can do with Baja:
https://www.synchro.net/docs/baja.html
Nightfox
---
þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
-
From
Digital Man@VERT to
Amessyroom on Monday, August 26, 2024 14:31:26
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)
Rush quote #56:
His world is under anesthetic, subdivided and synthetic .. Digital Man
Norco, CA WX: 89.9øF, 27.0% humidity, 7 mph WNW wind, 0.00 inches rain/24hrs
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Amessyroom@VERT/TL-QWK to
Digital Man on Thursday, August 29, 2024 23:24:22
Re: Calling Java Script from Baja script
By: Digital Man to Amessyroom on Mon Aug 26 2024 02:31 pm
DM> Re: Calling Java Script from Baja script By: Amessyroom to All on Mon Aug
DM> 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?
DM> Looks correct to me. Why, is it not working?
DM> 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> --
DM> digital man (rob)
---
þ Synchronet þ Too Lazy BBS - toolazy.synchro.net:2323
-
From
Amessyroom@VERT/TL-QWK to
Digital Man on Thursday, August 29, 2024 23:29:02
Re: Calling Java Script from Baja script
By: Amessyroom to Digital Man on Thu Aug 29 2024 11:24 pm
>>> cmdkey N
>>> exec_xtrn "NEWS"
>>> pause
>>> end_cmd
DM>> Looks correct to me. Why, is it not working?
DM> DM> You can also manually execute a JavaScript module with the "EXEC"
DM> DM> sysop DM> command (e.g. type ";exec ?news" from the main menu of the
DM> DM> default command DM> shell) - assuming news.js is in your exec or mods
DM> DM> directory. DM> --
DM> DM> 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.js
Thanks for the assistance (DM/Nightfox)
---
þ Synchronet þ Too Lazy BBS - toolazy.synchro.net:2323