Re: how to put document.getElementById("sidebar").innerHTML ETC into an ECHO
ok guys i tried your fixes and am getting closer in that i load an
empty google maps page now (instead of that old error) but am now
getting an error saying "expected ;"
note i tried both of your methods using single and double quotes with
the slashes yet get the same error in both cases.
also i looked back at my original code and actually the original code
is :
document.getElementById("sidebar").innerHTML = sidebar_html;
note no parathenses around the sidebar_html although when i removed the
parantheses it still didn't matter.
so to recap, i now am using this line of code:
echo "var document.getElementById(\"sidebar\").innerHTML =
\"sidebar_html\";\n";
and still get "expected ;"
any ideas?
0 Comments:
Yorum Gönder
<< Home