[jQuery] problem with ajax request: request is not being sent
Hi, I am using jQuery and Web2Messenger to create a live support
script, since this is my first attempt at using jQuery i am not
surprised i need help. I got as far as sending the request but using
tamperdata (firefox plugin) i checked if the request was going through
and it wasnt.
[code]
$(document).ready(function(){
$("#submit").click(function(){
//Validation
if(hasError == false) {
$(this).hide();
$("#form div.button").append('<img src="/images/bullet_16.jpg"
alt="Loading" id="loading" />');
var post = $("form").serialize();
$.ajax(
{
url: "http://www.web2messenger.com/WebSiNcH",
data: post,
success: function(data){
alert( "Done!" );
}
}
);
}
return false;
});
});
[/code]
This isnt the first time i have worked with javascript, but i havent
done much if you need to see the script in action just go here
http://websinch.com/support/