<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
<BODY
style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; FONT: 10pt verdana; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none">
<DIV><SPAN class=252141405-04042001><FONT face=verdana>< The problem to
know what is you're aim here What do you wan't to do
exactly?</FONT></SPAN></DIV>
<DIV><SPAN class=252141405-04042001><</SPAN></DIV>
<DIV><SPAN class=252141405-04042001></SPAN> </DIV>
<DIV><SPAN class=252141405-04042001><FONT face=verdana>Its graphics and
animation data to be used with JavaScript functions that drive DHTM
and SVG (Scalable Vector Graphics). It is probably a lot like Flash and we will
output to that as well but I assume Flash uses its own encoding/decoding format.
There is really no limit to how much data you could have so compacting it as
much as possible is important. At this point we don't want to get into streaming
but I suppose there is no reason why the data could not be sent in packets. At
the moment just putting it into a file (could even be in the HTML or SVG file if
that makes sense) and then using a standard JavaScript operation to read it.
Decoding or parsing should not be a problem for us if we can find and read
it.</FONT></SPAN></DIV>
<DIV><SPAN class=252141405-04042001><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=252141405-04042001><FONT size=2>Thanks<BR><BR>Steve
White<BR>www.VirtualMechanics.com<BR>www.DHTMLMagic.com<BR>www.SVGMagic.com<BR>www.IMSWebTips.com</FONT>
</DIV></SPAN>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT
face=Tahoma>-----Original Message-----<BR><B>From:</B>
javascript-admin@LaTech.edu [mailto:javascript-admin@LaTech.edu]<B>On Behalf
Of </B>BEKIM BACAJ<BR><B>Sent:</B> Tuesday, April 03, 2001 5:58
PM<BR><B>To:</B> javascript@LaTech.edu<BR><B>Subject:</B> Re: [Javascript]
Passing data<BR><BR></FONT></DIV>
<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></BLOCKQUOTE></BODY></HTML>