Hi,

I have added this in a template:

<div id="mutsu" class="apple"></div>

<?php  if( $('mutsu').hasClassName("apple") ){
      alert("div has CSS apple class."); ?>
   }

but when i load the template in the browser, the javascript alert is not showed.

Even in Netbeans i have a syntax error...

I added also the code above in a file where im using another prototype function (toggleClassName()) that works ok to be sure the problem is not caused because im not loading prototype.js. This is the code i say:

<?php echo link_to_remote('Marcar como leido', array(

            'url' => 'mensaje/cambiarEstadoLeido?id='.$m->getId(),

            // Aqui se desplegará el resultado de la acción.
            'update' => 'mensaje_'.$m,

            "complete" => "$('$m').toggleClassName('mensaje_1');",

            )); ?>

Any help?

Javi

-- 
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.


Reply via email to