title: How to use variable for url parameter in jquery ajax call?
body: <pre><code>$.ajax({
          type:"POST",
          url:"hostname/projfolder/webservice.php?callback=statusReturn&amp;content="+str_table,
          contentType: "application/json; charset=utf-8",
          crossDomain:true,
          dataType:'jsonp',
          success:function statusReturn(data)
              {
              alert("in success");
              var parsedata=JSON.parse(JSON.stringify(data));
                  var stats=parsedata["Status"];
  
              if("1"==stats)
              {   
                  alert("success");
              }
              else
              {
                  alert("failed");
              }
              }
          });
  </code></pre>
  
  <p>How can I display the contents of the "url" parameter in an alertbox to check what the parameter is containing?</p>
  
  <p>It does not even enter in the "success" parameter. Please suggest me how can I do that.</p>