943,777 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1974
  • PHP RSS
Aug 18th, 2009
0

how to refresh DIV in one page without reloadin it.

Expand Post »
Is there anyone who can write a javascript/php code for refreshing the contents of only one DIV container on one page?
Similar Threads
Reputation Points: 12
Solved Threads: 32
Posting Whiz in Training
phpbeginners is offline Offline
226 posts
since Jul 2009
Aug 18th, 2009
0

Re: how to refresh DIV in one page without reloadin it.

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
Reputation Points: 16
Solved Threads: 48
Posting Whiz
BzzBee is offline Offline
327 posts
since Apr 2009
Aug 19th, 2009
-1

Re: how to refresh DIV in one page without reloadin it.

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.
Sponsor
Featured Poster
Reputation Points: 1048
Solved Threads: 947
Sarcastic Poster
ardav is offline Offline
6,678 posts
since Oct 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Banner Rotation
Next Thread in PHP Forum Timeline: Show Present time in page





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC