2012-10-03, 04:52 AM
I want to run some JS script just after the quick reply is succesully sent, I have tried (after $headerinclude):
Then:
But nothing happens really, at all. Any help really appreciated.
<script type="text/javascript">
Event.observe($('quick_reply_submit'), 'click', foo('{$var1}', '{$va32}', '{$var3}', '{$var4}', '{$var5}'));
</script>
Then:
function foo(var1, var2, var3, var4, var5)
{
alert("An error occurred when rating the post.");
return false;
}
But nothing happens really, at all. Any help really appreciated.