[Zope] javascript vars in dtml
Tino Wildenhain
tino at wildenhain.de
Fri Feb 25 07:10:09 EST 2005
Am Freitag, den 25.02.2005, 11:41 +0000 schrieb cla:
> Hi!
>
> i would like to know if its possible
> to pass javascript variables to dtlm methods.
>
> for example:
> <script type="text/javascript">
>
> function general(){
>
> var t="hello"
>
> /* here is the problem until now
> within dtml the they dont recognize
> the t var */
>
> <dtml-in "func(t)">
> ...
> </dtml-in>
>
>
> }
>
>
>
> </script>
>
> thanks
You are confused :-) JavaScript is entirely
interpreted by the client - the client gets
the page after the server has fully processed
it.
Redesign your approcach :-)
Regards
Tino
More information about the Zope
mailing list