View Single Post
Old 20-06-2004, 02:24   #1 (permalink)
camner
Registered User
 
Join Date: Jun 2004
Location: Tacoma, WA
Posts: 2
updating a div from database

I have read some threads on this topic, but am not sufficiently clear on the concept to implement what I want to do...

I have a static page with a hidden <div> that is made visible via a javascript link. The <div> is populated with info from a MySQL database. The div contains a form that is used to update the database.

The way it currently works is that the form reloads the entire page, including the div.

It seems to me that it would be more efficient to have the div updated with new data WITHOUT reloading the entire page.

So, a double-level question:

1. Am I right that reloading the div alone is preferable to reloading the entire page?

2. If 'yes' to #1, how does one do that? innerHTML? Even if there is a fair amount of information? I'm not sure how to use innerHTML when generating an unknown amount of information being pulled from a database.

Thanks....
  Reply With Quote