I need to execute a certain JavaScript when accesing the custom URL.
At this time the code behind the button that triggers the JavaScript that I need to be ran is this:
<a class="button" href="#"
onclick="new Request.HTML({
method: 'post',
url: '/ro/somefolder/anotherfolder',
data: {'user_id': 777, 'score': 1, 'redirect': '1'},
update: $('vote_user_777'),
evalScripts: true
}).send();return false;">
<img src="/images/game/thumbsup.gif" alt="vote">
</a>
</span>
</p>