[Javascript] Passing data

BEKIM BACAJ Trojani2000 at hotmail.com
Tue Apr 3 16:58:11 CDT 2001


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/20010403/8c2dc2ff/attachment.htm>


More information about the Javascript mailing list