<!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=086302420-05042001><FONT face=verdana>Thanks, I will take a 
look at it. </FONT></SPAN></DIV>
<DIV><SPAN class=086302420-05042001><FONT 
face=verdana></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=086302420-05042001><FONT face=verdana>I understand the security 
problem which is why I was asking if JS has a file read operation. As it is I am 
simply looking for a way to pass data in more more compact form than a long 
ASCII list of array assignments. Instead of</FONT></SPAN></DIV>
<DIV><SPAN class=086302420-05042001></SPAN>&nbsp;</DIV>
<DIV><SPAN class=086302420-05042001><FONT face=verdana>
<DIV><SPAN class=086302420-05042001><FONT face=verdana>array[0].x = 22;
<DIV><SPAN class=086302420-05042001><FONT face=verdana>array[0].y = 
12;</FONT></SPAN></DIV></FONT></SPAN></DIV></FONT></SPAN><SPAN 
class=086302420-05042001>
<DIV><SPAN class=086302420-05042001><FONT face=verdana>array[1].x = 10; 
<DIV><SPAN class=086302420-05042001><FONT face=verdana>array[1].y = 
5;</FONT></SPAN></DIV>
<DIV><SPAN class=086302420-05042001>
<DIV><SPAN class=086302420-05042001><FONT face=verdana>array[2].x = 200; 
<DIV><SPAN class=086302420-05042001><FONT face=verdana>array[2].y = 
120;</FONT></SPAN></DIV>
<DIV><SPAN class=086302420-05042001>..... and so on for 1 or 2 meg</SPAN></DIV>
<DIV><SPAN class=086302420-05042001></SPAN>&nbsp;</DIV>
<DIV><SPAN class=086302420-05042001>or can I find a way to do:</SPAN></DIV>
<DIV><SPAN class=086302420-05042001>22,12 10,5 200,120 ...and so on for 1 or 
200k and then parse it after the onload event. ( better still as a binary 
stream)</SPAN></DIV>
<DIV><SPAN class=086302420-05042001><FONT 
face=verdana></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=086302420-05042001>
<P><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> 
</P></SPAN></DIV>
<DIV><SPAN 
class=086302420-05042001></SPAN>&nbsp;</DIV></FONT></SPAN></DIV></SPAN></DIV></FONT></SPAN></DIV></SPAN><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> Wednesday, April 04, 2001 8:28 PM<BR><B>To:</B> 
javascript@LaTech.edu<BR><B>Subject:</B> Re: [Javascript] Passing 
data<BR><BR></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV>THis is what I assked you to be more precize for.</DIV>
  <DIV>Because if I understod well, You wan't datda to be read from another file 
  and to be displayed on youre current page. That is my friend a security 
  problem that has been very well solved and currently is unbreakable unles you 
  use some ASP activity, and even some remote Db that is safe. You can't brake 
  the security protocol.</DIV>
  <DIV>I have had the same problem and it took me a whole month to find some way 
  to display newr data in the current window withour having to refresh or reload 
  the page, correction: moving to another page. The problem was how to read the 
  data (content) of some &lt;DIV&gt; or &lt;LAYER&gt; object into this page from 
  another separate file, and pass it as innerText for instance. There is no 
  simple solution, or no solution at all. But there is a simple 
  work-around.</DIV>
  <DIV>Pease visit the link above<BR><A 
  href="http://www.dardaniaonline.com/members/trojani2000/">http://www.dardaniaonline.com/members/trojani2000/</A></DIV>
  <DIV>You will find a simple Test of dinamicity. And how i solved this 
  problem&nbsp;for IE. /it has a little bug but it works after the second 
  click/</DIV>
  <DIV>After you view the page go in you're tempIntFolder and find JavaSripts 
  asociated you have the names in the bottom of the referencial</DIV>
  <DIV>script tags in the page.</DIV>
  <DIV>&lt;script language="JavaScript" id=Fili src=""&gt; 
  !<BR>&lt;/script&gt;<BR>&lt;script 
  src="anima.js"&gt;&lt;/script&gt;<BR>&lt;script 
  src="paleta.js"&gt;&lt;/script&gt;<BR>&lt;script 
  src="pullat.js"&gt;&lt;/script&gt;<BR>&lt;script 
  src="dinamika.js"&gt;&lt;/script&gt;<BR>&lt;script 
  src="lokatori.js"&gt;&lt;/script&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  !</DIV>
  <DIV>And also the text files named Fajlli.txt with prefix 1, 2, 3, if you try 
  to find them with Find files and folders plese specify for example</DIV>
  <DIV>anima[1].js or for the text file 1Fajlli[1].txt;&nbsp;That are written 
  and named&nbsp;like JS strings.</DIV>
  <DIV>And if you have any further question, ask!</DIV>
  <DIV>&nbsp;</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>&nbsp;Steve 
    White</DIV>
    <DIV style="FONT: 10pt Arial"><B>Sent:</B>&nbsp;Wednesday, April 04, 2001 
    7:31 AM</DIV>
    <DIV style="FONT: 10pt Arial"><B>To:</B>&nbsp;javascript@LaTech.edu</DIV>
    <DIV style="FONT: 10pt Arial"><B>Subject:</B>&nbsp;RE: [Javascript] Passing 
    data</DIV>
    <DIV><BR></DIV>
    <META content="MSHTML 5.50.4522.1800" name=GENERATOR>
    <DIV><SPAN class=252141405-04042001><FONT face=verdana>&lt; The problem to 
    know&nbsp;what is you're aim here What do you wan't to do 
    exactly?</FONT></SPAN></DIV>
    <DIV><SPAN class=252141405-04042001>&lt;</SPAN></DIV>
    <DIV><SPAN class=252141405-04042001></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=252141405-04042001><FONT face=verdana>Its graphics and 
    animation data to be used with JavaScript functions&nbsp;that 
    drive&nbsp;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></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=252141405-04042001>Thanks<BR><BR>Steve 
    White<BR>www.VirtualMechanics.com<BR>www.DHTMLMagic.com<BR>www.SVGMagic.com<BR>www.IMSWebTips.com 
    </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&nbsp;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>&nbsp;Steve 
        White</DIV>
        <DIV style="FONT: 10pt Arial"><B>Sent:</B>&nbsp;Tuesday, April 03, 2001 
        11:37 PM</DIV>
        <DIV 
style="FONT: 10pt Arial"><B>To:</B>&nbsp;javascript@LaTech.edu</DIV>
        <DIV style="FONT: 10pt Arial"><B>Subject:</B>&nbsp;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" 
        &lt;ian.turner@romseyassoc.com&gt;<BR>To: 
        &lt;javascript@LaTech.edu&gt;<BR>Sent: Tuesday, April 03, 2001 9:26 
        AM<BR>Subject: RE: [Javascript] Passing data<BR><BR><BR>&gt; Certainly 
        the latter is possible. Though your parsing routine might be<BR>&gt; 
        complex and therefore large in its own right.<BR>&gt; It could be done 
        as a server side include file or by putting a string into<BR>&gt; the 
        HTML file.<BR>&gt;<BR>&gt; All the best<BR>&gt; Ian<BR>&gt;<BR>&gt; 
        -----Original Message-----<BR>&gt; From: javascript-admin@LaTech.edu 
        [mailto:javascript-admin@LaTech.edu]On<BR>&gt; Behalf Of Steve 
        White<BR>&gt; Sent: 03 April 2001 16:47<BR>&gt; To: 
        javascript@LaTech.edu<BR>&gt; Subject: [Javascript] Passing 
        data<BR>&gt;<BR>&gt;<BR>&gt; We generate large graphic data structures 
        to be processed by our included<BR>js<BR>&gt; code. I would like to 
        reduce the size of the data as much as possible.<BR>&gt;<BR>&gt; Instead 
        of passing the data as variable assignments it would be better 
        to<BR>&gt; pass it as binary or if that is not possible at least as a 
        sequence of<BR>ASCII<BR>&gt; values. So instead of:<BR>&gt;<BR>&gt; 
        Mctl[2][0].dis=0;<BR>&gt; Mctl[2][0].cout=43431132;<BR>&gt; 
        Mctl[2][0].rgb1=33593818;<BR>&gt; Mctl[2][0].rgb2=10066329;<BR>&gt; 
        Mctl[2][0].lwid=0;<BR>&gt; Mctl[2][1] = new Array();<BR>&gt; 
        Mctl[2][1].sclx=1.00;<BR>&gt; Mctl[2][1].scly=1.00;<BR>&gt; 
        Mctl[2][1].rot=-91.00;<BR>&gt; Mctl[2][1].tim=363;<BR>&gt; 
        Mctl[2][1].dis=238;<BR>&gt; Mctl[2][1].cout=43431132;<BR>&gt;<BR>&gt; I 
        could do something like:<BR>&gt;<BR>&gt; 0, 
        43431132,33593818,10066329,0,1.00,1.00,91.00,363,238,43431132;<BR>&gt;<BR>&gt; 
        Can JavaScript be used to read an attached binary or ASCII file? Or 
        could<BR>it<BR>&gt; be included within the SVG/HTML document as a huge 
        string and then parsed<BR>&gt; following the onload 
        event?<BR>&gt;<BR>&gt; Thanks<BR>&gt;<BR>&gt; Steve White<BR>&gt; 
        www.VirtualMechanics.com<BR>&gt; www.DHTMLMagic.com<BR>&gt; 
        www.SVGMagic.com<BR>&gt; www.IMSWebTips.com<BR>&gt;<BR>&gt;<BR>&gt; 
        _______________________________________________<BR>&gt; Javascript 
        mailing list<BR>&gt; Javascript@LaTech.edu<BR>&gt; 
        http://www.LaTech.edu/mailman/listinfo/javascript<BR>&gt;<BR>&gt;<BR>&gt; 
        _______________________________________________<BR>&gt; Javascript 
        mailing list<BR>&gt; Javascript@LaTech.edu<BR>&gt; 
        http://www.LaTech.edu/mailman/listinfo/javascript<BR>&gt;<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>
    <DIV></DIV></BLOCKQUOTE>
  <DIV><BR><BR clear=all>
  <HR>
  Get Your Private, Free E-mail from MSN Hotmail at <A 
  href="http://www.hotmail.com">http://www.hotmail.com</A>.<BR>
  <P></P></DIV></BLOCKQUOTE></BODY></HTML>