Jquery
3 TopicsjQuery and SharePoint
this is kind of a weird one. what i'm looking to do is change the state of multiple items in a dropdown list depending on the current selection but i'm having trouble getting a hold of some identifier like id, name, class of the combobox so i can use it in the jquery selector for that box. no luck. when i go into F12 in Edge while in the SP site and look at the Elements tab, all i see are a bunch of tr and td tags that surround the box with the current selection listed in a span tag. not what i need. can this be done?? note: i uploaded my jquery file into a content editor for the page that contains the combobox. thanx for any assistance.2.5KViews0likes3CommentsAccessing SharePoint List via external html page using .ajax function but getting CORS error
I need to query SharePoint List from simple javascript, using .ajax call. I need to use a AD user credentials who will have read permissions to the SharePoint Site. I am doing something like this but getting a lots of errors. Any suggestions. var user = "****@AD2012.***"; var passwordtemp = "**********"; $.ajax({ url: siteURL + "/_api/web/lists/GetByTitle('"+ listName +"')/items" + filterQuery, method: "GET", headers: { "Accept": "application/json; odata=verbose" }, crossDomain: true, beforeSend: function (xhr) { xhr.setRequestHeader('Authorization', make_base_auth(user, passwordtemp)); }, success: function (data) { // Doing something with data .. }}, error: function (data) { failure(data); } }); } // function ends ..2KViews0likes0Comments