0

Is there anyone who can write a javascript/php code for refreshing the contents of only one DIV container on one page?

3
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by diafol
0

in what sense you are saying to refresh div? using ajax you can refresh any div or you have just static content and want to chage that static content then you can hide any div using javascript and can how any other div of same height width with different id

0

Like bzz says if the info you want to insert into the div is static, you can do this with just js. Give the div an I'd and access this via the old faithful getElementById and set new data with innerHTML prperty.

If the data is dynamic/coming from dB. You'll need ajax. I'd recommend using a simple library like prototype to deal with the repetitive business of creating an ajax object.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.