[Javascript] Passing data
Ian Turner
ian.turner at romseyassoc.com
Tue Apr 3 11:26:49 CDT 2001
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
More information about the Javascript
mailing list