problem with $post() and firefox

problem with $post() and firefox

I apologise if I have already sent this as I'm new to this site and I thought I had posted this once but cannot see my original post.

Here we go again

I am new to php and ajax. I am trying to serialise the data in a form id = "subForm" and send then send the data via the $post() . The solution works fine in IE 7.0 but in firefox the data that is echo ed back from the file "http://localhost/registrationAjaxChecker.php" is not received and the callback function is not evoked. I have also tried an example from the book javascript (the missing manual chapter 11) this example also works well in IE but not in firefox. In firefox the returning data is just returned to a new url with the name "http://localhost/registrationAjaxChecker.php".

Can anybody help?

I have firefox 5.0

// Javascript code

var inData = $('#subForm').serialize(); //sending whole form
$.post('http://localhost/registrationAjaxChecker.php', inData, function(data) {

// call back data handled here by anonymous function
return false;

});
    • Topic Participants

    • bryan