function LoadLISSearch()
{
//
//var call =
$.ajax({
async: false,
url: "url"
+ "/_api/Web/Lists/GetByTitle('SearchWidget')/items"
+ "?$select=*"
// + "&$expand=ows_Name1"
+ "&$top=5000"
+"&callback=?"
,
type: TYPE, //"GET",
dataType: "jsonp",
contentType:CONTENTTYPE, //'application/json; charset=utf-8',
//cache: false,
crossDomain: true,
//xhrFields: { withCredentials: true },
// beforeSend: function(xhr){
// xhr.setRequestHeader("Access-Control-Allow-Origin" , "*");
// xhr.setRequestHeader("Access-Control-Allow-Methods" , "GET,POST,PUT,DELETE,OPTIONS");
//xhr.setRequestHeader("Access-Control-Allow-Headers" , "Content-Type, Access-Control-Allow-Headers,Authorization, X-Requested-With");
// },
headers: {
Accept: "application/json;odata=verbose",
},
error: function(error){
alert(JSON.stringify(error));
}
,
success: function(data){
alert("s");
},
complete: function(xhr, status){
var d= xhr.responseText;
alert(d);
alert(status);
}