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
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
125 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
55 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
58 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
31 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
92 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
106 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
182 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
76 views

How to get the count of list items using javascript?

I want to count the list items using javascript
2
votes
1answer
68 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
71 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
120 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
99 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
40 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
89 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
173 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
71 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
50 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
204 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
43 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
462 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
152 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
56 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
157 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
108 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
372 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
40 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
233 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
94 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
178 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 ...
0
votes
2answers
62 views

Get javascript code to run without direct interaction by the user

I have a SharePoint NewForm.aspx with some custom javascript/jquery to perform various tasks: <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" ...
0
votes
0answers
48 views

How to use the file data downloaded by REST API

how can I use the $value downloaded by the REST API? $.ajax ( { url : _spPageContextInfo.siteAbsoluteUrl + "/_api/web/getFileByServerRelativeUrl('" + selected + "')/$value", type : "GET", ...
0
votes
2answers
78 views

Get SP.ListTemplateType enum value using JSOM

I am trying to create a new list (based on a dropdown menu selection) using JavaScript Client Side Object Model. var typeList = "SP.ListTemplateType." +listTemplateType; ...
0
votes
2answers
79 views

Javascript Client Object Model Update List Items (only some items updating)

I am using a JavaScript button to set a Field-2 on each selected list item from "false" to "true". It first checks if Field-1 is empty, and if it is, sets Field-2 to true. The relevant code is as ...
0
votes
1answer
84 views

Copy a file from the RootSite to a SubSite

I'm trying to add a file from a Rootsite to a SubSite using REST API. There some code: $.ajax ( { url : _spPageContextInfo.siteAbsoluteUrl + "/_api/web/getFileByServerRelativeUrl('" + selected + ...
0
votes
2answers
52 views

Is it possible to fire a JavaScript function on a SharePoint Control in Application pages?

I am working on SharePoint Application pages. I have a SharePoint DropDownChoiceField control on the aspx page. The requirement is to auto populate this control at the time of page load. Is there a ...
2
votes
2answers
129 views

Updating list items by JSOM

I am currently trying to migrate a list from one sharepoint to another. I did this a few months ago allready and there it worked not bad. But now I run into problems. The list is a discussion list. I ...
0
votes
0answers
65 views

How to Remote Authentication to SharePoint Online using Javascript

I am trying to "Remote Authentication to SharePoint Online using Javascript" as given in the following link But have not been able to successfully authenticate against SP Online. Getting ...
0
votes
1answer
127 views

Create Next and Previous Paging Using Sharepoint List and SpServices

can anyone help me in Creating Next and Previous Paging for SharePoint List Using Sp-services With Client Side Template Binding . Below is the Code Which I was Using. $().SPServices({ operation: ...
1
vote
1answer
58 views

How to Print a table with Style

I cannot print a page with Style in SharePoint. Please take a look on two images below. I've added the media="all" or media="print" into <style type=text/css> but these didn't work. The screen ...