• .js files...

    From David@21:1/149 to All on Thursday, September 15, 2016 13:44:00
    Is it possible to have a .js file be executed when a user signs in? I have a file that Nolageek created (a weather app) and I would like to use it here.
    But I am not that good of a discoverer of ways to do things...So...if someone could teach me...thank you!!

    David.

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: oldschoolcampaign.us // Always something new. (21:1/149)
  • From Al@21:1/110.1 to David on Thursday, September 15, 2016 11:50:00
    Re: .js files...
    By: David to All on Thu Sep 15 2016 01:44 pm

    Is it possible to have a .js file be executed when a user signs in? I have a file that Nolageek created (a weather app) and I would like to use it here. But I am not that good of a discoverer of ways to do things...So...if someone could teach me...thank you!!

    I don't think it's possible to run JavaScript from Mystic, at least I haven't heard of anyone doing it yet.. :)

    If that .js could be converted to MPL or python it would be easier to do.

    ... Given my druthers, I'd druther not.
    --- SBBSecho 3.00-Linux
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:1/110.1)
  • From Necromaster@21:1/122 to Al on Thursday, September 15, 2016 22:45:00
    I don't think it's possible to run JavaScript from Mystic, at least I haven't heard of anyone doing it yet.. :)

    That would be nice if Mystic could do javascripts :)

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: Necronomicon BBS - necrobbs.strangled.net (21:1/122)
  • From Al@21:1/110.1 to Necromaster on Thursday, September 15, 2016 22:44:00
    Re: Re: .js files...
    By: Necromaster to Al on Thu Sep 15 2016 10:45 pm

    I don't think it's possible to run JavaScript from Mystic, at least
    I haven't heard of anyone doing it yet.. :)

    That would be nice if Mystic could do javascripts :)

    It probably could be done with the same spider monkey thingy (tm) that synchronet uses. It wouldn't surprise me if one of these guys around here doesn't just do it one of these days.. :)

    ... Put on your seatbelt - I'm gonna try something new!
    --- SBBSecho 3.00-Linux
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:1/110.1)
  • From bcw142@21:1/145 to David on Thursday, September 15, 2016 16:33:00
    On 09/15/16, David said the following...
    Is it possible to have a .js file be executed when a user signs in? I David.
    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: oldschoolcampaign.us // Always something new. (21:1/149)

    You'd need java running, but I would think it was possible using DD. If the java is running on the system and the command will work via a shell (command line), then DD should be able to run it. An example is the original adventure game, it's possible to load it on any Linux system. So I loaded it and run it with:
    (DD) Exec external program s10 /usr/games/adventure

    Most things you can run from a command line should be able to run from mystic that way. You generally need the full path to the command as seen above.

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: Mystic Pi BBS bcw142.zapto.org (21:1/145)