Hi I am trying to get item from content type using your below link
http://www.c-sharpcorner.com/UploadFile/93cb27/get-search-results-in-sharepoint-hosted-app-using-javascript/
So far i got the some result but can you explain more how to bind that result on div i have some more property on that.
Prasham SabadraPosted Feb 14, 2015, 11:41 PM
Please have take look once on this articl also - http://blogs.perficient.com/microsoft/2014/01/sharepoint-2013-search-javascript-csom-primer/
nice one :)
Prasham SabadraPosted Feb 14, 2015, 11:36 PM
Glad to know, code worked for you :)
Please set the "SelectProperties" of KeywordQuery class.
Please have a look once at https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.search.query.keywordquery.selectproperties.aspx
DEV MJPosted Feb 14, 2015, 4:00 PM
Prasham SabadraPosted Feb 11, 2015, 2:02 AM
ok. Please have sample code like
function onQuerySuccess()
{
$("#resultsDiv").append('
$.each(results.m_value.ResultTables[0].ResultRows, function () {
$("#resultsDiv").append('
$("#resultsDiv").append('
$("#resultsDiv").append('
$("#resultsDiv").append('
$("#resultsDiv").append('
$("#resultsDiv").append('
$("#resultsDiv").append('
}
Reference : https://code.msdn.microsoft.com/Query-Search-with-the-649f1bc1/sourcecode?fileId=65976&pathId=912880959
One more reference where all the types of APIs are listed, nice article, please have a look once : https://msdn.microsoft.com/en-us/library/office/dn423226.aspx
Please let me know if in case any trouble :)
DEV MJPosted Feb 10, 2015, 9:16 AM
Prasham SabadraPosted Feb 10, 2015, 12:40 AM
Please check following link once
http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2013/04/09/how-to-query-sharepoint-2013-using-rest-and-javascript.aspx
I hope you will get the answer.
Please let me know if you have more query.
Thanks!