i'm having some crazy trouble and i can't figure out how to fix it. I have a form that has a "return submitNotes" on the submit button (onclick). i have the submitNotes function and it seems to be calling it fine, but in my function i have an ajax call that doesn't seem to be firing off. I've placed alerts in the ajax call for when it is finished and the curious thing is that the alert only goes off when i have return false at the bottom of the page. If i comment out the return it doesn't even show the alert. In both cases the ajax call doesn't seem to be reaching out to it's page. Anything you guys can do to help!
function submitNotes(rID){
ts = getTs(); //this is so IE sees a unique URL being called everytime.
var consignor = $('#consignor').val()
var consignee = $('#consignee').val();
var consignorRequired = $('#consignorRequired').val();
if(consignorRequired=='true'){
if(consignor==''){
alert('Consignor information is required!');
return false;
}
if(consignee==''){
alert('Consignee information is required!');
return false;
}
}
$('#loading_notes').show();
$.get('/scripts/claim_sendTo.asp?action=pending&rID='+rID+'&auditorID=1',function(){
alert('hello2');
$('#claimForm').submit();
});
//return false;
}