Click to See Complete Forum and Search --> : Dynamic Text


Sandman2383
12-30-2002, 02:06 PM
hey everyone,
i'm having an issue with dynamic text. i have a web page with a few different frames, and i want to click on a link in one frame and have it display a certain text string in another frame. This doesn't seem difficult to do, but can anyone give me a helping hand? thanks a lot, i appreciate it.

- Keith

Craiga
12-30-2002, 02:09 PM
If you want to get rid of all the text in the frame:


string = "Hello World";

top.frames['framename'].document.write(string);


Or put a div in the frame to be writing calle 'write_string'

top.frames['framename'].document.getElementById('write_string').innerHTML = string;


Hope this helps.

BestZest
12-30-2002, 02:31 PM
ok. put this code in the dynamic text frame:
<span id="text">This will change!</span>
Then out this in the frame that changes the text:
parent.(frame-name).document.getElementById("text").innerHTML="This is the new text!"

Hope this works;)

BestZest