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ã
Sysop: | Karloch |
---|---|
Location: | Madrid, Spain |
Users: | 54 |
Nodes: | 8 (0 / 8) |
Uptime: | 128:50:29 |
Calls: | 700 |
Files: | 17,895 |
D/L today: |
128 files (60,769K bytes) |
Messages: | 66,010 |