Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The issue isn't so easily solved with fiddler, although it's a great tool. </p> <p>The issue I think is described here, and for now use the complete event. there are some issues that will be resolved in jQuery 1.5.1 See:</p> <p><a href="https://stackoverflow.com/questions/5061310/jquery-returning-parsererror-for-ajax-request">jQuery returning &quot;parsererror&quot; for ajax request</a></p> <p>as it was posted there,</p> <pre> complete: function (xhr, status) { if (status == 'error' || !xhr.responseText) { handleError(); } else { var data = xhr.responseText; //... } } </pre> <p>Although the interesting thing is - this works for me with jsonp data when I query amazon's service (code amazon was based on some other posting on the net I don't have the ref too) ala:</p> <pre> //resp is simple a placeholder for autocomplete's response which I will need to call on a global scope. var resp; var filter; $(document).ready(function () { //http://completion.amazon.com/search/complete?method=completion&q=halo&search-alias=videogames&mkt=1&x=updateISSCompletion&noCacheIE=1295031912518 filter = $("#productFilter").autocomplete({ source: function (request, response) { resp = response; $.ajax({ url: "http://completion.amazon.com/search/complete", type: "GET", cache: false, dataType: "jsonp", success: function (data) { //data[1] contains an array of the elements returned from the service. //use .map to enumerate through them. response($.map(data[1], function (item) { //debugger; return { label: item, value: item, id: item} })) }, data: { q: request.term, "search-alias": "videogames", mkt: "1", callback: '?' } }); }, minLength: 2, select: function (event, ui) { //$('#browseNode option:first').attr('selected', 'selected'); alert('selected'); }, open: function () { $(this).removeClass("ui-corner-all").addClass("ui-corner-top"); }, close: function () { $(this).removeClass("ui-corner-top").addClass("ui-corner-all"); } }); }); //this is the method that will be called by the jsonp request function updateISSCompletion() { alert('updateiss'); resp(completion[1]); } </pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload