right now this code writes out the subsites title and relativeurl, but it also includes my title of my app, but i only want to display the subsites title and not title of the app also,
Any sugesstions what i should do? Here is my code
function execCrossDomainRequest() { var executor = new SP.RequestExecutor(appweburl); var queryUrl = appweburl + "/_api/SP.AppContextSite(@target)/web/webs?$select=Title,ServerRelativeUrl&@target='" +hostweburl + "'" ; executor.executeAsync( { url: queryUrl, method: "GET", headers: { "Accept": "application/json; odata=verbose" }, success: successHandler, error: errorHandler } ); } }) function successHandler(data) { $("#subSiteTitle").keypress(function () { var jsonObject = JSON.parse(data.body); var dataArr = $.makeArray(jsonObject.d.results); var resultArr = $.map(dataArr, function (item) { return { label: item.Title + " (" + item.ServerRelativeUrl + ")", value: item.ServerRelativeUrl }; });