[Phpmyadmin-devel] jQuery in master branch

Ninad Pundalik ninadsp16289 at gmail.com
Sun Mar 21 21:20:13 CET 2010


On 22 March 2010 01:02, Tomas Srnka <tomas.srnka at gmail.com> wrote:
> Hi,
> It might be good if it loads only plugins which are used at the moment.

In that case, we can load jquery.js, jQueryUI core on all pages, and
write a php function that will take an array as a parameter, and load
the plugins and UI components listed in the array, for that page.
jquery.js and jQueryUI core are required for all plugins and UI
components respectively, so it would be good to have them loaded on
all pages, when the browser supports JavaScript.  We could store a
cookie client side for javascript support maybe?

@Marc: jQuery UI is very stable and is popular.  :)  What if we
implement the entire tabs setup (browse, structure, sql, and all the
other tabs) by using the jQueryUI tabs, now that we are looking at
using AJAX in the pma interface?  The first time a particular tab is
opened, we could use AJAX to load the content of the tab, and cache
the content on the client side.  Second time, if we open that tab, the
content comes up faster.  If the user wants an updated version of the
content, then we can provide a refresh page which will reload the
content on that tab.  The jQueryUI tab setup is very simple (infact,
too simple), and the above idea of loading tabs via AJAX is something
I've tried at another place, it works pretty well.

Ninad S. Pundalik
GPG Key Fingerprint: 2DF7 B856 C75E C9F9 0504 C0EF D456 1946 7C45 2C69

More information about the Developers mailing list