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
1answer
16 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
23 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
22 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" ...
0
votes
2answers
28 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
22 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 ...
0
votes
1answer
32 views

how to by pass multiple claim authentication login page in sharepoint 2013?

My Requirement is I have sharepoint server 2013 .Now I just added two AD FS Server 3.0 and configured to sharepoint site http://spsxyz with Claim based authentication. Example of My Server Setup: ...
0
votes
1answer
24 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
23 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 ...
0
votes
0answers
12 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
1answer
20 views

How to make page that redirects dynamically based on URL

Sorry for bad title, I really don't know how to describe this problem. Any suggestion is welcome. I have to implement one custom button in ribbon bar in all documents to move files from one doc lib to ...
0
votes
0answers
11 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 ...
1
vote
4answers
40 views

after clicking the cancel button close the popup window and redirect to parent window

I had a requirement in my code as follows After click the cancel button in the sp model popup window it should be closed and redirect to the parent window.
0
votes
0answers
28 views

JS image carousel [on hold]

I am using SharePoint 2013 online and I have created an image carousel that pulls images from a list. This carousel needs to be static if there is only one Image in the list, can anyone advise me on ...
0
votes
1answer
23 views

The condition Greater Than (>) cannot work in my jquery code [on hold]

I need to check the number of characters in class span, then change CSS according to the number. For example, if length of title is less than 29, the title color should be yellow. If length of title ...
0
votes
0answers
10 views

Close Popup and redirect the parent page to parent window page [on hold]

I have created custom button in ribbon row, this button shows in every list and document library. If I click that button, a popup will come up and show the OK button. If I click the OK button, it will ...
0
votes
0answers
14 views

Can SharePoint objects like 'SP.ClientContext' be used while developing Office 365 Mail Addin in Napa?

I am developing a Office 365 Mail Addin in Napa. I am trying to use the object of SP.ClientContext but it shows me error that SP is not defined. Office.initialize = function (reason) { ...
0
votes
1answer
16 views

How to select entire texts in class span [on hold]

I have an array title value with the class .block .title h2 span, I want to select entire texts in this class and check every title length. my script is x=$(".block .title h2 span").text()[i]; ...
0
votes
0answers
31 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
10 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
1answer
17 views

Add Web Part to page “automatically”-Sharepoint foundation 2013

I'm a relative Sharepoint newbie trying something that seems like it should be simple but having lots of trouble executing it. My organization does not have much more sharepoint experience than I do ...
1
vote
1answer
31 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 ...
4
votes
1answer
56 views

executeQueryAsync callback with a while loop

I am fairly new to javascript and have spent some time trying to understand callbacks as they relate to SharePoint's CSOM, but have had some issues. Essentially, I am running a query to get a ...
2
votes
2answers
308 views

Calculate age (YYMMDD) date

I've managed to calculate age using only "Year", but I would like to know how you can do this using a complete date ( YYMMDD ), This is the code I used to calculate age using only year: function ...
1
vote
0answers
31 views

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 ...
1
vote
1answer
24 views

Presenting calculated age in textbox

I've calculated the age using setFullYear and getFullYear, as I only want to use the birth year to calculate age for fun, but it doesn't work Here's the code I've tried so far, which I think should ...
0
votes
1answer
26 views

JavaScript runtime error: Object doesn't support property or method 'add_requestSucceeded' in Sharepoint 2013/ SharePoint Apps

I am new to Javascript and Sharepoint 2013. I am following a tutorial and I created a lab exercise, in it I am adding a new item/record/row in a list via Javascript. In this example the list is ...
0
votes
0answers
20 views

Error-The request xml is too complex and its depth exceeds the maximum depth 32 undefined [duplicate]

I am getting this error while running the below javascript code. <script type="text/javascript"> //var siteUrl = '/projects/SharePoint2013-Demo/TimesheetManagementSystem/'; var oList = null; ...
1
vote
0answers
15 views

Sharepoint 2013 Notifications (Similar to Outlook)

I have a SharePoint 2013 on-premise intranet portal. I want to build a Notifications feature similar to the one in Office 365 or something similar. Anyone got recommendations on using 3rd libraries ...
0
votes
0answers
15 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
3answers
35 views

change server date time to local date time

how to change the server date time to local date time using javascript. I am using following function for getting the server time.Now i want to change this time to local time zone. function ...
2
votes
1answer
43 views
+50

CSR is also applied to a Group By header in a ListView

The only decent blogs mentioning CSR and Grouping are: http://www.codeproject.com/Articles/620110/SharePoint-Client-Side-Rendering-List-Views (must read) ...
0
votes
1answer
36 views

getItemByID is not a function

I have the following script that is returning the error message "list.getItemByID is not a function" and I can't figure out why. All examples use this function. I am trying to iterate through ...
0
votes
1answer
30 views

Prepopulate NewForm.aspx Lookup DropDownList SharePoint 2013 with Javascript

In SP2010 I used the following JavaScript(JS) in a Content Editor on the NewForm.aspx page. This was used to prepopulate a lookup dropdownlist with a value from the Query String Parameter. Now that ...
0
votes
1answer
21 views

Check field change in own edit form

We have a list with 3 different textfields (textfield 1, textfield 2, textfield 3) and 3 different datafields (datafield 1, datafield 2, datadiels 3). We work with a own edit-form. Now i want to add ...
0
votes
0answers
11 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 ...
1
vote
1answer
20 views

ResetRoleInheritance problem

Im trying to reset a list's inheritance using javascript and Sharepoint 2010. Here is my code so far: <script language="JavaScript"> <!-- var vcms_currentCTX; var vcms_currentWEB; var ...
0
votes
0answers
12 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
1answer
45 views

Approving the filtered values of list using javascript

I have a list, a list filter and two date filters(Start date and end date) in a page. First I have to filter list using this filters and then I have to approve whatever item are left in the list after ...
0
votes
1answer
15 views

Enumerating contents of 'context.load' JS object works but using 'getById' does not work

In my Office 365 App I have a simple functionality where it loads a library and then reads a couple of fields for all items in the library. Below is my sample code: (function () { ...
0
votes
0answers
12 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
18 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
11 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 ...
2
votes
1answer
41 views

Need to change the value of a drop down choice box

I have a list in sharepoint. One column is a choice box for pending, approved, denied. I need to create a method to approve all on the click of a button. I cant figure out how because it doesnt ...
0
votes
0answers
12 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
17 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
17 views

Request for JSON data from external server

I am trying to obtain JSON data from an external location that is not on my sharepoint server. I have tried different methods for this and ended up with no result. Below I will explain each method ...
0
votes
0answers
40 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
17 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
1
vote
1answer
31 views

Render person with presence

How could I render a person with presence using JavaScript? Not in SharePoint result templates... I'm using REST and I'm getting the person from the web service
2
votes
1answer
25 views

Use filtered URL in Ajax call to return JSON data

Currently I am working on sort of a JavaScript function library for all things SharePoint to pass around to some of the SP developers at my work. The idea is to just take some simple features I see ...