Jump to content

how to update my html data table after modifications/additions. Please help


sayedsohail

Recommended Posts

You need to be more specific.

 

"I got a html data table with ten records, and i wish to update this table after any modifications/additions to it." - wouldn't the table be updated if you modified it?

 

How is the html table constructed? Is it a flat file or is it gernated dynamically from the database? Is there a database? Do you have any current code to share?

my html table is a dynamic one using sql (maindata.php)

 

select * from table1 and than I echo's the value, which is perfectly fine.

 

than i got a edit/add which opens a popup window (editdata.php / adddata.php) with some form

and on submit of this form the data goes back to server and the popup windows displays the information on success or failure of sql statment, than its closes it self  using the javascript function

 

self.close(); and brings me back to the main php datagrid window (maindata.php) which is my first window.

 

Here is  what i wish to reflect this changes to the exisiting maindata.php file which is listing 10 records of data dynamically.  I can do i manually like click the browser button refresh.  But i want something dynamically to reflect this changes.

 

Any idea.

 

 

The only way you could do it would be with javascript. Before the popup window closes using self.close(), try using parent.refresh(). Although, I'm not sure how well it will work for you. You may need to get creative: e.g. have the popup call a function in the parent document before closing and have that function in the parent do a redirect back to the same page.

 

I typically have an edit page replace the current page. When the edit completes it then reverst back to the content page.

it works fine,  but how do you do the content and edit reverts.  is this something like amazon, ebay tabular windows, can you give any idea please.

 

Infact, in the last week or so i was thinking about amazon and ebay tabular display.  please share if you have any idea.

 

thanks,

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.