Code:
function addthanks(to,from,forr) {
$('#addthanks').attr('disabled', true);
$('#addthanks').attr('value', 'Sending thanks..');
$.ajax({
type: "POST",
url: "ajax/addthanks.php",
data: "to="+to+"&from="+from+"&for="+forr,
async: false,
error:function(ajaxrequest){
$('#addthanks').attr('value', 'Failed');
return false;
},
success:function(content){
$('#addthanks').attr('value', content);
setTimeout(function() {
$('#addthanks').animate({
opacity:0,
height:0,
width:0
}, 500)
}, 1000);
return true;
}
});
}
Firefox: addthanks() is not a function
Any suggestions?
EDIT:
Lol it was actually the placement of the onclick call for it 
Last edited by Galaxian; 12-11-2008 at 11:49 AM..
|