[Phpmyadmin-devel] document.write() and jQuery conflicts on the demo server

Michal Čihař michal at cihar.com
Fri Jul 2 10:20:18 CEST 2010


Dne Thu, 1 Jul 2010 23:25:31 +0530
Ninad Pundalik <ninadsp16289 at gmail.com> napsal(a):

> Since yesterday, I've been trying to figure out what has been causing
> the blank pages on the 'Add New User' and 'Create Table' actions on
> the demo server [0] (while it works fine on my system).  I've narrowed
> it down to two calls to document.write(), which are a part of the
> Google Analytics and Piwik code.  When jQuery inserts content
> retrieved over an Ajax call into the DOM, it evaluates the inline
> javascript. [1]
> One possible, partial solution is to do what John Resig has shown in
> this blogpost [2], to write a more compliant document.write()
> function.  However, he admits that this is only a partial solution and
> is not cross-browser.  I've been trying to hack around, but I've not
> been successful in resolving this issue.  Has anyone come across a
> better solution?

I replaced the Google Analytics and Piwik code with DOM functions, so
it should be fixed.

	Michal Čihař | http://cihar.com | http://blog.cihar.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20100702/2d5cd3da/attachment.sig>

More information about the Developers mailing list