[Phpmyadmin-devel] Passing POST variables

Marc Delisle marc at infomarc.info
Wed Mar 31 15:34:52 CEST 2010


Ninad Pundalik a écrit :
> 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,
to insert that div element, if I'm not mistaken you must tell jQuery to 
insert it before of after a certain element; which element would you 
choose?

Maybe you could pass to this PHP function the name of the element after 
which you want to insert this div?

-- 
Marc Delisle
http://infomarc.info




More information about the Developers mailing list