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)

1
vote
0answers
283 views

_spBodyOnLoadFunctionNames.push Not working in firefox

I tried this in firefox i dont know why its not working but it working in other browsers function loadmonth() { alert('called'); } _spBodyOnLoadFunctionNames.push("loadmonth");
1
vote
0answers
365 views

Close window after save editform with Drop off library

I have a problem with closing my explorer window from the SharePoint 2010 listitem editform. I am opening a new explorer window from Outlook. In this window I open the editform from the ...
1
vote
0answers
312 views

Load full list XML into JavaScript variable via CEWP

Currently I am using the lists.asmx webservice to POST a soap envelope and return specific list items. I really want the whole contents of the list. I realize how large that might get, but if this ...
1
vote
0answers
183 views

Changing / overwriting OOTB javascript

I've came across an issue when I was modifying / customizing the mini social tag buttons (a delegate control - class), everything went good and well untill I encountered an issue "onmouseover" event. ...
1
vote
0answers
237 views

How to handle “grouping expanded data load complete” in a list view?

In SharePoint 2007 I run some code after a grouping is expanded by overriding the ExpGroupRenderData (the custom code contained Microsoft's original code with some added extra bits). When this code ...
1
vote
0answers
469 views

Modal Dialog Delegate Event not firing

I have a modal dialog that I call from my sender page: function openCommentsDialog( ITEMID) { var DropDownListValue = document.getElementById("HideVal").value; var options = ...
1
vote
0answers
229 views

Validate list item with javascript API

I want to develop a custom datasheet view to edit a list. I add item through the javascript API. The problem is that the service doesn't control fields value. For example : - I add an item with a ...
1
vote
0answers
72 views

How can I authenticate to BPOS SharePoint using JavaScript

Does anyone know where I can find resources explaining how I can authenticate towards BPOS SharePoint using javascript? I have managed to authenticate with Office365 building on the scripts of lstak, ...
1
vote
0answers
114 views

will SP.ClientRuntimeContext.add_requestSucceeded stack events?

I'm looking for a new way to throw some tracking into list-based user actions (i.e. through ECB) and I stumbled accross SP.ClientRuntimeContext.add_requestSucceeded (see ...
1
vote
0answers
357 views

List Item file attachment using ECMAScript Object Model

How to simply upload & attach file to listItem using Javascript? And how to get/download attachments.
1
vote
0answers
429 views

Get Permissions with client object model

i want to add a permission on a folder who's inside a document library with javascript/jquery/client object model. The problem i have is, its a custom permission level created when some feature is ...
1
vote
0answers
248 views

Customizing richtextbox from formfield

This applies to SharePoint 2010. I have a requirement where users can only use a very specific set of "styles" when creating their content for SharePoint lists. As the "styles" ribbon button does not ...
1
vote
0answers
183 views

SPServices to retrieve the last record of repeated section data inside Sharepoint library

I have a Infopath that contain 2 fields which I put it as a repeating section as shown in the picture below (for the time being - please ignore the error) How do I retrieve the last record of a ...
1
vote
0answers
468 views

get current Page Layout in sharepoint 2010 using ECMA script

I have a requirement that I need to create a custom page layout and need to update the current page layout with my custom page layout. In SharePoint we have a feature to change the page layout. But I ...
0
votes
0answers
10 views

Create folder inside site assets

How can i create a folder inside site assets from a app? Here is my code, it says that folder item is undefined. var hostUrl = decodeURIComponent(getQueryStringParameter("SPHostUrl")); var ...
0
votes
0answers
14 views

Bind Custom List to Gridview using javascript in sharepoint designer

This is my javascript code to bind <script type="text/javascript"> function BindGridView() { $.ajax({ type: "POST", url: "AllItems.aspx/PPB", data: "{}", contentType: ...
0
votes
0answers
19 views

Changing New/Edit/Disp Forms using JS and JQuery and adding web parts

I used JS, and JQuery in the pasted to change the New/Edit/Disp forms on Custom List before. Is there a way I can add OOTB web parts to the JS file? For instance I have a list called clients could ...
0
votes
0answers
15 views

How to make Exporting highcharts works (to image or pdf) when its inside a PageViewer WebPart / SharePoint 2010?

I've been using SharePoint 2010 PageViewer web part to make available a site for the end users (Asp.Net MVC solution). Accessing my site throughout its url the Exporting highcharts feature works, but ...
0
votes
0answers
18 views

Requete CamlQuery

My question is to check if my CAML query query is good or not. I want to get items from a list by the email of the current user.
0
votes
0answers
23 views

Is it possible to break alerts in one site collection with client-side scripting?

We have a single site collection where alerts have been down for some time. After review, it was suggested that client-side Javascript (common ones like EasyTabs and SPServices) could break alerts. ...
0
votes
0answers
19 views

Adding central site column to a list with JavaScript in SP 2013

I'm managing a site where several users (owners) can set up new websites. But there are some areas that they always have to change that I cannot apply to the template. So I programmed a small code ...
0
votes
0answers
62 views

Clientpeoplepicker control in custom SharePoint List form

I use SharePoint 2013. I need advice to bind clientpeoplepicker control with a field. By default, user field on list form is displayed same as SharePoint:ClientPeoplePicker. So we have autocomplete ...
0
votes
0answers
25 views

Modal dialog loads hosting page after action

I have a user for which I want to "pull out" the user management screens by providing links to modal dialogs. This works just fine until we start adding users. This action opens a second window to ...
0
votes
0answers
34 views

Get List by “InternalName”

I'm trying to use the SharePoint 2013 JavaScript Object Model to retrieve a List via an internal name equivalent. SPList doesn't have a Name or Internal Name property. It is referred to by the ...
0
votes
0answers
14 views

custom page allowing verification of existing item

The scenario is that I need a multi stage pages. Ideally I would like to do this on a single page but for simplicity 2 pages are fine. On the 1st page I need to verify if an item exists in the ...
0
votes
0answers
29 views

javascript not rendering on display template

While creating Display Templates, I am working on a control template. I have three javascript files and a css file that's not rendering. I have checked the path and ran full crawls, below is the code. ...
0
votes
0answers
17 views

finding if a user profile property is in the edit page section

Basically as the title says how can I find out which of my user profile properties are in the edit page using javascript. my code is : var MyProperties, getMyNewsChoices = function () { ...
0
votes
0answers
17 views

User Profiles get properties and calculate the percentage of empty properties

I've been playing around with user profiles and come across this SP.UserProfiles.PeopleManager.getPropertiesFor(accountName) however I am not sure how to implement what I want to do. I want to loop ...
0
votes
0answers
30 views

400 (Bad Request) ERROR while trying to use JS files in Content Editor Web Part

So, I added some code in Content Editor Web Part and code is started like this: <script src="/<MyURL>/_layouts/15/SP.Runtime.js" type="text/javascript"></script> <script ...
0
votes
0answers
10 views

Resource field SharePoint 2013 calendar

I have a Resource field in the calendar in SharePoint 2013 in which user have to add the required resource. But i want to set the default value for the the resource field,so that user should not ...
0
votes
0answers
38 views

Update a rating scale field of survey list using JavaScript

I have created a survey list which has 3 columns. One column is of type rating scale with value 1-5 . Using JavaScript I'm able to update the first two columns. But not able to do so for the rating ...
0
votes
0answers
25 views

Get “QuickLinks” of user profile in JavaScript

I am using the following code to get user profile properties in JavaScript. I can fetch the first 3 properties but the 4th property "QuickLinks" is always an empty string. I have added some quick ...
0
votes
0answers
37 views

How to use Javascript to update a Discussion Board reply?

I have a Discussion Board with a series of replies. Each 'Message' (Reply) Content Type has an 'Answer' dropdown with the values 'YES/NO' (NO being default) I have created a hyperlink on the property ...
0
votes
0answers
23 views

Changing the link of the 'Reply' button in a Discussion Board

I have a Discussion Board and within this board a user creates a 'Discussion'. When a user wants to reply to this 'Discussion' they click the 'Reply' button and the reply entry appears. By default ...
0
votes
0answers
14 views

Create a discussion list type based on the new display js file

Can anyone help me with how to create a discussion list type based on a new display js file? I do not want to modify the OOTB JS files of SharePoint.
0
votes
0answers
28 views

Custom template with CEWP fix settings for navigation inheritance

I'm using a custom template for creating new project sites. In this template I've a CEWP with client side script that fixes the global navigation inheritance (inherit from parent). When I create a ...
0
votes
0answers
23 views

Get the data from check box in edit page when in published page

<div data-name="EditModePanelShowInEdit"> <!--CS: Start Edit Mode Panel Snippet--> <!--SPM:<%@Register Tagprefix="Publishing" ...
0
votes
0answers
56 views

Filtering Image Gallery with Javascript based on choice column

I used the article/script linked below to create a preview page of SharePoint 2010 picture library. http://weblogs.asp.net/bsimser/jquery-sharepoint-picture-libraries-and-automatic-thumbnails ...
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
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
0answers
16 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
48 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
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 ...
0
votes
0answers
53 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
0answers
38 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 ...
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
0answers
64 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
0answers
23 views

how to use javascript variable in XSL

I need to use variable which is maintained in javascript in xsl value select. any idea.? thanks
0
votes
0answers
23 views

Web part not showing up in custom list

I'm trying to add HTML to a content editor web part. When I'm editing in the browser it shows up. When I go to the list page the web part is hidden. Does this have to do with the type of page a ...