Subj : Calling Java Script from Baja script
To   : Amessyroom
From : Nightfox
Date : Mon Aug 26 2024 01:28 pm

 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