M
Mike Dershowitz
Hi:
This is giving an error:
<%= link_to_function "expand",
"Element.toggle('in#{msg.id}');
Element.show('col#{msg.id}'); Element.hide('ex#{msg.id}');
document.getElementById('#{msg.id}').style.backgroundColor = 'white';
{new Ajax.Request('/messages/msg_read/#{msg.id}, {asynchronous:true,
evalScripts:true})}" %>
I've tried it a bunch of different ways but I still get an:
"unterminated string literal"
error.
Any help you can provide would be greatly appreciated - or Is there a
better way?
Thanks!
Mike
This is giving an error:
<%= link_to_function "expand",
"Element.toggle('in#{msg.id}');
Element.show('col#{msg.id}'); Element.hide('ex#{msg.id}');
document.getElementById('#{msg.id}').style.backgroundColor = 'white';
{new Ajax.Request('/messages/msg_read/#{msg.id}, {asynchronous:true,
evalScripts:true})}" %>
I've tried it a bunch of different ways but I still get an:
"unterminated string literal"
error.
Any help you can provide would be greatly appreciated - or Is there a
better way?
Thanks!
Mike