How to use type: "POST" in jsonp ajax call
- by MKS
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