sayedsohail Posted May 16, 2007 Share Posted May 16, 2007 Hi everyone, I got a html data table with ten records, and i wish to update this table after any modifications/additions to it. How do i do it. Please help. something like mysql(refresh); Link to comment https://forums.phpfreaks.com/topic/51674-how-to-update-my-html-data-table-after-modificationsadditions-please-help/ Share on other sites More sharing options...
Psycho Posted May 16, 2007 Share Posted May 16, 2007 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? Link to comment https://forums.phpfreaks.com/topic/51674-how-to-update-my-html-data-table-after-modificationsadditions-please-help/#findComment-254548 Share on other sites More sharing options...
sayedsohail Posted May 16, 2007 Author Share Posted May 16, 2007 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. Link to comment https://forums.phpfreaks.com/topic/51674-how-to-update-my-html-data-table-after-modificationsadditions-please-help/#findComment-254577 Share on other sites More sharing options...
Psycho Posted May 16, 2007 Share Posted May 16, 2007 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. Link to comment https://forums.phpfreaks.com/topic/51674-how-to-update-my-html-data-table-after-modificationsadditions-please-help/#findComment-254595 Share on other sites More sharing options...
sayedsohail Posted May 16, 2007 Author Share Posted May 16, 2007 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, Link to comment https://forums.phpfreaks.com/topic/51674-how-to-update-my-html-data-table-after-modificationsadditions-please-help/#findComment-254620 Share on other sites More sharing options...
Psycho Posted May 16, 2007 Share Posted May 16, 2007 but how do you do the content and edit reverts. I don't follow, can you be more specific? Link to comment https://forums.phpfreaks.com/topic/51674-how-to-update-my-html-data-table-after-modificationsadditions-please-help/#findComment-254672 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.