|
Posted by Neredbojias on 11/04/07 11:26
With neither quill nor qualm, Roy Schestowitz quothed:
> To rephrase my request as you were not sure what I meant, I seek to grab
> text from http://example.org/data.txt and then embed it in a <span>, for
> instance, in http://example.com/page.html. data.txt gets updated all the
> time, hence it needs to be grabbed. If JavaScript was disabled, there would
> be no harm either.
The "grabbing the text" part is the difficulty, especially if it's
dynamic. I know of no way to "address" plain text (files) with simple
javascript (from another source). What I've done in the past is put my
text, which is static, in a .js file and call it from a regular html
page. The text itself had to be loaded into variables inside the .js
file so it could be manipulated from within the html page. You might
say it was a "poor man's include".
This doesn't sound like what you want but you should be able to accept
that if you've ever been married.
--
Neredbojias
Contrary to popular belief, it is believable.
[Back to original message]
|