function rankProfile(id, vote) {
url = 'http://www.nuconrad.com//ajax/profile_rank_vote.php';
new Ajax.Updater('profile-rank', url, { parameters: { name: 'User_Profile_Rank',
process: 'true',
id: id,
vote: vote
},
onCreate: function(transport) {
$('profile-rank-status').update('Submitting vote...');
},
onComplete: function(transport) {
$('rank_box').innerHTML = transport.responseText;
rank_status = $('profile-rank-status').innerHTML;
$('profile-rank-status').update('Thank you for your vote!');
}
}
);
}
function loadrank(id,divname) {
var url = "http://www.nuconrad.com//ajax/profile_rank_all.php?id="+id+"&divname="+divname;
new Ajax.Request( url, { onCreate: function(transport) {
},
onFailure: function(transport) {
alert(transport.responseText);
},
onSuccess: function(transport) {
$(divname).update(transport.responseText);
}
}
);
}
function rankProfileall(id, vote,divname) {
var url = 'http://www.nuconrad.com//ajax/profile_rank_vote_all.php';
new Ajax.Request(url, { parameters: { name: 'User_Profile_Rank',
process: 'true',
id: id,
vote: vote
},
onCreate: function(transport) {
$(divname).update('Submitting ...');
},
onFailure: function(transport) {
alert(transport.responseText);
},
onSuccess: function(transport) {
$(divname).update(transport.responseText);
}
}
);
}