• web

    From Mortifis@VERT/ALLEYCAT to Digital Man on Tue Feb 12 21:03:26 2019
    I'm curious, in web/lib/leftnav_html.ssjs ... template.leftnav = new Array; ... if( sub != 'mail' ... ) where is sub defined? I am getting an error "lib/leftnav_html.ssjs line 32: ReferenceError: sub is not defined"

    ---
    ■ Synchronet ■ AlleyCat! BBS - http://alleycat.synchro.net:81
  • From Digital Man@VERT to Mortifis on Tue Feb 12 17:16:59 2019
    Re: web
    By: Mortifis to Digital Man on Tue Feb 12 2019 09:03 pm

    I'm curious, in web/lib/leftnav_html.ssjs ... template.leftnav = new Array; ... if( sub != 'mail' ... ) where is sub defined? I am getting an error "lib/leftnav_html.ssjs line 32: ReferenceError: sub is not defined"

    I think it's from the root/*.ssjs files:

    File root\ftelnet.ssjs:
    var sub='';
    File root\index.ssjs:
    var sub='';
    File root\newuser.ssjs:
    var sub="";
    File root\nodelist.ssjs:
    var sub='';

    digital man

    This Is Spinal Tap quote #33:
    Nigel Tufnel: Well, so what? What's wrong with bein' sexy?
    Norco, CA WX: 59.7°F, 31.0% humidity, 0 mph SW wind, 0.00 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Mortifis@VERT/ALLEYCAT to Digital Man on Tue Feb 12 21:55:47 2019
    Re: web
    By: Mortifis to Digital Man on Tue Feb 12 2019 09:03 pm

    I'm curious, in web/lib/leftnav_html.ssjs ... template.leftnav = new Array; ... if( sub != 'mail' ... ) where is sub defined? I am getting an error "lib/leftnav_html.ssjs line 32: ReferenceError: sub is not defined"

    I think it's from the root/*.ssjs files:

    File root\ftelnet.ssjs:
    var sub='';
    File root\index.ssjs:
    var sub='';
    File root\newuser.ssjs:
    var sub="";
    File root\nodelist.ssjs:
    var sub='';

    Hmmm ... interesting ... I still could get it to accept 'sub' so I changed it to
    if(msg_area.grp_list.sub_list_code != 'mail'... seems to be working now :-/

    Thank you, DM

    ---
    ■ Synchronet ■ AlleyCat! BBS - http://alleycat.synchro.net:81
  • From echicken@VERT/ECBBS to Mortifis on Fri Feb 15 08:59:53 2019
    Re: Re: web
    By: Mortifis to Digital Man on Tue Feb 12 2019 21:55:47

    Hmmm ... interesting ... I still could get it to accept 'sub' so I changed it to
    if(msg_area.grp_list.sub_list_code != 'mail'... seems to be working now

    That probably only incidentally solves the problem because msg_area.grp_list.sub_list_code is undefined and never equals 'mail'.

    That leftnav_html.ssjs script is meant to be included by other scripts, and those other scripts are expected to have defined a variable named 'sub' ahead of time. You could set 'sub' the code of the sub the user is currently browsing (if that applies), or you could set 'sub' to null or '' or something like that.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-425-5435
    ■ Synchronet ■ electronic chicken bbs - bbs.electronicchicken.com