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
0answers
380 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
54 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
156 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
15 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
105 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
25 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
43 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
19 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
85 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
86 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
76 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
21 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
36 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
52 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
107 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
32 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
28 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
73 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
38 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
92 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
110 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
82 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
86 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
131 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
38 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
25 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 ...
0
votes
0answers
60 views

JSRender modify dispform.aspx button

I want to modify the button, the display text and the url link. How can I do that with JS-Link?
0
votes
0answers
65 views

User or Group field SharePoint 2013

I have a field in a list that is a group or user field with multiple user choice. Now i want to check if there is 3 users in that field, i want to check if the current logged in user is equal to the ...
0
votes
0answers
23 views

Open item dialog box just in standard view

Is it possible to open only items on standard view in a dialog box? I have a second view where i want to open the item as new window. I worked with some javascript in the sharepoint designer, but it ...
0
votes
0answers
45 views

Aspx page that create filtered view based on argument

I use Sharepoint 2013. I have two lists generated by PS everyday. List A Client Col2 Col3 1 aaa bbb 2 ccc ddd And List B : Client Col1 Col2 1 Info1 Info11 2 ...
0
votes
0answers
19 views

Hide Elements on topnavigation

I have a metadata navigation dropdown in SP 2013, How can I hide a specific element with a specific title?
0
votes
0answers
73 views

Using function to query multiple lists

I am using the code below to check whether an item exist on one list. Seeking to improve this code so that I can check two lists. If it finds it on the first list (FILE_LIST_NAME), I want it to ...
0
votes
0answers
497 views

SharePoint 2010 webservice call using JavaScript

We are building a HTML 5.0+ JavaScript app which will fetch some data from a SharePoint 2010 intranet site and will display the data. The HTML 5.0 app will be developed for iPad and iPhone. When we ...
0
votes
0answers
117 views

Document Library EditForm that Saves then Redirects to Page with Query String

In SharePoint 2010, with a document library, the default editform resets the Source parameter in the URL which prevents you from navigating users back to source after selecting the Save button. This ...
0
votes
0answers
203 views

SharePoint csom set_item limitation

Is there a limit on set_item with csom ? If i add a third: olistItem.set_item("Body", "test"); It doesn't work var theList = clientContext.get_web().get_lists().getByTitle('userData'); ...
0
votes
0answers
176 views

How to wait for a Function to return values and finish to run another Function with Javascript

As the thread's title with SharePoint 2010, this worked well with all browsers as the demo below. However, when I'd tried to get the information from another link (it must be another thread of ...
0
votes
0answers
26 views

How do I use Sharepoint 2010 as an SQL backend for web content?

Given web pages hosted in a SharePoint 2010 document library, what is the simplest way to use SP as an SQL backend such that some Javascript on each page could add/query data from a single table on ...
0
votes
0answers
33 views

Sharepoint mobile view issues

I am working on Mobile View for SP 2013 site and I used some java script for better user experience, this java script works perfectly with IOS and ANDROID devices, when it comes windows phone like ...
0
votes
0answers
51 views

Managed metadata not loaded in standard metadata-dialog

I have a standard SharePoint list which has a (required) Managed metadata-column. When I want to add a new item and click on the icon to show the Managed metadata-dialog, the dialog opens but nothing ...
0
votes
0answers
262 views

WebForm_DoPostBackWithOptions not working on SharePoint2010

I am trying to emulate a save action and avoid redirection, so I used the WebForm_DoPostBackWithOptions function, for some reason the item is not being saved eventhough the save button id is correct ...
0
votes
0answers
115 views

How to assign a java script variable to xsl variable

I have a requirement where the user enter the price in text box and i need to get the value in java script/jquery function and by using the value i need filter list data using xslt. I have to assign ...
0
votes
0answers
41 views

Events not firing inside popup dialog

I have a popupdialog created like this: var options = { title: newsArray[i].Title, autoSize: true, ...
0
votes
0answers
74 views

401 on /_api/web/sitegroups/getbyid(xx)/users call

Logged in users are getting prompted for user/pass when /_api/web/sitegroups/getbyid(xx)/users is called. I don't think that's supposed to happen (according to our vendor). What's my step in ...
0
votes
0answers
787 views

UpdatePanel not working inside Parent GridView ItemTemplate

There is a SharePoint 2013 Visual Web Part in our project. It has 4 nested GridViews together. On click of one Image button 3 grids will get expand. Population is also coded on click of that image ...
0
votes
0answers
303 views

JSLink: Getting item URL or identifier

I'm using a modified version of the Accordion Menu code sample (here). Inside the accordianTemplate function, I need to get the URL or some kind of identifier of the currentItem object so that I can ...
0
votes
0answers
140 views

Start Workflow with Initiation Form via Ribbon

I want to start a workflow for selected items using JavaScript and a custom button on the Ribbon. I was able to get this working with the help of SPServices. In essence I needed to get the item id, ...
0
votes
0answers
92 views

Discussion Board Best Reply Clost Thread

I am creating a discussion board app and want to know if I can amend the top button that has the text "Best Reply". I want users to be able to mark the discussion as complete. I am adding a choice ...
0
votes
0answers
107 views

Use jQuery to make a “column” on the default view?

I am trying to append a value to the end of each row by selecting the number value in one column to do some sort of math with it and output the value on the other one. This code works for me on one ...
0
votes
0answers
174 views

How to change state (toggle on/off) of ToggleButton?

There is a ToggleButton: <Tab Id="Ribbon.Book" Title="Book editor" Description="" Sequence="2"> <Group Id="Ribbon.Book.TextFormatting" Description="" Title="Text ...
0
votes
0answers
61 views

SharePoint 2010 Web Part that needs to call a dll and .js files

I am trying to create a SharePoint 2010 web part. The web part I am trying to create will contain, among other things, a custom asp.net server control as a dll. The dll refers to a number of files ...