Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [javascript]

Javascript is a dynamic computer programming language, most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user, control the browser, communicate asynchronously, and alter the document content that is displayed.

0
votes
1answer
1k views

uncaught syntaxerror unexpected identifier

I am trying to make some tabs that pull a webpart from the page and place the part in the tab, using Jquery's easyUI tabs. However, I am getting a syntax error in the following code: <!---->...
1
vote
2answers
1k views
0
votes
1answer
1k views

how to change Sharepoint 2013 Default Sign-in Page and create Custom Page (normal.aspx) which redirects users to Http handler(test.ashx page)

Sharepoint Default Sign In page should redirect to my Custom HTTP Handler test.ashx code. I configured multiple claim authentication in sharepoint server 2013 and I need to by pass multiple ...
1
vote
1answer
1k views

Sharepoint GetUserProfilePropertyFor not returning any results

I am trying to get the SharePoint 2013 API for GetUserProfileProperty, when I put the below url into a browser it works finr, however when i run the below code, I get no result (I do get a return, but ...
1
vote
1answer
1k views

disable people picker 2010

I am using following "code" to disable people picker in custom edit form: $("div[id$='_UserField_upLevelDiv']").attr("contentEditable",false);//Disabling People picker $("span[id$='_UserField']")....
0
votes
0answers
10 views

SP Online rest API datetime-column value inconsistency And how to compare the dates

https://social.msdn.microsoft.com/Forums/Windowsserver/en-US/5498c43c-7124-4be5-9627-ea23bd246cba/sharepoint-rest-api-datetime-column-values-inconsistency?forum=sharepointdevelopment&prof=required ...
3
votes
1answer
1k views

How can I get an image map to highlight various parts with mouse hover?

I am using SharePoint 2010 and I'm trying to use javascript and html to create an image map that highlights different sections of the image depending on where the cursor hovers over. In this case I'm ...
1
vote
2answers
78 views

Is using an “async : wait” construction a common prectice for SP developers?

I'm just starting: (1)to code (2)for SP (3)with javascript(3) ... and my first choice was a JSOM. Once i've been trying hard to get a value from executeQueryAsync call and set it to local/global ...
1
vote
2answers
1k views

Use javascript/jquery to see if items in list are due soon in Sharepoint 2013

I am trying to determine by date if an item is due. In my use case, my user will create an item with a date in the following format (MM/DD or 06/15). Now if the date the user chooses will fall in the ...
0
votes
2answers
38 views

Front-end connection between two site-collections

I have two site collections on the same farm (on-prem SP 2016), but different domains (business.* and projects.*). I have full control on both sites. And yet, I cannot access one from the other. I ...
0
votes
1answer
20 views

How to get specific listview data with javascript?

I got a list and a list view. But I want to retrieve only particular list view's data. How can i do that with javascript ?
1
vote
0answers
16 views

SharePoint 2013 - Hide empty column with Javascript in grouped table

I have a table with several columns, not all columns contain data. So I've been using this script to hide them: $(document).ready(function () { $('table.ms-listviewtable').each(function(a, tbl) ...
0
votes
0answers
15 views

Get site owners of site collection using javascript

Is there a way to get the list of site owners from a site collection or subsite using JavaScript? I want to create a dashboard when we can just place the URL to the site and have a button where it ...
0
votes
1answer
1k views

Add a “add Link” to a Content Editor Web part

I have used a Content Editor web part to display a scroll-down list of links. The code I use is similar to this: <select id="mySelect" jquery110205452414735412181="1" ...
3
votes
1answer
66 views

Inject javascript to a list without using third programs -Sharepoint online

I have a simple form like this: I want to know, how can I import some javascript function to that list?
0
votes
1answer
2k views

Get data from multiple lists using REST API

My requirement is: To pass listnames as an array to a method and concatenate the result after each success. The problem is I'm not able to concatenate the result from the previous ajax call ...
0
votes
3answers
1k views

How to encode spaces in sharepoint 2013 search rest api url?

In a sharepoint 2013 search rest url, I have multiple columns to filter on, but some of the values have spaces, but it seems spaces are used to delimit the filters. How can I encode spaces? See this ...
2
votes
1answer
2k views

Show persistent status bar + form to update easily

I want to keep informed the end-users of my SharePoint site of any issue or relevant informations. Naturally, I would like to do so by filling HTML elements (input and select tags). Hence displaying a ...
0
votes
2answers
36 views

how to set the minimum length of a single line text in sharepoint online?

I have already set the maximum length, but now I need the user to enter not less than a certain amount This is the script I'm using : function PreSaveAction() { var control = getElementByID("IBAN(24 ...
1
vote
2answers
1k views

Set Content Type of New List Item Using JSOM

I am trying to add folders to a library using JSOM. I need to set the content type of the new library items, however I am not finding the documentation on how to do that anywhere. var itemCreateInfo ...
1
vote
3answers
1k views

Add javascript in master page sharepoint 2013 using wsp solution file

I added user control and then empty module to reference user control inside SharePoint 2013 master page but it is not working. Control Id="AdditionalPageHead" Sequence="150" ControlSrc="~/...
0
votes
1answer
2k views

CSR Error: Cannot read property 'style' of null

Trying to color rows based off of the value of the "Status" column However I cannot get it working as it keeps giving the following errors: TypeError: Cannot read property 'style' of null ...
0
votes
1answer
5k views

SPService GetListItems with CAML : can't get the example to work with status giving error

I am new to SPServices and trying start with example GetListItems. Below is my code $(document).ready(function() { GetTasks(); }); function GetTasks() { var method = "GetListItems"; ...
3
votes
2answers
1k views

The value of the property 'MSOTlPn_ShowToolPane2' is null or undefined, not a Function object

I have a problem with SharePoint 2010 and Internet Explorer 11. The following error message appears when I try to open the webpart menu. In Internet Explorer 8 the wepart menu works as expected: In ...
0
votes
1answer
48 views

Auto populate column data from one list form to another list form in SharePoint 2013

We had two lists in SharePoint 2013. One list (Report) is for the report and another list (Access) for access. First list "Report" consist of a different column, one column name as "Request access" ...
3
votes
1answer
599 views

Infopath form add custom button

I have a SharePoint 2010 list and I customize the form using InfoPath, now I add a content web part to edit form to display a custom button in the form ribbon like in this form from another list but ...
0
votes
3answers
593 views

How to load multiple item

I'm using SharePoint 2010. I'm trying to load mutliple selected item from a view in a ribbon on a custom list. I can have the selecteditems but when i try to display a value for an item, i've an ...
1
vote
1answer
33 views

Get unique value using Sharepoint CAML Query JavaScript

I've this code below: function ReceivePages(FirstFolderProd, FirstFolderWithoutSpaceProd, GetTagFolder){ var restUrl = "https://tenant.sharepoint.com/sites/site/Negocio/OfertaParticulares/...
1
vote
2answers
600 views

How to create a Request Http “GET” to url

I want to make a request http Webservice API to https://sms.vietguys.biz/api/u=[user]&pwd=[password]&from=[Title]&phone=[phonenumber]&sms=[ContentSMS] using javascript. Can I do ...
0
votes
0answers
18 views

Get item from external list field with ajax - SP2013

I have a list and some columns retrieve value from external list. How to get all items from that list(attached img) with REST I'm trying like this function traerSolicitudes() { var lista = "...
0
votes
0answers
7 views

Get ADFS claims using JavaScript

Anyone using ADFS with 2016. We would like to get users claims in a SPFX webpart or with JavaScript. Can't find anything on the topic
1
vote
3answers
2k views

Unable to set value of dropdown on page load

I am using SharePoint 2013 online and I have created a form for my list using Infopath 2013. It has a combination of text fields and dropdowns. I am able to set the default value of text field using ...
0
votes
1answer
1k views

Rest API authentication

I need to use the SharePoint Rest API from a custom JavaScript application (outside from SharePoint). How can I authenticate the user to use the Rest API. I can not deploy a SharePoint app, I need ...
1
vote
1answer
1k views

Getting regional settings of current user using JSOM or JavaScript

I want to fetch the regional settings of currently logged in user NOT the current web. Reason being, the regional settings and language settings is pushed through user profile service (or user might ...
0
votes
0answers
12 views

SP19: Branding a Link

Is there a way to brand a link to would automatically be added to every pre-existing site collection home page and any new site collection created? I want to add a link to every team site so ...
0
votes
0answers
13 views

Grouped List coloring with js link not working

Based on this link in SharePoint2016 i tried to color a list. I failed. First everything was green. Then yellow. Now no longer work at all now no matter what i do (even using previous script). What ...
1
vote
2answers
2k views

HTTP 403 Error when using REST to update Lists

I'm having a problems using REST to POST to a SharePoint List named Employees. I can get my code to GET data from the list, but when I try to POST data to the list it does not work. It gives me an ...
0
votes
1answer
1k views

How to Sign-In with Sharepoint from the Javascript?

I used the following code to access the sharepoint from javascript var soapDataString = "<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/...
0
votes
1answer
1k views

How to Import Excel/Spreadsheet into an existing Sharepoint List using Javascript

I would like import some data of an excel sheet to existing list. I see that this can be done using power shell or by using C#. Can somebody help me in doing this using JavaScript by adding a web ...
2
votes
2answers
1k views

Prerender executing twice

I have some prerender code that is being used to get information from another list to add into the display of the main list. I am puzzled - the prerender code executes twice. (function () { var ...
1
vote
1answer
1k views

Clear multi-value lookup via Jquery SP 2013

I am trying to clear a multi value lookup field using javascript when an item is re-edited. I have tried all the following combinations without success $("input[id^='Test'").removeAttr(); $("input[...
0
votes
1answer
37 views

Calling a script through a button added by jQuery

I have a jQuery which runs through all my divs with a "code" class and prepends a button to them. The button is supposed to call another function to copy the content of that div to the clipboard. ...
3
votes
1answer
4k views

Uncaught TypeError: Cannot read property 'toString' of undefined

I have implemented the jQuery UI autocomplete functionality on a input field using JSLink. It works like a charm when I test it using Internet Explorer 9, 10, 11 and Chrome. Some users are however ...
0
votes
2answers
20 views

How to trigger SP's default form validation without actually submitting the form?

I'm aware that I could simply override the SaveAction, and provide my own validation for all of the fields, but is there a way to trigger SharePoint's default form validation without actually ...
0
votes
1answer
17 views

Function not called in conditional statement

I have a function that generates a table of contents. It works perfectly. However it also works when the page is in Edit Mode and causes a LOT of havoc. For that, I found the solution in the second ...
2
votes
1answer
122 views

How to Remove previous and future month date from calendar view so only current month is displayed

I am very new to the SharePoint and hope people can help. I have setup a calendar and was able to apply CSS to make the calendar into weekday only. http://www.c-sharpcorner.com/UploadFile/fc34aa/hide-...
3
votes
2answers
12k views

How can I pass a Parameter via Query String to populate a lookup field on a New Item Form/DVWP?

I have two lists: List A: Products List B: Requirements I'd like to have a nice Create Requirement page launched from the Product Listing page. I have a DVWP/Multi-Item View displaying all Products....
2
votes
4answers
22k views

Schedule a workflow to run everyday

I want a workflow to run each day at 2.00 AM. Is there a way to achieve this? I found many posts but didn't work.
0
votes
1answer
25 views

Make web part compatible for IE11

I have a web part that works for every browser but not in IE. It seems to have troubles with "startsWith" which is a function that is not supported in IE11, fair enough. But when I changed the code ...
2
votes
1answer
770 views

How can I find out which site use JavaScript, programmatically?

enter code hereI am trying to conduct an audit on all the sites in the farm as to which use JavaScript. I assume that parsing for the script HTML tag would be the best way, but I don't know of a ...