View Full Version : Changing DIV contents...


karasu-kun
06-12-2005, 10:56 PM
I -think- I've done this before... I just can't remember how X_X
Anyway. I have a layout, with the contents positioned with a DIV layer. Instead of reloading the entire layout each time, I just want the content to change.

(replace [ ] with < >)

...

[a href="content2.html"]

...

[div style="position..." name="content"]

If I remember correctly, doing this had something to do with

[a href="content2.html" target="content"]

Am I close... or completly wrong? I know this can more or less be easily done with iFrames, but I personally hate the things considering only IE displays them correctly.

Thanks,
K-kun

pb&j
06-12-2005, 11:04 PM
you will have to enter an IFRAME into the DIV. div cannot change its content, only iframes can do that.

check lissa's tutorials under html, frames, iframes.

karasu-kun
06-12-2005, 11:13 PM
I must be delusional... I swear I did something like this before... anyhow... bleh, iFrames... I suppose I could use a frame instead...

Monkey Bizzle
06-12-2005, 11:45 PM
you could use PHP includes i suppose...

pb&j
06-13-2005, 01:45 PM
you could use PHP includes i suppose...
that would however reload the entire page.
original post says they want to move away from doing that.

Monkey Bizzle
06-13-2005, 01:51 PM
that would however reload the entire page.
original post says they want to move away from doing that.
oh yeah, oops! :blush: