• MsgBase.cfg object

    From Khelair@VERT/TINFOIL to All on Fri Feb 19 05:04:03 2016
    Is there some way other than MsgBase.cfg.index to retrieve the current indexãof either the current sub or the opened MsgBase object? I'm running into aãwall that I've hit a few times here where I keep getting exceptions thrownãabout 'mBase.cfg.index is undefined', where mBase is my verified open MsgBaseãobject. I've stumbled around this problem many times before, but I'm havingãtrouble figuring out how I got around it before. Is this still a supportedãobject in the Synchronet JS api?ã Very much appreciate any information on this you might be able to give. ãThanks for your time.ãã -D/Kãã---ãBorg Burgers: We do it our way; your way is irrelevant.ã þ Synchronet þ Tinfoil Tetrahedron BBS telnet://tinfoil.synchro.netã
  • From Nightfox@VERT/DIGDIST to Khelair on Fri Feb 19 12:45:20 2016
    Is there some way other than MsgBase.cfg.index to retrieve the currentã > index of either the current sub or the opened MsgBase object? I'm ãrunningã > into a wall that I've hit a few times here where I keep getting ãexceptionsã > thrown about 'mBase.cfg.index is undefined', where mBase is my verified ãopenã > MsgBase object. I've stumbled around this problem many times before, butã > I'm having trouble figuring out how I got around it before. Is this ãstill aã > supported object in the Synchronet JS api?ã > Very much appreciate any information on this you might be able to give.ã > Thanks for your time.ããmsg_area.sub is an associative array of all sub-boards, indexed by internalãcode. You probably know the internal code you used to create the MsgBaseãobject, so you could look into msg_area.sub[code] (where code is the ãinternal code of the message sub-board) - There's probably a property thereãthat has the index of the current sub. I can't look into it more right now,ãbut you can output all the properties & their values of that in JavaScriptãlike this:ããfor (var prop in msg_area.sub[code])ã console.print(prop + ": " + msg_area.sub[code][prop] + "\r\n");ãconsole.pause();ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
  • From Digital Man@VERT to Khelair on Fri Feb 19 18:30:59 2016
    Re: MsgBase.cfg objectã By: Khelair to All on Fri Feb 19 2016 05:04 amãã > Is there some way other than MsgBase.cfg.index to retrieve the currentã > index of either the current sub or the opened MsgBase object? I'm runningã > into a wall that I've hit a few times here where I keep getting exceptionsã > thrown about 'mBase.cfg.index is undefined', where mBase is my verified openã > MsgBase object. I've stumbled around this problem many times before, butã > I'm having trouble figuring out how I got around it before. Is this still aã > supported object in the Synchronet JS api?ããYes, it's still supported, but only for sub-boards (not the "mail" base).ãã > Very much appreciate any information on this you might be able to give.ã > Thanks for your time.ããIs it possible you have the "mail" base open with a MsgBase object and that'sãwhy there's no 'cfg' property?ãã digital manããSynchronet "Real Fact" #38:ãSynchronet first supported Windows NT v6.x (a.k.a. Vista/Win7) w/v3.14a (2006).ãNorco, CA WX: 59.6øF, 66.0% humidity, 3 mph ESE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã