how to get reply from jQuery.get request

Posted by BCS on Stack Overflow See other posts from Stack Overflow or by BCS
Published on 2010-06-03T01:20:55Z Indexed on 2010/06/03 1:24 UTC
Read the original article Hit count: 167

Filed under:
|
|

I have a page that uses the following to submit a AJAX request:

function oc()
{
  jQuery.get(
    "http://somewhere.com:5001/ajax/options/",
    jQuery('#selectform').serialize(),
    function(data,statusm,xml){
      // I got nothing!!!
      return;
    }
  );
}

If I make the request manual from the address bar, things work. And when I make the request from the JS I can see via logging that the server side is working correctly, but in the call back, I can't seem to get the contents of the reply.

What am I going wrong?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX