[Phpmyadmin-devel] Passing POST variables

Ninad Pundalik ninadsp16289 at gmail.com
Wed Mar 31 05:59:21 CEST 2010


Hi,

I've narrowed down the javascript code that is conflicting with my
jQuery code for paginating a table's contents to one particular line
in PMA_generate_slider_effect() in libraries/common.lib.php.  The line
is:

document.write('<div id="<?php echo $id; ?>" <?php echo
$GLOBALS['cfg']['InitialSlidersState'] == 'closed' ? ' style="display:
none;"' : ''; ?>>');

If I'm not wrong, the div is being generated on the fly with
javascript, so that it can b backward compatible in browsers where
javascript is disabled.  In that case, we could use jQuery itself to
insert that element, instead of document.write().  I'll go ahead and
try that, but someone please confirm this.  Once this is fixed, I'll
be able to submit a patch to Sourceforge.

Marc, you might know about this better :).

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