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
2answers
61 views

Call Javascript function only after Success?

I need to alter fields if 4 lists when a button is pressed. I've created a single CSOM (javascript) block code that I pass a parameter to. This being ID of item and the ListName. Then I call the ...
0
votes
1answer
8 views

Javascript search is working in sharepoint 2007 and not in sharepoint 2013

Javascript search is working in sharepoint 2007 and not in sharepoint 2013. Is there version problem?
1
vote
0answers
26 views

structuring Javascript for sharepoint code

I have been reading many articles and going through many video tutorials, they explain almost all patterns from javascript (Module pattern, Prototype pattern, Revealing Module pattern and etc) with ...
0
votes
1answer
43 views

Custom code in webpart HTML editor

I need to implement a simple show/hide div when a user clicks on a specific area of a map in sharepoint. The following code works perfectly in all browsers, but when i paste it exactly as is in the ...
0
votes
2answers
124 views

How to collapse Ribbons bar when page is loaded?

When user click on an item display view (DispForm.aspx) the "View" ribbon is always expanded by default. It is annoying sometimes. How can I to make it collapse (not hide) by default? When user need ...
1
vote
1answer
80 views

List all page under sub site with Sharepoint CSOM

I try to get all pages under a subsite with javascript. I'm very new to Sharepoint. I built an object to handle these queries, but i can't retrieve the pages. I can get the Documents list. Please ...
0
votes
1answer
46 views

Getting displayed month as an integer from fullcalendar

I wanted to fetch the current displayed month from fullcalendar with the following code: function GetCurrentViewedMonth() { var date = $('#myCalendar').fullCalendar('getDate'); var ...
1
vote
0answers
21 views

Close modal after form have “saved”

Im trying to trigger a page reload after my editform is done. I know that I can create a js function, "presaveitem". But this is called before the item is saved. I need to trigger some custom JS ...
0
votes
0answers
23 views

One script blocks other

I have been developing a workflow app on our SharePoint 2013 site. I have two scripts that I want to add to the custom new item form. Each of them (if only one is present on the site) works fine. The ...
0
votes
1answer
155 views

SharePoint My site & Delve Javascript Injection

I have done Branding through Javacript Injection (Custom Action ) in Office 365 My site. Now office Default my site about me page change to Delve. In that Delve page (Me.aspx) my javascript ...
0
votes
1answer
50 views

Image Overlay with Text using javascript in Sharepoint referencing to a “List Library” (adjust frame size)

Below is my code for displaying images with text overlay (referencing from one of my list). <style type="text/css"> .myFrame1 { position: relative; overflow: auto; } .myFrame1 li { ...
0
votes
1answer
35 views

How can I set different event color that are fetched from SharePoint list?

I'm developing sharepoint hosted app that can fetch events from sharepoint list and put on fullcalendar monthly view. I have suceeded to fetch the events but all calendar events have the default ...
0
votes
0answers
84 views

Get Taxonomy Terms, GUIDs, Synonyms (Other Labels) into Array within a SharePoint Page (not App)

I am using the code below to get terms (Later I will push these into an array). This is based on this article: http://www.vrdmn.com/2012/12/working-with-taxonomy-and-javascript-in.html It is pushing ...
1
vote
0answers
24 views

Save the Webpage content as document to Document library in SharePoint 2010

We have a requirement to save the webpage content as document (PDF/XPS/Image) to SharePoint Document library on a button click. Only client side scripts (Javascript/Jquery) are allowed to acheive ...
0
votes
0answers
24 views

Prevent Full Calendar from rendering on Next click

I'm just trying to make it so when the user clicks on the next button to advance months how do you make it so the calendar does not refresh the data and render it? I have tried lazyFetching but have ...
0
votes
2answers
46 views

Should we consolidate all form customization javascript into one file?

On the project I am working on (SP2013 on-premise), almost all the form pages (Newform.aspx, DispForm.aspx and Editform.aspx) have added a Script editor webpart with JQuery to customize form layout ...
0
votes
1answer
32 views

Get User Password property

How to get User Password property to make Log in the applikation in javascript in SharePoint hosted app. I tried to write user.password but i coudent find it. Please help.
0
votes
1answer
226 views

Jquery fullcalendar - how to make current month (days) unselectable

I am building a SharePoint-hosted app in SharePoint. Basicaly it is a time planning app. I used a jquery calendar plugin (fullcalendar). My question is I have a "lock" button. When user clicks the ...
0
votes
1answer
147 views

JSOM: Limit calls to SP.ClientContext executeQueryAsync with promises (Angular example)

I have asked myself this question several times before: Is it possible to have a JavaScript function used multiple times from multiple locations returning a promise calling ctx.executeQueryAsync, ...
-1
votes
1answer
71 views

Remove user from group Javascript

Hi I followed another thread but cannot get the following code to work. I changed Line 8 from web to oWeb, error seems to be around line 8/9 I'm trying to remove a user from a group. function ...
1
vote
1answer
31 views

KoSP binding failing (undefined) while another one works

I'm trying to link a list of my own creation up with KoSP. I created the list "Employees" which was used in the tutorial and got it to work perfectly, it consistently displays the Employee list and ...
0
votes
1answer
35 views

CAML query for the last document uploaded by a particular user

I'm trying to write a query using the JSOM to get the last document uploaded to a document library by the current user. The reason I'm doing this is because I have an upload button on a form and need ...
0
votes
2answers
50 views

pass parameter to 2nd function jsom

Hi I have the following code, how can I pass oList into function onQuerySucceeded? function lockMandaysItems(tID,oList) { var clientContext = new SP.ClientContext.get_current(); var oList = ...
2
votes
1answer
78 views

System.UnauthorizedAccessException when accessing list with JSOM

I try to get items from a list with JSOM. But I get a System.UnauthorizedAccessException with error code 2147024891. If I navigate and authenticate to the site with a browser I am able to access the ...
1
vote
1answer
80 views

Check if user is member of group

I have a SharePoint group name "Admin". Can someone provide me JavaScript code to check if the current logged in user belongs to this group? I have a query which I want to run based on this ...
0
votes
1answer
56 views

SharePoint sandboxed solution call javascript function from back end

I have created a sandboxed solution for SharePoint 2013 which contains sandboxed visual webpart. I need to call JavaScript function from back end. How can I accomplish this requirement? How can we ...
0
votes
2answers
39 views

Conditional formatting on list based on a user/person/AD entity

I have found many how-to guides on JavaScripts to render a colored line in a SP list based on a word in some column. I tried it with a 'person' (a people column) and it did not work. The value in ...
0
votes
1answer
110 views

Sp Services and calendar list

I have a SP Service call which uses GetListItems from a calendar list in SharePoint. I'm using it with the FullCalendar plugin. The events render fine that is not my question, my question is this: Is ...
0
votes
2answers
115 views

Getting the Timezone in Regional setting using javascript

I want to get the timezone in SharePoint, which is set in the regional settings. To be specific it is set as Japan Time. I am using javascript to fetch the time, but unfortunately I can't. I tried ...
0
votes
1answer
26 views

page create in Modal Dialog box and return parameter in sharepoint 2010

i need to create enterprise wiki page in Modal Dialog box ,when user enter name of the wiki page after click on save button.then it should return parameter.return parameter use for another process ...
0
votes
0answers
46 views

calling a javascript function inside a webpart

I have a site It has two content editor web parts In one I have a function like below function changeImageSrc(){ $("#someId").attr("src","somevalue"); }; Now i want to call this function from a ...
0
votes
1answer
67 views

Set values in Newform with CSR

I have a TestField (Single line of text) that I can return a value to while in NewForm.aspx. The problem being, the TextBox disappears and it only displays the returned text itself. (function () { ...
0
votes
1answer
35 views

Not able to call javascript function

I am adding an onclick event from code behind file to a hyperlink control. I am trying to call a javascript function ViewInModal from this onclick event. I am picking up a value from a grid view and ...
0
votes
1answer
20 views

Login user Information on home page

I am using SharePoint online. I want to show basic details(with picture) of currently login user at Home page. Means every user will see his/her own details in their homepage. Any suggestion.
0
votes
1answer
49 views

Hide certain characters in Sharepoint people picker field

I have a people picker field that is supposed to pull the current user of the infopath form's name and so far it works fine, but when exported to excel it also pulls in some extraneous characters that ...
0
votes
1answer
34 views

Unique Permissions on Custom List Forms

I have a custom list with several custom SharePoint 2010 forms, and each form is tied to a different step in the approval process. I need to be able to set unique permissions on each individual form ...
0
votes
0answers
86 views

Open document in edit mode via JavaScript

I run the following JavaScript to open an existing document in edit mode: url = 'https://sp.abc.com/sites/apps/Shared%20Documents/test.docx'; baseUrl = 'https://sp.abc.com/sites/apps/'; ...
0
votes
0answers
17 views

How to create Enterprise Wiki page using ECMA Script in Sharepoint 2010

i need to create Enterprise wiki page with some dynamic text on page.this page should me create using ECMA script.
0
votes
0answers
89 views

Calling Cross Domain Java Based web service by JQuery AJAX from SharePoint 2013

I am trying to call the Java based Web Service by Jquery Ajax, The URl of the Service is "http://vmABCapp01-staging.domain.com:7083/UserIDCheckService/CheckUserIDServiceImpl". The Jquery Code to ...
1
vote
1answer
63 views

Make load variable private

I have the following function which retrieves the current user's properties: function helper_redirect(){ this.clientContext = new SP.ClientContext.get_current(); this.oWeb = ...
1
vote
1answer
55 views

Error when querying list/roleassignment in 2013 REST API - Need to know if a user can query a list/library

In sharepoint 2013, I need to check if a the current user, has access to a specific list, for that I'm using the following REST endpoint (using AJAX) ...
6
votes
0answers
69 views

How to create ContentType with FieldLinks using REST on O365

I'm trying to create a ContentType with FieldLinks using REST only (no SP.ClientContext) on SharePoint Online, but I'm not able to make it work. Creating ContentType by POSTing to ...
1
vote
0answers
28 views

ECMA executequery not fired

I'developped an apps for sharepoint online. This apps propose to diffuser uploaded document under all library subsite. In first i retrieve all sub site then load needed library and finally. I do some ...
3
votes
0answers
33 views

Getting back-end data and displaying it in the client

My SP Admin level is strong. My SP dev level is beginner. I know some JavaScript. What is the best method of bringing Server and Farm information from the back-end to the client-side? For example, ...
1
vote
1answer
35 views

Adding javascript and a webpart to page using app model

I want to create an app that will add some javascript and a web part to a page in SharePoint. The page is a list page and already exists (AllItems.aspx page in the document library). I just want to ...
1
vote
3answers
295 views

How to update multiple items in sharepoint list online using javascript

I want to update 4 items in the same time in my sharepoint custom list using Javascript. Im using a camlquery to get the item witch i want to update. Can anybody please help me and write a function to ...
1
vote
1answer
138 views

Get Department for current user using REST API (Javascript)

Is it possible to get the department of the current user using REST API (Javascript)?
3
votes
1answer
80 views

HTML5/JavaScript Form with Complex Field Types

I am developing a responsive Website on top of SharePoint using Angular and have a few list forms that I need to establish. For fields such as text and date via saving or updating against the REST ...
1
vote
0answers
42 views

Javascript Script Editor code not showing for non-admin users

I have added a script editor web part in SP 2013 to add the code below to place a status message at the top but it doesn't work for non-admin users. I can see it just fine logged in as the admin on ...
0
votes
1answer
21 views

Upload an html page to sharepoint

I"ve been working on an html code (1 page only) with functions (using Javascript and CSS) and it's all combined in one file named menpower.html. I want to upload this html page to my SharePoint, so ...