Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update Multiple DIVs on a page

Status
Not open for further replies.

countdrak

Programmer
Jun 20, 2003
358
US
I have data in different divs coming from my db using different queries.

Is there anyway to update all the different divs content simultaneously when something changes on the page.

I am familiar with Prototype. Any help will be great.

Thanks guys.
 
Yes - you should have no problem doing this. Each DIV will have a unique identifier (probably) which you can use to access their innerHTML -- from there it's just a matter of setting the innerHTML to the correct value.

If you need a more specific answer, you'll have to provide a URL or some code etc.

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top