• JavaScript Return to Menu

    From Chad Adams@VERT/CYBERNET to All on Tuesday, November 03, 2015 09:09:57
    Does anyone know the JS command to return to a menu (not just display it)?

    On my logout screen which is JS, I want a Return To BBS listing where a user can return back to the Main Menu.

    Thanks in advance!

    Sincerely,
    Chad Adams

    -=- CyberNet BBS : Home of Cyber-Net Message Network : Join Now! -=-

    ---
    þ Synchronet þ -=-CyberNet BBS - Home of Cyber-Net cybernet.synchro.net -=-
  • From Nightfox@VERT/DIGDIST to Chad Adams on Tuesday, November 03, 2015 08:03:32
    Re: JavaScript Return to Menu
    By: Chad Adams to All on Tue Nov 03 2015 09:09:57

    Does anyone know the JS command to return to a menu (not just display it)?

    On my logout screen which is JS, I want a Return To BBS listing where a user can return back to the Main Menu.

    That really depends on how your JavaScript command shell is implemented, and without seeing yours, it will be really hard to give you an answer.. Also, I'm not quite sure what you mean by "Return To BBS listing"?

    In general, you would need to add some code to your JS to prompt the user to confirm whether they really want to log off, and if not, then go back to your main menu somehow (again, without seeing your JS command shell, we can't tell you specifically how to do what you want).

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Chad Adams@VERT/CYBERNET to Nightfox on Tuesday, November 03, 2015 19:17:10
    Re: JavaScript Return to Menu
    By: Nightfox to Chad Adams on Tue Nov 03 2015 08:03 am

    Ok, Ill try to grab a snippet of code. I am looking for a function that loads the BBS main menu.

    Sincerely,
    Chad Adams

    -=- CyberNet BBS : Home of Cyber-Net Message Network : Join Now! -=-

    ---
    þ Synchronet þ -=-CyberNet BBS - Home of Cyber-Net cybernet.synchro.net -=-
  • From Nightfox@VERT/DIGDIST to Chad Adams on Tuesday, November 03, 2015 20:14:29
    Re: JavaScript Return to Menu
    By: Chad Adams to Nightfox on Tue Nov 03 2015 19:17:10

    Ok, Ill try to grab a snippet of code. I am looking for a function that loads the BBS main menu.

    Synchronet doesn't have a built-in function to go to a particularl menu, because such functionality is highly dependent on the command shell you're using, and each command shell can be implemented completely different from each other. Synchronet does have some JavaScript functions to display an ANSI/ASC representing your menu, but based on your previous message, it sounds like that's not what you want. You're going to have to examine the code of your command shell and change some of its implemented logic to do what you want.

    Also, it's helpful to quote the message you're replying to so that people (including the person you're replying to) can follow the conversation more easily.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com