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
3answers
135 views

Sharepoint site : Javascipts not working

I have a sharepoint site . The javascripts seems to be working only for my home page . If i naviagate to any other pages , the javascripts are not getting executed . I observed the behavior in chrome ...
0
votes
1answer
26 views

getting length of list after caml query

var clientContext = new SP.ClientContext(siteUrl); var oList = clientContext.get_web().get_lists().getByTitle('Privacy Statements'); var camlQuery = new SP.CamlQuery(); ...
0
votes
1answer
30 views

Whats wrong with my query

var camlQuery = new SP.CamlQuery(); camlQuery.set_viewXml('<Where><Eq><FieldRef Name="IsActive"/><Value ...
2
votes
3answers
380 views

Set default value in people picker javascript/jquery

I want to set current logged in user to people picker by javascript. I can retrieve the value of user(lets say in var user).But how to set it to people control. Any help is much appreciated.
0
votes
0answers
20 views

get column from a list and put in an array

Is there anyway to get a whole column from a list and put it into an array like you would get a list item like so : var listItemEnumerator = collListItem.getEnumerator(); while ...
0
votes
0answers
20 views

Dilemma on pushing scripts files into SharePoint

As per MSFT recommendation best place to keep Scripts(.js file) into Document Library on that site collection, which also suited my application till now. Earlier we used to have 10 site collections ...
0
votes
1answer
58 views

Javascript for drop down list

I'm trying to create some JavaScript that will identify two matching drop down lists and send a pop-up alert. The alert would state "You must select one schedule per rank.". It would be nice to have ...
0
votes
1answer
73 views

SessionStorage caching when getting items from a list

SP.SOD.executeFunc('sp.js', 'SP.ClientContext', sharePointReady); var listTitle = []; var listUrl = []; var listIsActive = []; var listOrder = []; function sharePointReady(){ var siteUrl = mysite; ...
1
vote
1answer
30 views

Adding an array to sessionstorage sharepoint list [duplicate]

while (listItemEnumerator.moveNext()) { var oListItem = listItemEnumerator.get_current(); listTitle.push(oListItem.get_item('Title')); ...
3
votes
2answers
130 views

Sharepoint REST service

Is there any way of reading the documents names of a Document Library using JavaScript from a web application that is not hosted in SharePoint? by the way, my requirement if for SharePoint 2010 not ...
0
votes
1answer
17 views

get whole item from list not just individual letter

I have this code var listTitle = []; var listUrl = []; var listItemEnumerator = collListItem.getEnumerator(); while (listItemEnumerator.moveNext()) { var oListItem = ...
1
vote
1answer
132 views

SharePoint Online REST API Image upload AJAX

I'm trying to upload an image to SharePoint using native JavaScript/jQuery - NOT SP.RequestExecutor. I've cracked the authentication issue, nice and easy, so now it's just a case of working out how ...
1
vote
1answer
27 views

Output url from a list javascript

I have this code which gets the items from a list and outputs them in an alert, however with urls it inputs [object object]. How can I make it print out the URL or the description var siteUrl = ...
0
votes
2answers
57 views

Javascript works when on edit page but not when page is published

I have a page on my sharepoint site, when i'm on the edit page the javascript works however when I have published the page, the javascript doesn't work. I have added the link to the javascript file in ...
2
votes
1answer
62 views

Get MySite URL using ECMA

I am trying to get the URL of the logged in user's Personal site from another site collection. I am working on SharePoint 2013 online and using ECMA.
1
vote
2answers
28 views

Accessing Webservice from SharePoint 2010

My webservice is hosted on one domain and my SharePoint site on another domain. I wanted to access my web service methods from client script (in SharePoint). What I am doing is Added reference of ...
0
votes
1answer
32 views

Display a single item from list in main site to subsite

I want to display a single(filtered) item from a list on my main site, to the homepage on a subsite. I've initially tried the CQWP but it was to limiting when it came to what fields it displayed by ...
1
vote
1answer
95 views

groups.getByName(groupname) is undefined

I have copied some snippets of code from here to test if a user belongs to a certain group, I am using Sharepoint 2010, however I am getting an method is undefined error. I am making sure that sp.js ...
0
votes
2answers
29 views

I need to filter a list with a 'Time' column so that user can see his created items in the list when that day appears?

I need to filter a list with a 'Time' column, so that user can see his created items in the list when that day appears? It should be for an AMPM view , Day of the week and Which week's day of the ...
5
votes
1answer
112 views

How configure Navigation Inheritance when create site with Rest API?

I wonder how do I keep the navigation bar of the parent site when I create a subsite. Below is the code I'm using to create the subsite and thought it might be some parameter that I could use to do ...
3
votes
1answer
202 views

Using SharePoint 2013 Cross-Domain Library in a simple web page: is it possible?

I have a web page hosted on a server, say at http://SVR1/path/index.html, and I would like to access some list items in a on-premises SharePoint site hosted on another server, say at ...
0
votes
2answers
86 views

How to get the count of list items using javascript?

I want to count the list items using javascript
2
votes
1answer
73 views

Suppress Ribbon Menu Auto Exanding

Working in a view for a Document Library I enabled "inline-editing" and discovered that as any input-element receives focus the documents-ribbon-menu auto expands. This behavior is undesirable so my ...
0
votes
2answers
77 views

Jquery to display date in MM/DD/YYY in sharepoint client object model [closed]

In My sharepoint list i have a Duedate if type DateTime.Using Client object model when we fetch the value from this Field, it is displayed in the below format(Mon Jun 23 GMT+0530 2014).How to convert ...
0
votes
0answers
35 views

How to pull property and auto-verify/populate?

In SP2010, there was a "Department" field where I had to extract the department of a user whose name was already verified/resolved in people picker. The code was: var invokeAfterEntityEditorCallback ...
0
votes
1answer
128 views

unable to get property 'getEnumerator' of undefined or null reference error

When i try to retrieve list items in sharepoint list using javascript i get the error my code <script src="/_layouts/MicrosoftAjax.js" type="text/javascript"></script> <script ...
0
votes
1answer
103 views

Reading excel cell value in Excel Web Access Webpart

I need to read excel cell value.Excel web access webpart is used to display excel file stored in a SharePoint 2013 document library.I need to use Jquery to read the data of excel file currently ...
0
votes
2answers
42 views

Change the text in menu items listed under Site Actions

I would like to find the best way to change the text of the title and description of some of the items listed under Site Actions. For example, say I wanted to change "More Options" to "Something ...
0
votes
1answer
26 views

Javascript not loading for users with Read permission

I got a Javascript on a Sharepoint 2010 site which is not loading for users with Read permissions. The Javascript is embedded in the site and users with Read permissions have access to it, but the ...
4
votes
1answer
93 views

SharePoint 2010 - Using REST to validate unique list item

I'm attempting to validate that a duplicate combination of staff (person/group field) + parent ID (lookup field) does not already exist in a list. Below you can see that I've added an ajax call to the ...
0
votes
1answer
193 views

Conditionally hide/require form column based on radio buttons

I'm sure it's been asked a million times, but after hours of searching and messing around I have been unable to find a solution...Hopefully someone here can help me? I have a SharePoint list that has ...
0
votes
2answers
75 views

loop through files in document set using javascript

is there a way to loop through the files in a document set using Javascript? I am not able to find a way to access those files. Any help is much appreciated.
0
votes
0answers
18 views

Event when selecting item in listview

I have created a webpart that shows detailed information of a selected item in listview. The problem is that user has to click on the select icon. The requirement is that the detail webpart should ...
0
votes
0answers
52 views

How to hide the calendar image for a particular group

I need to make a column date read only for a particular group in SharePoint. I am able to make the textarea of date field in editform.aspx readonly. I have a content editor where I am using ...
0
votes
1answer
225 views

CSOM Javascript - when executing query on multiple lists getting error - SharePoint 2010

Is here any SharePoint expert, who can help me find out, why I am getting error on lists queries? I am trying to fetch data from multiple list asynchronously, but I am getting following error: The ...
0
votes
0answers
46 views

Error: The value of the property 'Menu_Unhover' is null or undefined, not a Function object

I would appreciate it if someone could help me out here. I have a SharePoint global navigation bar that I'm using in SharePoint 2010. Every time I apply this script, I get the following error ...
2
votes
3answers
59 views

Use list or doclib?

I've got a list with a few thousands items. (It is a list of users that have completed some course.) Sometimes a user would like to have a course diploma printed. How could we achieve this? ...
1
vote
2answers
510 views

Populate User Properties in list form using JavaScript in Sharepoint 2013

I have a list where Administrator adds users and it contains information of the users(Employee Name, First Name, Last Name, Email etc). Employee Name is a people picker control and I need to populate ...
-1
votes
3answers
160 views

Disable Text Entry Into Rich Text Area Using Javascript

I'm trying to make specific rich text areas within a list edit form 'read only' based upon the overall status of the list item. In order to do this I've tried to use the following: ...
0
votes
0answers
60 views

SP.SOD.executeFunc not calling function

Compa've added following script to JSLink property of a custom content type ( JSLink="~sitelayouts/ProjectFolder/script1.js" ): window.alert("started"); SP.SOD.executeFunc("sp.js", ...
0
votes
1answer
168 views

Can't Design Content Query Web Part JavaScript News Ticker

I created a news list in SharePoint 2010 that shows news on the home page just like a news ticker with JavaScript. I used a content query web part to show news. This article is so useful, but doesn't ...
0
votes
2answers
114 views

CAML query multiple values javascript

When I run the following query I get an error: <View><Query><Where> <Or><Eq><FieldRef Name='ID'/><Value Type='Number'>164</Value></Eq> ...
1
vote
2answers
404 views

Autopopulate form fields based on selection in people picker column using JavaScript

I have a custom list where user fills out profiles of others. There is a People picker column for "Name of employee" and when the user selects the person(people picker) in the form, other details ...
0
votes
0answers
42 views

Permission Denied JavaScript Error

I am attempting to place page viewer web parts on one of my firm's intranet SharePoint sites. For some reason, the page that is loaded through the web part won't function properly. The page itself ...
1
vote
2answers
241 views

JS CSOM to redirect to another SharePoint URL

I have an application page which takes some inputs for list creation. Based on these inputs, i am using JavaScript Client Object model to create a new list. Once the list is created a notification ...
0
votes
2answers
94 views

How to display data from Excel file in a Webpart

I want to create a website on sharepoint 2010 which displays data from an Excel file in a Web part. Unfortunately, Excel Services is not available. Therefore, Excel REST cannot be used and due to ...
0
votes
1answer
18 views

buzzboost script on SharePoint page

l am trying to display a buzz boost script from feed burner into a Content Editor web part but it is not working. I noticed that when I activate the web part it removes part of the JavaScript. Any ...
0
votes
1answer
100 views

get properties from an List Item

I'm following a code sample from msdn to get properties of items from a list. My announcements list has 2 items. But for some reason I get an exception while getting the enumerator (TypeError: ...
1
vote
1answer
187 views

Display more fields in Discussion Board SP 2013

Can anyone tell me which function or part of the code I have to override from SP.UI.discussion.js to display extra fields in subject view of discussion board? Other than the fields it has OOTB.
0
votes
1answer
46 views

Some JS files are included at rendered page but I cannot find how

I am migrating a site from SP2010 to SP2013. The old site is not built by me so I am not familiar with the old design. After migrated to SP2013 (run in SP2013 mode already) In one of the page ...