title: Yahoo JSONP Ajax Request Wrapped in callback function
body: <p>I understand that I can make a crossdomain ajax call with jquery, .ajax, and jsonp. I am calling the yahoo stock quote api. Everything is working and the result is returning (I can see using Fiddler.) The problem is I get a js error YAHOO is undefined. I think its having problems because the JSON is formated within a callback function so its not correct json syntax. What can I do to fix it? Thanks! Here is the code:</p>
  
  <pre><code>     $.ajax({
              type: 'GET',
              dataType: 'jsonp',
              jsonp: 'callback',
              jsonpCallback: 'YAHOO.Finance.SymbolSuggest.ssCallback',
              data:{
                  query: request.term
              },
              url: 'http://autoc.finance.yahoo.com/autoc',
              success: function (data) {
                  alert("yes");
              },
              error: function (xhr, ajaxOptions, thrownError) {
                  alert(xhr.status);
                  alert(thrownError);
              }
          });
  </code></pre>