|
|
|
|
|
by marlin
4427 days ago
|
|
Dont understand your issue.
the only javascript served by this page should be <script type="text/javascript">
function byId(id) {
return document.getElementById(id);
}
function vote(node) {
var v = node.id.split(/_/); // {'up', '123'}
var item = v[1];
// hide arrows
byId('up_' + item).style.visibility = 'hidden';
byId('down_' + item).style.visibility = 'hidden';
// ping server
var ping = new Image();
ping.src = node.href;
return false; // cancel browser nav
} </script>
for the <a> links, as such: <a id=up_7666264 onclick="return vote(this)" href="vote?for=7666264&dir=up&xxxx">
and this makes it surely works correctly even without javascript. |
|