[Javascript] Passing data

BEKIM BACAJ Trojani2000 at hotmail.com
Wed Apr 4 19:28:09 CDT 2001


THis is what I assked you to be more precize for.
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.
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 <DIV> or <LAYER> 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.
Pease visit the link above
http://www.dardaniaonline.com/members/trojani2000/
You will find a simple Test of dinamicity. And how i solved this problem for IE. /it has a little bug but it works after the second click/
After you view the page go in you're tempIntFolder and find JavaSripts asociated you have the names in the bottom of the referencial
script tags in the page.
<script language="JavaScript" id=Fili src=""> !
</script>
<script src="anima.js"></script>
<script src="paleta.js"></script>
<script src="pullat.js"></script>
<script src="dinamika.js"></script>
<script src="lokatori.js"></script>               !
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
anima[1].js or for the text file 1Fajlli[1].txt; That are written and named like JS strings.
And if you have any further question, ask!



----- Original Message -----
From: Steve White
Sent: Wednesday, April 04, 2001 7:31 AM
To: javascript at LaTech.edu
Subject: RE: [Javascript] Passing data


< 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<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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010405/38f0b9b6/attachment.htm>


More information about the Javascript mailing list