[Phpmyadmin-devel] Where to put new jQuery functions

Ninad Pundalik ninadsp16289 at gmail.com
Wed May 26 13:33:55 CEST 2010

Hi Lori,

On 26/05/2010, Michal Čihař <michal at cihar.com> wrote:
> Hi
> As we want to get rid of inline javascript, it should probably go to
> some file in js/ directory. In this case probably in new file.
> --
> 	Michal Čihař | http://cihar.com | http://blog.cihar.com

I agree with Michal.  For my part, where I am planning to write jQuery
functions, I'll put the common ones in either functions.js or
common.js (the previous one seems to be included almost everywhere)
and write page specific functions in a new file and put it in /js/.
For example, all JavaScript code necessary for server_privileges.php
is in server_privileges.js.

Ninad S. Pundalik
Twitter: @ni_nad | Identica : @ninad | http://ninadpundalik.co.cc/blog
GPG Key Fingerprint: 2DF7 B856 C75E C9F9 0504 C0EF D456 1946 7C45 2C69

More information about the Developers mailing list