Hi Marc,

this is not done in an Ajax way as you are reloading the whole
db_structure.php.

I'm not reloading the whole page. I just reload the "#tabelsForm" by using this. 
$("#tableslistcontainer").load(db_structure_url+ " #tablesForm", function(){});
 
When tbl_replace.php is called, the ajax_request parameter is set to
true so the script knows it's running in an Ajax context. So after it
does its job of inserting the row, would be a good time to count the rows.


Okay thanks for the information and I'll try that out. 

Regards,
Thilanka.

--
L G Thilanka Kaushalya     
Computer Science & Engineering,    
University of Moratuwa,
Sri Lanka
                          
Connect with me at,
      Gmail        : lgtkaushalya@gmail.com
      Twitter       : @thilanka_k
      Facebook  : Thilanka Kaushalya
      Yahoo       : lgtkaushalya@yahoo.com
      Blog          : http://coders-view.blogspot.com/