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
12 views

How to retrieve target menu of specific list web part for CAMOpt?

I'm adding a custom action on the context menu of the item using javascript CAMOpt function: function Custom_AddListMenuItems(m, ctx) { CAMOpt(m,'View (new ...
0
votes
0answers
14 views

CRUD operation functions for SharePoint Online in JavaScript

I have lots CRUD operations in my project. I want to write generic function for same and include them in a single JS file. I will send relevant parameters to them and thereby achieve the required. ...
0
votes
1answer
22 views

REST API Search images

I'm doing a simple REST request to the SharePoint API and it seems that it doesn't retrieve images or videos, should I add something specific to the query text in order to have images and videos in my ...
0
votes
1answer
32 views

List web part with option button in place of checkbox

I want to allow on a list web part a mutually exclusive selection for the items, so that I can force the user to select a single item and retrieve the item id using the SP.js JSOM. There is a problem ...
1
vote
2answers
84 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
1answer
21 views

Show Dialog when Input value changes

I am working on a Sharepoint application Page to Uplaod a File to a document libary. The Upload can take a bit of time so I want to display the waiting for it Dialog. I check if all requiered fields ...
1
vote
1answer
14 views

Set ASP DropDownList to SharePoint List Items

This one is probably really simple and I am missing something, I am creating an app dev model for SharePoint online and I currently have a ASP.NET DropDownList that I want to populate with items from ...
1
vote
1answer
26 views

Refreshing connected child list view after parent update

On my web part page I have 2 list view: Parent and Child. Child is connected to Parent. Parent view is filtered Display=1. I click item "DDD" on parent list, take it to edit, change value Display=0 ...
1
vote
1answer
24 views

Problem JSLink (color priorities) - Nothing changes

I have a problem using JSLink. The goal is to color in red, orange, green the priority field. For information, I followed step-by-step the tutorial given by Microsoft. In Site Features, I've ...
0
votes
1answer
997 views

Add custom web application/page which uses files from other folders

I've created a JavaScript web browser game. The HTML page, Game.html, within folder Game references several other JS/jQuery/CSS files stored in sub folders. I simply want to add the Game folder, ...
0
votes
3answers
32 views

Sharepoint CSS : dynamically add SharePoint:CssLink using javascript/jquery

How to add CSS Link dynamically to elements? $('head').append('<link type="text/css" rel="stylesheet" href="my css path">'); The below code doesnt work because we need to specify the ...
0
votes
0answers
10 views

How to Track Silverligt video streaming length percentage in SharePoint 2013 using JavaScript

I want to track how much of a video's length is watched on Pause and Stop. How to track Silverlight video streaming length percentage (%) in SharePoint 2013 using JavaScript?
0
votes
1answer
1k views

SPServices - GetRolesAndPermissionsForCurrentUser

I have a list where one group of users is not allowed to delete items but they have view and edit permissions. All items in the list contain an attachment. However, users are not allowed to delete the ...
0
votes
1answer
855 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 ...
1
vote
2answers
124 views
+50

Hide weekend in calendar SharePoint 2013

I need to hide weekend in calendar SharePoint 2013. And I can hide the columns Saturday and Sunday. But I have some problems in my calendar view. The button "Add" disappears in the columns Friday. I ...
0
votes
1answer
568 views

Grabbing a filter value via CEWP code behind

I have employed a Query String Filter to parse a value and send it to a chart web part. now I would like to use this value in a CEWP to provide an explaination/clarification for the chart, but the ...
0
votes
1answer
32 views

How to display Sharepoint online office 365 site in aspx page

I have created an ASP.net web application where I am trying to display a SharePoint Office 365 online site through iframe. I am getting an error XFrame cannot be set to same origin How to ...
3
votes
4answers
3k views

Removing top links from Sharepoint online team site

The whole day yesterday I have been trying to follow the instructions from MSDN to hide the top links in a SharePoint team site (SharePoint Online in Office 365). However, I can not get it to work. ...
1
vote
1answer
500 views

REST API ItemCount on oData BCS List

I have a list generated from a BCS oData provider and I am attempting to get the number of items in the list so I can generate a $top on my request rather than bring back only the 100 item generic ...
0
votes
1answer
24 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
0answers
15 views

How to Check if a Sharepoint user is in a security group no matter if this is in a AD group CSOM Javacript

I have a Sharepoint hosted app and I need to check if the current user is in a sharepoint security group no matter if this is in a AD inside the group, the following code check if the user is in the ...
0
votes
1answer
107 views

Add javascript to Discussion Board Topic page

I'd like to add javascript to discussion board topic pages. Thatis, the page that consists of a single Topic, and lists all the replies to that topic. From google, I've learnt that I can add a ...
0
votes
1answer
27 views

SP 2010 CSOM Javascript: Intermittent Failure

I have inherited some JS code that is playing up. It looks something like this: ExecuteOrDelayUntilScriptLoaded(MyFunc, "sp.js") function MyFunc() { var ctx = new ...
1
vote
1answer
15 views

Javascript code to write JQGrid data to excelsheet?

I am working on JQGrid, I found one solution but it is writing whole JQGrid on excelsheet. But I only want JQGrid data on excelsheet. My JQGrid data consists of sharepoint list data. So can anybody ...
6
votes
1answer
186 views

How to access a custom field of a list using REST

I'm trying to get information from a list in a custom SPField called "My Field" with the internal name "MyField" using this JavaScript code: $.ajax({ url: ...
2
votes
1answer
658 views

“Type SP.ULSTraceLevel has already been registered” error while applying javscript to NewForm.aspx

I have a custom list in which I want to apply the javascript in new form of that list. Javascript loads the user profile property of the entered user in the people picker control. I am getting ...
2
votes
0answers
46 views

SP.Utilities.Utility.SendEmail with additional headers [javascript]

Want to use the built in SendEmail with javascript and jquery. Found this code and got it working -- sends the email -- using the code below: var appweburl = "https://example.com/site"; var ...
0
votes
1answer
613 views

A script on this page may be busy, or It may have stopped responding

there is one webpart on page that rotate the images so i added a jquery to rotate images and its working fine but after sometime it gives error like A script on this page may be busy, or It may have ...
0
votes
2answers
50 views

JavaScript not working in Firefox

I have put a snippet of JavaScript into a Script Editor Web Part. It's function is to display an alert box and redirect the page after an Infopath form submission. I got it from this website and ...
0
votes
2answers
31 views

GetUserEffectivePermissions returning 0 (“EmptyMask”)

I'm trying to retrieve the current user's permissions for a list but I keep getting an emptyMask result, even when my current user account is a Site Collection Admin. function ...
0
votes
0answers
12 views

SharePoint 2010: How to add permission to a folder with JavaScript

I'm trying to create a folder in SharePoint 2010 Library with some modification of the permissions. I would like to remove one group from folder permission (inheritance from library permissions) and ...
0
votes
0answers
14 views

SharePoint datetimecontrol Date range selection using jquery/javascript?

currently i'm working on SharePoint visual webpart webpart contains two SharePoint:DateTimeControl trying to select a FROM and TO date in range ,The Date Selection should automatically shade or ...
2
votes
2answers
38 views

Open the document in the browser

I'm presenting some Search results to the user using REST API, is there something specific should I include in the link to the document so the document opens in the browser?
2
votes
1answer
90 views

List all site collections in SP Online

Is it possible to get list of site collections using JavaScript Object Model in SharePoint Online? I would like to display a list of Site Collections in left navigation. something like below. ...
1
vote
1answer
370 views

Javascript IIFE and SharePoint Client Object Model

I'm having a problem with my javascript code that I am sure is to do with scope, but I can't figure out where I'm going wrong. I'm trying to write a method that will allow me to retrieve items in a ...
1
vote
2answers
956 views

How to use SPServices search sql query - getting malformed query

I am using the SPServices javascript library to make a search request to sharepoint 2010 search. I am trying this query: queryText = "<QueryPacket xmlns='urn:Microsoft.Search.Query' ...
1
vote
0answers
23 views

Populate multiple text boxes based upon dropdown list selection in SharePoint 2013 on prem

I have 1 main list called OnCallEscalationContacts. This list has fields such as - TechnologyTeam [dropdown], FirstContact [people picker], FirstContactPhone [text field], SecondContact [people ...
0
votes
0answers
13 views

Using JavaScript to create a custom form for a calendar list

I'm designing a device reservation tool on our laboratory's SharePoint site. I created a wiki-page showing all information of the respective device as well as a calendar for the device that shows ...
0
votes
0answers
15 views

how to get client context in a external js file

I have a SharePoint event list where start date and end date needs to be formatted to clients time zone. I am thinking of getting the regional settings and then converting the time. I have to write ...
1
vote
1answer
707 views

Custom .aspx as modal dialog not working: 'SP' is undefined

SharePoint 2013 server... I have created a custom aspx page for use as a modal dialog. I want this pop up to collect field values and return them to the form the pop up was called from. The pop up ...
0
votes
1answer
463 views

Uncaught Sys.ArgumentNullException: Sys.ArgumentNullException: Value cannot be null. Parameter name: panelsCreated[1]

I am using JavaScript to pull events for the current day of the week. I am leveraging SP.Services to do this. The problem I am having seems to be the same that a lot of others have experienced ...
1
vote
1answer
18 views

To ScriptLink or not to ScriptLink

I need a custom ribbon button that calls a function in a js file in one particular library. To get access to the JS file, I could: Add the JS file reference via a content editor web part on the ...
0
votes
0answers
40 views

How to retrieve webpart xml-definition programatically

I have a Custom Webpart deployed in the Site, to which I need to retrieve the XML definition programmatically using Client side object model, can anybody help? EDIT: I used the following code. ...
0
votes
3answers
29 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" ...
1
vote
2answers
41 views

How to get Current Logged Internet Explorer User Name and Domain Name

I need to get user details before hitting the SharePoint Server page. User hitting sharepoint page(https://spxy) then I redirect to https://spxy/_layouts/TestHandler.ashx via httpmodule. I need to ...
0
votes
1answer
2k views

Add new item to child list and refresh the parent form - multiple lookup

I've created a parent list (Vendors) and a child list (software list). There can be multiple vendors for one piece of software. I've created a custom new form with a link which opens up a modal to add ...
0
votes
1answer
26 views

$orderby not working with lookup column Id

I want to sort order my REST results data with a lookup column's Id in my SharePoint list. I tried using $orderby in my REST query, but got no luck. can anyone of you help me out with this ? ...
0
votes
1answer
31 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
33 views

import sharepoint 2010 list data in json format using javascript (IE8)

i have a sharepoint list already created and populated from an excel file. How would i go about pulling data from sharepoint to a json object in my javascript program. Another requirement is that ...
0
votes
1answer
24 views

Where to store publishing images

I've two site collections: an authoring like portal where authors creates the articles the intranet or publishing portal The articles will be created within a page in SharePoint in this page ...