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
350 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
481 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
345 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
212 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
293 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
558 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
240 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
74 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
149 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
478 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
554 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
281 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
216 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
524 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
26 views

Cannot save edited file css/js under SiteAssets

For SharePoint development, we only use client side programming (Javascript). I am used to place js or css files under SiteAssets. I have problem with only one of my site. When we upload or copying ...
0
votes
0answers
15 views

SharePoint hosted app submit multiple items to list

I am developing a SharePoint 2013 hosted app and I currently have a 'repeating' table that is being cloned each time a button is clicked. I currently have three tables which all submit to separate ...
0
votes
0answers
22 views

CSOM Querying a second list based on ID from an array

I have created an Array loading list data in, then displaying the array using knockout data-bind in a table. The issue is I have a second list that is related to the first list that I also need to ...
0
votes
0answers
25 views

App for Office (Office Add-in) Web Page Possibilities

I am trying to develop a task pane add-in for Word. Everything online says that at a minimum, the add-in requires a web page, javascript file, and a manifest. Does the web page have to be done in ...
0
votes
0answers
29 views

Using d3 in sharepoint web interface

I am building a website for a research center under my university domain. I am trying to create a data-driven document, with autoupdate based on lists. Yet since server-side access to sharepoint lists ...
0
votes
0answers
15 views

How can I customize a Navigation?

I have a navigation bar that contains links to other parts of my site. It wasn't created by me initially, so I wanted to dismantle the script that customized it to see how it worked. I screwed up ...
0
votes
0answers
20 views

How to create custom user profile properties using javascript?

Is there any way to create an user profile property using the sharepoint online javascript api? if not which is the correct way to provision custom user profile properties for an app Thanks
0
votes
0answers
20 views

Send meeting invite to Lotus Notes

Using jQuery ajax and SendEmail to send messages from SP to Lotus Notes. (Anders help me get it working in this thread)[SP.Utilities.Utility.SendEmail with additional headers [javascript] (Thank ...
0
votes
0answers
35 views

Javascript - How to get content of HTML of list items in SharePoint 2013

I want to create a PDF file which will contains information of all items in lists related to a specific itemID. So my idea is create an HTML array of that itemID, then post it to server and use ...
0
votes
0answers
33 views

JS Link with same exact code only works on some lists

I have tested the same code on multiple lists using JSLink and it only works on some lists. I am using the right path and the code is the same so why doesn't it work?
0
votes
0answers
50 views

Commit using JavaScript

I 'm looking for a solution to submit an item using JavaScript for a button already placed on the form like this..... $( ...
0
votes
0answers
21 views

SharePoint online : Add a property in property bag of host web using JSOM

I am working on a simple SharePoint hosted app which has two text boxes to take input KEY and VALUE and add this to the property bag of the HOST WEB. I am able to read the existing properties from the ...
0
votes
0answers
13 views

Custom Follow People function from Search Site

For various reasons I need a function that follows people from "people search results". Like the Sharepoint hover has a follow link, I need the same, but I need a function that I can use on each ...
0
votes
0answers
12 views

How to reference and dynamically display documents based off of input on a form

I'm using Sharepoint 2013. I'd like users to be able to select a series of drop down boxes of categories and have a list of documents automatically filter based off those choices. I'd also like to ...
0
votes
0answers
23 views

SPService object is not loaded!

I am working on a script to fetch the user profile services and get the current logged in user. This was initially working on IE8 and not working in IE11. Now its not working in any browser, any ...
0
votes
0answers
15 views

Select2 in Sharepoint Application Page

Have a Sharepoint application Page where I use Select2 4.0 for Searchable Dropdown List. On my development PC everythink works fine but on any Client the CSS seems to be broken (Both use IE11). On ...
0
votes
0answers
20 views

Enforce Drag and Drop documents to apply metadata (within folders)

I am aware of how to prompt for metadata when dragging and dropping files into a document library via this method. However this does not appear to support folders. If a document library contains ...
0
votes
0answers
11 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
0answers
19 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
0answers
21 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
17 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
22 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 ...
0
votes
0answers
58 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
0answers
22 views

'SP.ClientContext.get_current' is null or not an object

I have created a javascript script ih the Home.aspx of sharepoint foundation 2010 (exactly in a web-content editor). I keep on getting always the same error:'SP.ClientContext.get_current' is null or ...
0
votes
0answers
38 views

Create Web Property in Web Property Bag in SharePoint Site using REST API

I want to add one Web Property to sharepoint sub site using REST API. Is it possible or feasible using REST API?
0
votes
0answers
43 views

Load javascript file on wopiframe.aspx in SharePoint Online

Is there a different way to load external javascript files on the WopiFrame.aspx / Word Online / Excel Online page? We are using SharePoint Online. I have some external javascript files load with our ...
0
votes
0answers
26 views

SPUpdateMultipleListItems not working

I am trying to update a column in a list, changing all the items to Approved. Below is the script i am using. function approveall() { alert($().SPServices.SPGetCurrentSite()); ...
0
votes
0answers
19 views

How to use SP credentials to authenticate user for external WCF service by javascript

I have an application page in SP with javascript and by this javascript code I'd need to call external self hosted WCF service from different domain with some authentication.(The WCF service is able ...
0
votes
0answers
13 views

Code for Spotlight Web Part

Working in SharePoint 2013 and not able to use all the cool (free) apps offered because of internet security reasons. I really like the Spotlight App (image below) so I am trying to create it without ...
0
votes
0answers
17 views

Not getting [Object File] from a File Input HTML Control using JQuery in WebPart Custom Page

I am Using SharePoint Designer 2010 I have a file input control and a button as below: <input type="file" name="Resume" id="upload"></input> <input type="button" id="btnSave" ...
0
votes
0answers
21 views

Automatically schedule a page on publish - JSOM

i recently came across this link where the item scheduling is done using server side code Automatically schedule a page on publish I am looking for the javascript equivalent implementation of the ...
0
votes
0answers
21 views

Add sitecolumns to contenttype using csom sharepoint (loop)

I try to add a couple of fields to a content type. Sometimes I get the error: The object has been updated by another user since it was last fetched. What I've done (simple version): lets say ...
0
votes
0answers
15 views

how to delete a sealed field

How can I use Lists.asmx?op=UpdateList and JavaScript to delete a sealed field? My code works to create/update fields. I used it to create a sealed field. Then later I'm trying to delete it but it ...
0
votes
0answers
20 views

REST Look-up Field Expansion (Members Unknown)

Trying to expand a look-up field, in a REST call, without knowing the member names. For example, I have a custom list with a People Picker field (Employee). I can retrieve the Title and ID fields via ...
0
votes
0answers
58 views

GetListItem SPServices don't retrieve data

i'm trying to retrieve data from Sharepoint using SPServices. I created a list called "values" with two field: "Title" (text field) and "values" (numeric field). I created a js file linked to a ...
0
votes
0answers
18 views

Get all the libraries in a site collection except default libraries

How Could I get all the libraries in a site collection but just the libraries created by users and not by the System? Using Javascript