how to refresh DIV in one page without reloadin it.

Reply

Join Date: Jul 2009
Posts: 123
Reputation: phpbeginners has a little shameless behaviour in the past 
Solved Threads: 12
phpbeginners phpbeginners is offline Offline
Junior Poster

how to refresh DIV in one page without reloadin it.

 
0
  #1
Aug 18th, 2009
Is there anyone who can write a javascript/php code for refreshing the contents of only one DIV container on one page?
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 257
Reputation: BzzBee is an unknown quantity at this point 
Solved Threads: 37
BzzBee BzzBee is offline Offline
Posting Whiz in Training

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

 
0
  #2
Aug 18th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,071
Reputation: ardav will become famous soon enough ardav will become famous soon enough 
Solved Threads: 137
ardav's Avatar
ardav ardav is offline Offline
Veteran Poster

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

 
-1
  #3
Aug 19th, 2009
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.
Happy Humbugging Christmas
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC