Hi,
I preferred the below link-
http://zimmergren.net/technical/sp-2013-searching-in-sharepoint-2013-using-the-rest-new-apis
and followed all the step which has mentioned in that link. But I got the below error.
{"statusText":"","status":0,"responseURL":"","response":"","responseType":"","responseXML":null,"responseText":"","upload":{"ontimeout":null,"onprogress":null,"onloadstart":null,"onloadend":null,"onload":null,"onerror":null,"onabort":null},"withCredentials":false,"readyState":4,"timeout":0,"ontimeout":null,"onprogress":null,"onloadstart":null,"onloadend":null,"onload":null,"onerror":null,"onabort":null}
here I have changed some code -
Orignal Code - SPSearchResults.url = _spPageContextInfo.webAbsoluteUrl + "/_api/search/query?querytext='" + query + "'";
Modified code - SPSearchResults.url = "https://myprofile.bt.com/" + "/_api/search/query?querytext='" + query + "'";
Please let me know the reason and do we need to add any Js in my project. If yes please provide the java script file for that.
And also I want to know about the below tag
_spPageContextInfo.webAbsoluteUrl
Is this the server name ?
Regards,
Manoj
- Edited by Manoj 1982 Wednesday, May 20, 2015 11:28 AM