title: jQuery and cross domain with jsonp - please help
body: <p>I am trying out jsonp with jQuery. I found many examples on the web and I believe my code is correct, but its still not working for me.</p>
  
  <p>My web service:</p>
  
  <pre><code>using System.Web;
  using System.Web.Script.Services;
  using System.Web.Services;
  using System.Web.Script.Serialization;
  
  namespace App_Code
  {
      /// &lt;summary&gt;
      /// Summary description for WebService
      /// &lt;/summary&gt;
      [WebService(Namespace = "http://tempuri.org/", Name = "WebService")]
      [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
      [System.ComponentModel.ToolboxItem(false)]
      // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
      [ScriptService]
      public class WebService : System.Web.Services.WebService
      {
          [WebMethod]
          [ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)]
          public string GetAd()
          {
              var json = new JavaScriptSerializer().Serialize(new
              {
                  Prop1 = "some property",
              });
              string callback = HttpContext.Current.Request["callback"];
              return string.Format("{0}({1})", callback, json);
          }
      }
  }
  </code></pre>
  
  <p>Client-side:</p>
  
  <pre><code>$(document).ready(function () {
      alert('Loading...');
  
      $.ajax({ url: 'http://mediaserver/WebService.asmx/GetAd?callback?',
          data: {},
          success: function (json) {
              alert(json);
          }
      });
  });
  </code></pre>
  
  <p>Firebug shows this is a success, but I am getting null from the alert. I have my webservice in iis7 locally and I am testing through my debug in my client project.</p>
  
  <p>I need to get cross-domain working.</p>
  
  <p>Please help.</p>