Re: [symfony-users] Question about link_to_remote: 'complete' option

2009-12-16 Thread DEEPAK BHATIA
Try this 'complete' = document.getElementById('message_1').className('read_message'), On Mon, Dec 14, 2009 at 5:38 PM, tirengarfio tirengar...@gmail.com 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

Re: [symfony-users] Question about link_to_remote: 'complete' option

2009-12-16 Thread DEEPAK BHATIA
Try this way... ?php echo link_to_remote('Refresh the letter', array( 'url' = 'publishing/refresh', 'complete' = 'updateclass()' )) ? ?php echo javascript_tag( function updateclass() { document.getElementById('message_1').className('read_message'); } ) ? On Mon, Dec 14, 2009 at 5:38 PM,

[symfony-users] Question about link_to_remote: 'complete' option

2009-12-14 Thread tirengarfio
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

Re: [symfony-users] Question about link_to_remote: 'complete' option

2009-12-14 Thread Gareth McCumskey
complete=$('message_1').toggleClassName('read_message'); http://www.prototypejs.org/api/element/toggleClassName On Mon, Dec 14, 2009 at 2:08 PM, tirengarfio tirengar...@gmail.com 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