Re: how to put in an HTML element the content of a txt file?
- From: "D.Campagna" <ynnadrebyc@xxxxxxxxxxxxx>
- Date: Sat, 20 Jun 2009 11:10:11 +0200
D.Campagna ha scritto:
I apologize for my misunderstanding of the thing due to a very quick overview.
If I understand, you managed to exploit the fact that a html page can read a text file, intended to contain some javascript.
Then you read the content of the .js file, that is not javascript more than I am an elephant, but a text, and then you in some tricky way put it where you want in the page.
The .js rightfully only contain assignments to the variable defined in the global function. Oops! :-)
By the way I tried something similar, in a more primitive way. (I wanted a hidden iframe to load the desired file and to assign the text to the element in the page via a script)
In the past, and working with frames, I managed to do something like this:
-when loaded, a frame initializes an array object
-when submitted, a form (targeting another frame), asks something to the server, and there goes the answer from the server: it's a javascript function that fills the array
-the frame from which the form was submitted now displays the content of the array.
As previously stated, all worked fine with frames, but I have not yet understood from an Iframe how to refer to the main page and vice versa.
Anyway, thanks again, I'll try to put together the informations received and to make something by myself.
D. Campagna
.
- Follow-Ups:
- References:
- how to put in an HTML element the content of a txt file?
- From: D.Campagna
- Re: how to put in an HTML element the content of a txt file?
- From: SAM
- Re: how to put in an HTML element the content of a txt file?
- From: D.Campagna
- Re: how to put in an HTML element the content of a txt file?
- From: Jorge
- Re: how to put in an HTML element the content of a txt file?
- From: D.Campagna
- how to put in an HTML element the content of a txt file?
- Prev by Date: Health
- Next by Date: Re: how to put in an HTML element the content of a txt file?
- Previous by thread: Re: how to put in an HTML element the content of a txt file?
- Next by thread: Re: how to put in an HTML element the content of a txt file?
- Index(es):
Relevant Pages
|