<HTML><BODY STYLE="font:10pt verdana; border:none;"><DIV>Hi, Steve!</DIV> <DIV>The problem to know what is you're aim here</DIV> <DIV>What do you wan't to do exactly?</DIV> <DIV>Yes you can put anything in a .txt file. But how do you load it, and what type of data do you need.</DIV> <DIV>JS has a FileSysObject that can read files, and also write to files.</DIV> <DIV>The split is a command used in strings, why do you need it for?</DIV> <DIV>Be more specific!</DIV> <DIV>Regards</DIV> <DIV><BR></DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt Arial">----- Original Message -----</DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt Arial; FONT-COLOR: black"><B>From:</B> Steve White</DIV> <DIV style="FONT: 10pt Arial"><B>Sent:</B> Tuesday, April 03, 2001 11:37 PM</DIV> <DIV style="FONT: 10pt Arial"><B>To:</B> javascript@LaTech.edu</DIV> <DIV style="FONT: 10pt Arial"><B>Subject:</B> RE: [Javascript] Passing data</DIV> <DIV><BR></DIV>I am not familiar with Split() but I assume that it is some type of string<BR>parser. If so the problem I am trying to figure out is how do I pass the<BR>data? If I have a SCRIPT in a HTML file how do I include the code or can I<BR>just put it in a .txt file and read it. Does js even have a Read File<BR>operation?<BR><BR>I need to get a good reference book.<BR><BR>Thanks<BR><BR>Steve White<BR>www.VirtualMechanics.com<BR>www.DHTMLMagic.com<BR>www.SVGMagic.com<BR>www.IMSWebTips.com<BR><BR>-----Original Message-----<BR>From: javascript-admin@LaTech.edu [mailto:javascript-admin@LaTech.edu]On<BR>Behalf Of TomMallard<BR>Sent: Tuesday, April 03, 2001 2:23 PM<BR>To: javascript@LaTech.edu<BR>Subject: Re: [Javascript] Passing data<BR><BR><BR>If you used ASCII and kept your key=value pairs it would make parsing it out<BR>on the client pretty simple with split().<BR><BR>Just a thought,<BR><BR>tom<BR>----- Original Message -----<BR>From: "Ian Turner" <ian.turner@romseyassoc.com><BR>To: <javascript@LaTech.edu><BR>Sent: Tuesday, April 03, 2001 9:26 AM<BR>Subject: RE: [Javascript] Passing data<BR><BR><BR>> Certainly the latter is possible. Though your parsing routine might be<BR>> complex and therefore large in its own right.<BR>> It could be done as a server side include file or by putting a string into<BR>> the HTML file.<BR>><BR>> All the best<BR>> Ian<BR>><BR>> -----Original Message-----<BR>> From: javascript-admin@LaTech.edu [mailto:javascript-admin@LaTech.edu]On<BR>> Behalf Of Steve White<BR>> Sent: 03 April 2001 16:47<BR>> To: javascript@LaTech.edu<BR>> Subject: [Javascript] Passing data<BR>><BR>><BR>> We generate large graphic data structures to be processed by our included<BR>js<BR>> code. I would like to reduce the size of the data as much as possible.<BR>><BR>> Instead of passing the data as variable assignments it would be better to<BR>> pass it as binary or if that is not possible at least as a sequence of<BR>ASCII<BR>> values. So instead of:<BR>><BR>> Mctl[2][0].dis=0;<BR>> Mctl[2][0].cout=43431132;<BR>> Mctl[2][0].rgb1=33593818;<BR>> Mctl[2][0].rgb2=10066329;<BR>> Mctl[2][0].lwid=0;<BR>> Mctl[2][1] = new Array();<BR>> Mctl[2][1].sclx=1.00;<BR>> Mctl[2][1].scly=1.00;<BR>> Mctl[2][1].rot=-91.00;<BR>> Mctl[2][1].tim=363;<BR>> Mctl[2][1].dis=238;<BR>> Mctl[2][1].cout=43431132;<BR>><BR>> I could do something like:<BR>><BR>> 0, 43431132,33593818,10066329,0,1.00,1.00,91.00,363,238,43431132;<BR>><BR>> Can JavaScript be used to read an attached binary or ASCII file? Or could<BR>it<BR>> be included within the SVG/HTML document as a huge string and then parsed<BR>> following the onload event?<BR>><BR>> Thanks<BR>><BR>> Steve White<BR>> www.VirtualMechanics.com<BR>> www.DHTMLMagic.com<BR>> www.SVGMagic.com<BR>> www.IMSWebTips.com<BR>><BR>><BR>> _______________________________________________<BR>> Javascript mailing list<BR>> Javascript@LaTech.edu<BR>> http://www.LaTech.edu/mailman/listinfo/javascript<BR>><BR>><BR>> _______________________________________________<BR>> Javascript mailing list<BR>> Javascript@LaTech.edu<BR>> http://www.LaTech.edu/mailman/listinfo/javascript<BR>><BR><BR><BR>_______________________________________________<BR>Javascript mailing list<BR>Javascript@LaTech.edu<BR>http://www.LaTech.edu/mailman/listinfo/javascript<BR><BR><BR>_______________________________________________<BR>Javascript mailing list<BR>Javascript@LaTech.edu<BR>http://www.LaTech.edu/mailman/listinfo/javascript<BR> <DIV></DIV></BLOCKQUOTE></BODY></HTML>