Reply to Re: JavaScript to Fetch Text

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация