How to use type: "POST" in jsonp ajax call

Posted by MKS on Stack Overflow See other posts from Stack Overflow or by MKS
Published on 2010-12-22T10:25:42Z Indexed on 2010/12/24 20:54 UTC
Read the original article Hit count: 239

Filed under:
|

Hi Guy,

I am using JQuery ajax jsonp. I have got below JQuery Code:

 $.ajax({  
        type:"GET",        
        url: "Login.aspx",  // Send the login info to this page
        data: str, 
        dataType: "jsonp", 
        timeout: 200000,
        jsonp:"skywardDetails",
        success: function(result)
        { 
             // Show 'Submit' Button
            $('#loginButton').show();

            // Hide Gif Spinning Rotator
            $('#ajaxloading').hide();  
         } 

    });  

The above code is working fine, I just want to send the request as "POST" instead of "GET", Please suggest how can I achieve this.

Thanks

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jsonp