Hello,
I hope someone can help me with a small chalenge I'm facing. I'm using javascript in UDT. The code is:
echo '
bla bla bla
var WINDOW_HTML = 'Het achterhuis.';
bla bla bla
';
however just before the start and the end of the div tag I need to use the symbol ' . This symbol closes the echo statement and return an error. Could anyone tell me what I need to use to prevent the echo from stopping?
I hope I explain my self well.
Thanks for your help.
Regards,
Robert.
SOLVED: using javascript in UDT
-
noborders
SOLVED: using javascript in UDT
Last edited by noborders on Mon Aug 06, 2007 8:16 am, edited 1 time in total.
Re: SOLVED: using javascript in UDT
i have the SAME issue and i was given a few solutions among which the "echo <<< END" solution, however i must be missing something crucial because this does not work for me and it is making me so sad...
this is what i put in for starters (the real script is alot longer, hence if i could manage not backslashing..)
:
even:
does not work..
this is what i put in for starters (the real script is alot longer, hence if i could manage not backslashing..)
:
Code: Select all
echo <<< END
<__script__ src="http://maps.google.com/maps?file=api&key=My_Key" type="text/javascript"></__script>
<__script__ type="text/javascript"> ";
END;
Code: Select all
echo <<< END
blah blah
END;
Last edited by manurevah on Mon Aug 06, 2007 10:48 am, edited 1 time in total.
Re: SOLVED: using javascript in UDT
Have you tried the literal trick...
{literal} your code {/literal}
{literal} your code {/literal}
Re: SOLVED: using javascript in UDT
yes i did, i even retried it just in case.. : ]


