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