|
Posted by Rik Wasmus on 09/05/07 15:12
On Wed, 05 Sep 2007 17:03:37 +0200, amerar@iwc.net <amerar@iwc.net> wrot=
e:
>
> Hi All,
>
> I cannot get this stupid Javascript code to embed properly in my PHP.
> It does not show the 'select' button. I believe it is my quotes,
> maybe Javascript does not like something.......
>
> Anyhow, can someone help me with the syntax?? I'd really appreciate
> it. The code works fine in just plain HTML......
If it works in plain HTML, your PHP does NOT output EXACTLY the same =
thing. So, check the differences, and repair those. The browser doesn't =
=
care how the HTML/JS was created. This is NOT a PHP issue.
> echo "<TABLE><TR>\n";
> echo " <TD><input type=3Dtext name=3D'partydate' size=3D10 maxlengt=
h=3D10
> value=3D'$party_date'>\n";
> echo " <script language=3D'javascript'>\n";
Ask in comp.lang.javascript why, but don't use language=3D"javascript", =
use =
type=3D"text/javascript"
> echo " <!-- if (!document.layers) {\n";
Ask in comp.lang.javascript why, but don't use <!-- anymore, we don't li=
ve =
in the early 90's.
Weird if. Then again, that would be a javascript issue...
> echo " document.write(\"<input type=3Dbutton
> onclick=3D'popUpCalendar(this, editparty.partydate, \"mm/dd/yyyy\")'
Ah, found it by accident: ---------------------------^. End of string, n=
ot =
what you want.
onclick=3D'popUpCalendar(this, editparty.partydate, \\\"mm/dd/yyyy\\\")'=
-- =
Rik Wasmus
[Back to original message]
|