[PHPTAL] Re: PHPTAL Digest, Vol 17, Issue 4

Julien Fredon julien.fredon at imaginance.com
Fri Jun 23 14:14:42 CEST 2006


Hello Rony,

You should try something like this :

<script type="text/javascript">
/*<![CDATA[*/

alert ('${MyTalValue}');

/*]]>*/
</script>


-- 

*Julien Fredon*




phptal-request at lists.motion-twin.com a écrit :
> Send PHPTAL mailing list submissions to
> 	phptal at lists.motion-twin.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.motion-twin.com/mailman/listinfo/phptal
> or, via email, send a message with subject or body 'help' to
> 	phptal-request at lists.motion-twin.com
>
> You can reach the person managing the list at
> 	phptal-owner at lists.motion-twin.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of PHPTAL digest..."
>   
> ------------------------------------------------------------------------
>
> Today's Topics:
>
>    1. PHPTAL - Search and Replace in JAVASCRIPT (Rony Cohen)
>   
>
> ------------------------------------------------------------------------
>
> Sujet:
> [PHPTAL] PHPTAL - Search and Replace in JAVASCRIPT
> Expéditeur:
> "Rony Cohen" <cohen.rony at gmail.com>
> Date:
> Thu, 22 Jun 2006 16:08:59 +0200
> Destinataire:
> phptal at lists.motion-twin.com
>
> Destinataire:
> phptal at lists.motion-twin.com
>
>
> Hello everybody,
>
> I'm trying to replace some vars in  javascript.
> but that don't work....
>
> I tried:
>
> <script type="text/javascript" tal:replace="myvar MyTalValue" >
> <!--
> alert ('${myvar}');
> // -->
> </script>
>
>
> But that doesn't work.....
>
>
> I don't know what I could do.
>
> Can someonr Help me ?
>
> thank you!
> Rony
> ------------------------------------------------------------------------
>
> _______________________________________________
> PHPTAL mailing list
> PHPTAL at lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>   
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.9.2/373 - Release Date: 22/06/2006
>   



More information about the PHPTAL mailing list