View Full Version : Getting one DIV to reload another DIV

03-24-2012, 04:12 AM
This is my dilemma and I am not sure if I am handling the right way, so please suggest a new way or provide a valid answer so that I may achieve my goal. Thanks in advance for your help in solving this matter.

In short I have a single "A.html" page that uses AJAX to reload in "B.php" into a <DIV id='bDiv'> every second and "C.php" into another <DIV id='cDiv'> with no reloading.

The code in B.php generates a random number between 1 and 100.
If the number generated is less than 10, I want <DIV id='cDiv'> to refresh its content.

I have tried a number of tricks, I could not find anything in jQuery so if there is please point me to the correct function calls.

03-25-2012, 01:25 AM
Where is your code? How should we "suggest a new way" if we don't know the old way?