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