Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.addEvent("domready", function(){
- $$('a.vote').each(function(a){
- vote(a)
- });
- });
- function vote(a){
- a.addEvent("click",function(evt){
- evt.stop();
- alert(a);
- var url = a.getProperty('href');
- alert(url);
- new Ajax(url, {
- method: 'get',
- update: $('score'),
- onComplete: function(response){
- alert(response);}
- }).request();
- });
- };
Add Comment
Please, Sign In to add comment