Re: msgbase.get_msg_headerã > By: datavase to All on Fri Mar 26 2010 09:50 amã > ã > >ã > > I'm writing an .js with the aim of exporting mesage areas to a PHP forumã > > based.ã > > On my .js I have:ã > >ã > > var msg_header = msgbase.get_msg_header(6);ã > > console.print("\r\n\1n"+msg_header);ã > >ã > > Instead of the header of the message 6, what I get on the screen is:ã > > [object MsgHeader]ã > >ã > > Please, could somebody point me to the right direction? What I'm doingã > > wrong? Thanks a lot.ã > ã > msg_header is an object. To view the properties of an object, you need toã > reference them (like msg_header.from). Seeã > http://synchro.net/docs/jsobjs.html#MsgBase_methods save_msg() method for aã > complete list of header fields (properties). You can also enumerate throughã > the properties and display them all using code such as:ã > ã > for (p in msg_header)ã > print(p +'='+ msg_header[p]);ã > ã > And see the examples .js files in your exec dir.ã > ã > digital manã > ã > Snapple "Real Fact" #148:ã > The tallest man was 8 ft. 11 in. ã > ã > ---ã > þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.netããThanks a lot DM, ããthe information was excellent. Now I'm getting the information I wanted usingãthe properties.ããCheers,ãdatavaseãã-+-ã ß Synchronet ß datavase BBS (telnet/WWW: bbs.datavase.info) - 2:250/8ãã---ã þ Synchronet þ datavase BBS - telnet://bbs.datavase.infoã
Sysop: | Karloch |
---|---|
Location: | Madrid, Spain |
Users: | 54 |
Nodes: | 8 (0 / 8) |
Uptime: | 129:17:16 |
Calls: | 700 |
Files: | 17,895 |
D/L today: |
128 files (60,769K bytes) |
Messages: | 66,010 |