• 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ãã Mo> Hmmm ... interesting ... I still could get it to accept 'sub' so I changedã Mo> it to ã Mo> 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ã