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.

learn more… | top users | synonyms (2)

0
votes
2answers
17 views

I want a JavaScript process to have different permissions than the user that executes it

I want to have a page where the user can click a button executing a javascript process that can read and modify list records for a list that the user has no access to. Can a user execute a process ...
0
votes
1answer
28 views

Javascript execution delay until sp.js and ps.js loads

I am trying to get project list from my project portal using JavaScript. I wrote a script that should do the job: var projects; // Geting JS library responsible for Project API var script = ...
0
votes
0answers
9 views

SPServices Addattachment method, uploaded file invalid

I have tried to upload a file to a document library using SPServices. But the file is not getting uploaded properly. I have done research and found a way of uploading its still the same. The below is ...
0
votes
0answers
12 views

Create new Doc based on specific content type

I am using below method in anchor tag onclick to create new doc based on specific content type. CoreInvoke('createNewDocumentWithRedirect2', event, '[template URL]', 'http://[server]' + (ctx....
0
votes
1answer
24 views

Check user access to sites and lists

There is SharePoint's site with custom welcome page (which is a HTML page) designed to have custom navigation menu. Navigation urls are like this: https://spsite1 https://spsite2 http://google.com (...
0
votes
0answers
25 views

Best way to get item count by filter in a big list

I have a list of ~11000 items. Now lets say I have a multi-choice field in that list, and would like to find out how many items of each choice there are (using REST API or JSOM). Multi-choice fields ...
0
votes
0answers
29 views

Sharepoint REST API - Is it possible to expand lookup column in list A to list B and get data with attachments of B at once?

I have a list A. In this list, I have a lookup column authorId. In author list, I have some data columns and one attachment. I need to get ifformations about both - I need data and attachment too. Is ...
0
votes
1answer
37 views

SPO - Hosted Add-In: String was not recognized as a valid DateTime

I want to save data in format: dd/mm/yyyy to SPO server. My regional settings is set to alert(regionalSettings.get_localeId()); //1026. How to solve this problem ? This is my code: oListItem....
0
votes
0answers
15 views

Querying cascading Lookup fields (Lookup of Lookup)

To simplify my issue, lets assume that I have three related lists with three columns for each and a lookup field List 1: ElementList (ID, Title, Owner) List 2: ProcessList (ID, Title, Owner, ...
0
votes
1answer
20 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: <!---->...
0
votes
0answers
16 views

New Team Site Dash Error

Problem: I create a new team site (as I have done many times). The new one created looks a little different. Over the SharePoint in the corner ">>>>" is there. It looks to me like an ...
0
votes
1answer
17 views

Is it possible to get the value of a person-type field from my custom list without it being drawn in on my page?

Is it possible to get the value of a person-type field from a custom list before hiding it with the $ (document) .ready method? I really need to get that value and I do not want the field to be seen ...
0
votes
1answer
24 views

Trying to use Content Editor WebPart

I have been trying to use content editor web part to have when someone trys to open a PDF in my document library, It wont open in same window.... However i do not know how or where to enter the Java ...
1
vote
1answer
44 views

Get Access token for update list item using REST API and JavaScript application

I need to update an item on a list using REST API and JavaScript application from this site I try to use this code: url: http://site url/_api/web/lists/GetByTitle(‘Test')/items(item id) method: POST ...
0
votes
1answer
14 views

Loader div not showing after clicking yes on confirmation box

I have a sharepoint site in which there is a javascript confirmation alert on which, on yes click, I'm showing a div which has the loading image via jquery and hiding it when the function is completed ...
0
votes
1answer
24 views

REST API JavaScript - How to retrieve a file from a nested folder in document library by file ID?

I use an ajax call on: http://<:site>/_api/web/GetFolderByServerRelativeUrl(<:DOCUMENT_LIBRARY_NAME>)/Files But I need something like: http://<:site>/_api/web/...
0
votes
1answer
33 views

JSOM Execute Query Synchronous

I have some JS methods that create site columns and add it to site content types. These are working fine if you use them once. But if I want to add a bunch of columns (within an array) it's not ...
0
votes
1answer
36 views

I am following script with show more button

I'm just working with the "I am Following" script from Codeplex. One of the requests was to not show all the followed sites at once. So the best solution would be a "Show More" and a "Show Less" ...
0
votes
1answer
31 views

REST API Javascript - How to get an Id of document from a document library?

How can I get an Id of document from a document library using JavaScript REST API? I have an ajax call: http://site/_api/web/GetFolderByServerRelativeUrl('DOCUMENT_LIBRARY_NAME')/Files And it ...
0
votes
0answers
8 views

Under the init.js AddEvtHandler method is not working [closed]

Under the init.js AddEvtHandler method is not working. It showing error as script block with sharepoint 2013.
0
votes
0answers
10 views

Read fragment indentifiers from KQL

I have a treeview in SP Online where each node represet a link. Each link has an format https://...siteColl#k='search query from textbox'#l=1033 , but I want to use the k= parameter in conjuction ...
0
votes
0answers
13 views

Programmatically Work With Access Database On Sharepoint

I know that it is possible to upload Microsoft Access Databases to a Sharepoint server. I am needing a way to store a large amount of data on Sharepoint so that I can use it to to customize parts of ...
1
vote
1answer
52 views

Sharepoint - JS Link - How to render search box in a custom list?

I was working with JS Link in Sharepoint and managed to render a custom list. Here's a brief extract from the code: context.Templates.View = RenderBodyTemplate; SPClientTemplates.TemplateManager....
0
votes
1answer
51 views

Javascript code not working in IE11

I have my JavaScript code in SharePoint site which is working only if we keep break point in my code in developer tools in IE. In chrome and Firefox it is working. $(document).ready(function(){ var ...
0
votes
0answers
23 views

SharePoint Easy Tabs V5 - The active tab does not match the currently viewed page

I have a master page that users will be directed to, which includes 10 tabs for users to get a more granular view at the content. The trouble I am having is that when a tab is selected, the active (...
0
votes
3answers
75 views

Using Javascript to access user profile image

I have a persons field in a list which displays the Users Name (Not userid/Account name) On another site within the same site collection I can retrieve this information but I need to query UPS and ...
0
votes
0answers
19 views

How to show google charts from multiple lists on single sharepoint page [closed]

Trying to display the google charts from multiple lists in a single page. I have used 2 script editor web parts one for LIST A and other for LIST B. Issue here is it is displaying graphs only from ...
0
votes
1answer
34 views

SPO - How to populate select field with options JSOM

I want to populate all choices from SP(ChoiceField) into html select field... This is my code: function pageLoad() { var holidayList = clientContext.get_web().get_lists().getByTitle("Holidays"); ...
0
votes
1answer
17 views

Displaying only duplicate items based on column value (e.g. Title)

Trying to figure out a way to Create a list of duplicate list items based on a column contained in such a list. In my example, it is the title column. First, I was thinking that I could create a ...
0
votes
1answer
35 views

Pulling in two list using javascript - sharepoint 2013

I am using javascript to pull in list information and display it. I need to pull in another list from another site collection. Both lists have to show up on the same page, each it there own sections....
0
votes
1answer
36 views

How to get role definition for current user SharePoint 2013

With the following script I am retrieving all role definitions but how can I retrieve role definitions for current user only? <script language="ecmascript" type="text/ecmascript"> var ...
0
votes
1answer
33 views

HTML shows � symbol when rendered on Chrome

I created a .HTML file in SharePoint Document library using JSOM. when I view the HTML file in google chrome it shows � symbol at start of each tag. below are the codes that I used to create HTML file ...
0
votes
1answer
25 views

How to update List Items rating from the custom List View Web Part

I have created a custom List View Web Part and it is working fine. I have enabled rating control in the List. I have get the rating for the List Item. Now I want to update rating manually from my ...
1
vote
0answers
30 views

Redirection not working in IE sometimes

I need to override the redirection functionality of "Finish" button in Survey. I have included Survey.js into my site. The code is: $(document).ready(function(){ var publishButton = $("input[id$=...
0
votes
0answers
20 views

SharePoint List View get condition

I am passing view name and list name to get sharepoint list item data using javascript. In my view group by condition is set on 2 column. I want to display data by group column pro grammatically . How ...
0
votes
0answers
18 views

SP.WebProxy.invoke: Unsupported scheme-port combination

My call to SP.WebProxy.invoke returns with a "Success", but the message that is returned is: {"d":{"Invoke":{"__metadata":{"type":"SP.WebResponseInfo"},"Body":"The scheme-port combination is not ...
-2
votes
2answers
42 views

Random Javascript is causing errors

There is a site wide change that I cannot figure out the root cause of. I am getting the following errors on every page in the site collection: Upon inspection of the error taking place at "...
1
vote
1answer
25 views

CSR mulitple Taxonomy fields

I have multiple Taxonomy fields in my code and only one column shows up properly and the rest just don't appear. I'm Using CSR and JS-Link to modify my New Form in SharePoint 2013 on Premise and all ...
0
votes
2answers
17 views

Workaround to add repetitive controls to a SharePoint form without InfoPath

I'm trying to create a SharePoint form with repetitive controls.I'm a SharePoint Online user(Office 365). I'm looking for a workaround to do this without using InfoPath or any third party software ...
0
votes
1answer
22 views

Get Lists from webid

This is my Code to get Lists by url: this.getListsOfWebByUrl = function (Url) { var clientContext = new SP.ClientContext(Url); var oWebsite = clientContext.get_web(); var ...
0
votes
2answers
40 views

Get selected view name from list view web part in client side rendering JSLink

I have created one page and added a list view web part on it. I have added JSLink in Web part properties for client side rendering. All is working well but I want to get the currently selected View ...
0
votes
0answers
28 views

Cross Domain REST Calls Authentication and Forbidden result

Can someone provide some guidance on how to do a cross-domain REST call (to another non-SP domain) from SP. When I run the code below, the following happens: The cross domain module is successfully ...
1
vote
1answer
32 views

Using calculated columns to create a button for each list item that launches a Javascript function passing column values as the parameter

The Issue I have struggled create a calculated column in my SharePoint list that renders a button with an onclick event to start a javascript function while passing two column values from the list ...
0
votes
2answers
42 views

Need to grab address column and pass it to an array

My script uses an array like this: var locations = [ ['Location 1 Name', 'New York, NY', 'Location 1 URL'], ['Location 2 Name', 'Newark, NJ', 'Location 2 URL'], ['Location 3 Name', '...
1
vote
3answers
28 views

Create Connectable WebParts with html and JS

With C# it s possible to create Webparts with Connection Provider and Connection Consumer. So you can exchange data between 2 Webparts on a page. Is this also possible with html and javascript? ...
1
vote
1answer
38 views

Alert me How to display word document in browser window?

We need to display a word document inside the browser as part of our SharePoint application. But when we tried to achieve this, it is always showing a popup with options like Open, Save and Save As. ...
0
votes
1answer
28 views

How to reference JavaScript file from web application root from display template

I have a display template that uses a javascript file which I would like to have located at the root of my site (web application root). Using $includeScript how can i refer to the file at this ...
0
votes
2answers
36 views

Caml Query to search a SharePoint List alert if result is empty

The code below works on success, or if there's a serious error (like the name of the list being wrong) but if the item is not found I receive no error and it does nothing. I just want an alert if the ...
0
votes
1answer
40 views

Is it possible to read the content of a SP List from a non sp site?

We use SP as our database but our actual website is elsewhere (same network). I need to display the content of a list in a datatables.net control...it only accepts JSON...I've tried reading the RSS ...
0
votes
0answers
9 views

Change Visio web access web drawing url with javscript

Im quite new to SharePoint and Visio as well but Im trying to change Web Drawing URL property with Javascript. Is this possible? Seen examples with CSOM, but not Javascript.