|
|
 |
Re: FN-FORUM: dynamic text
date posted 7th February 2008 19:58
[EMAIL REMOVED] wrote:
>
> Hi all,
>
> Is there a simple way to create the equivalent of Flash's dynamic text
> but using just html?
> I have a very simple website with one bit of text that I would like to
> display from a text file rather than typing it directly onto it but I
> don't know how to do this....
>
> Any suggestions welcome,
>
> Claire.
>
>
Hi
Either you use a SSI or you can do it with a Javascript
In case you want to use SSI (Server Side Include)
Not all web servers are allowing this though.
As for the Javascript option I'd suggest to use mootools (mootools.net)
Something like this will work
window.addEvent('domready', function() {
var url = "/file.txt";
new Ajax(url, {
method: 'get',
update: $('div.text')
}).request();
});
where div.text is the destination of the text you want to include
Or whatever you want to use.
Hope that helps.
|
 |
|