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">
if($('mutsu').hasClassName("apple")) {
alert("div has CSS apple class.");
}
</script>
Javi
Javier, try just using (') into javascript_tag:
<?php echo javascript_tag("
if($('mutsu').hasClassName('apple')) { // " => '
alert('div has CSS apple class.'); // " => '
}
") ?>
--
Rodrigo Ruiz Fuentes
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en.