[Phpmyadmin-devel] AJAXify phpMyAdmin Interface - GSOC 2011 - Create Table in navigation panel

Thilanka Kaushalya lgtkaushalya at gmail.com
Mon May 23 19:47:33 CEST 2011


Hi Marc,


> First, are you using Firebug to debug this? In Firebug with Firefox 4 I
> can see that at my first attempt to create a table from the navi panel,
> there is a js error in the Ajax logic of jQuery. Maybe using a "get"
> this way with jQuery is not supported.
>
>
I'm using firebug but I didn't noticed that error message. I'll try to
correct that.


> I made a suggestion in this thread, about running jQuery in the context
> of another frame. For an example, look at the last line of
> js/server_privileges.js.
>
> Other points:
>
> - to simplify the code, instead of selecting $('#newtable') and then
> looking for the ajax class on the a element, you could put the ajax
> class directly on the newtable id and select $('#newtable.ajax')
>
> - watch your indentations (for example in navigation.php)
>
> - you are creating the div id="create_table_dialog" in the "if" and also
> in the "else" so its creation should be moved before the "if"
>
> - in navigation.php, try calling js/messages.php after calling
> js/functions.js
>
> - when creating js variables, use var; for example, instead of
> url = $('#newtable a').attr("href");
> var url = $('#newtable a').attr("href");
>
> this way, the variable appears in Firebug and is easier to follow
>
>
>
Thank for the above tips you pointed out. I'll work on that and correct
them.

Regards,
Thilanka.


-- 
L G Thilanka Kaushalya
Computer Science & Engineering,
University of Moratuwa,
Sri Lanka

Connect with me at,
      Gmail        : lgtkaushalya at gmail.com
      Twitter       : @thilanka_k
      Facebook  : Thilanka Kaushalya
      Yahoo       : lgtkaushalya at yahoo.com
      Blog          : http://coders-view.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20110523/e3a37f41/attachment.html>


More information about the Developers mailing list