Re: [symfony-users] Re: Trying to add prototype functions

2010-01-15 Thread Javier Garcia
On 01/15/2010 09:20 PM, Tiago Nunes wrote: You're confusing PHP code with Javascript code, and that's not good. Thanks Tiago, it's true.. Anywy im trying this: ?php echo javascript_tag( if($('mutsu').hasClassName(apple)) { alert(div has CSS apple class.); } ) ? And it doesn't

Re: [symfony-users] Re: Trying to add prototype functions

2010-01-15 Thread Rodrigo Ruiz Fuentes
El 15/01/2010 18:10, Javier Garcia escribió: Thanks Tiago, it's true.. Anywy im trying this: ?php echo javascript_tag( if($('mutsu').hasClassName(apple)) { alert(div has CSS apple class.); } ) ? And it doesn't work... No problem with ordinary code: script type=text/javascript