Thanks Deepak, but it didn't work.. Javi
On Dec 16, 1:42 pm, DEEPAK BHATIA <[email protected]> wrote: > Try this > > 'complete' => > "document.getElementById('message_1').className('read_message')", > > On Mon, Dec 14, 2009 at 5:38 PM, tirengarfio <[email protected]> wrote: > > Hi, > > > i want to change the class of a <div> after clicking a link. In the > > same time i would like to execute a symfony action. For that, im using > > link_to_remote this way: > > > <div class="non_read_message" id="message_1"> > > > Message's content > > > <div class="footer"> > > > <?php echo link_to_remote('Already read it', array( > > 'url' => 'mensaje/cambiarEstadoLeido, > > > 'update' => 'message_1', > > > 'complete' => 'document.getElementById > > ("message_1").className("read_message");', > > > )); ?> > > > </div> > > > </div> > > > My problem: after clicking on the link the class of the div doesn't > > change... > > > I don't have any problem using link_to_function and a .js file. > > > Any idea? > > > Regards > > > Javi > > > -- > > > You received this message because you are subscribed to the Google Groups > > "symfony users" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<symfony-users%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
