i need to show the text contained in a text file, so i used this html line:
<object id="file1" data="file1.txt"></object>
what i am not able to do is: how to use a variable instead of the string "file1.txt" ?
thanks
I think you could change the value of the DATA attribute with e.g.:
Dear Chistian J
i was not able to let it work (in chrome)
on setattribute i get an error: TypeError: Cannot read property 'setAttribute' of null
Could you post a sample of it?
Another solution might be to use server-side scripting (e.g. PHP) to read the text file, then browser support isn't an issue.
Hi Christian
I understood that these things are too far from my competences and i gave up and found a work around with winsock,
thanks a lot for you kind help!
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)