sg

Cumartesi, Kasım 26, 2005

Re: how to put document.getElementById("sidebar").innerHTML ETC into an ECHO


Larry is right - the problem has to do with the quotes, and his
technique will fix it, but another workaround is to say

echo "var document.getElementById(\"sidebar\").innerHTML =
(\"sidebar_html\");\n";

and if you notice, I replaced all the " that i want to print with \"
because that way it will print a quote, not interfere with the PHP
parsing.
Hope that helps

-Aron

0 Comments:

Yorum Gönder

<< Home


Komik Videolar   islam  şarkı sözleri  yemek tarifleri  gelibolu  huzur   sağlık