1 2 3jQuery.extend(true, window.EUPORIA.fn.articoli, { 4 5 cercaArticolo: function (opts) { 6 7 var defaults = { 8 onSuccessCallback: '', 9 onErrorCallback: '', 10 filtri: [] 11 }; 12 13 opts = jQuery.extend(defaults, opts); 14 15 jQuery.ajax({ 16 type: 'POST', 17 contentType: 'application/json; charset=utf-8', 18 url: '/ws/EUPORIA/Articoli.asmx/CercaArticolo', 19 dataType: 'xml', 20 data: JSON.stringify({ Filtri: opts.filtri }), 21 async: true, 22 success: function (data) { 23 if (typeof (opts.onSuccessCallback) == 'function') { 24 opts.onSuccessCallback.apply(jQuery(this), new Array(data)) 25 } 26 }, 27 error: function (result, result2, result3) { 28 if (typeof (opts.onErrorCallback) == 'function') { 29 opts.onErrorCallback.apply(jQuery(this), new Array(result, result2, result3)) 30 } 31 } 32 }); 33 34 } 35 36});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.