[Phpmyadmin-devel] AJAXify phpMyAdmin Interface - GSOC 2011 - db_structure -> insert

Marc Delisle marc at infomarc.info
Mon Jun 13 19:06:52 CEST 2011


Thilanka Kaushalya a écrit :
> 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(){});

Agreed, but reloading this big form just to update a row count is not 
efficient, IMO.

>  
> 
>     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.


-- 
Marc Delisle
http://infomarc.info




More information about the Developers mailing list