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
46 views
+50

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
14 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 ...
6
votes
1answer
180 views

How to access a custom field of a list using REST

I'm trying to get information from a list in a custom SPField called "My Field" with the internal name "MyField" using this JavaScript code: $.ajax({ url: ...
2
votes
1answer
651 views

“Type SP.ULSTraceLevel has already been registered” error while applying javscript to NewForm.aspx

I have a custom list in which I want to apply the javascript in new form of that list. Javascript loads the user profile property of the entered user in the people picker control. I am getting ...
1
vote
0answers
25 views

SP.Utilities.Utility.SendEmail with additional headers [javascript]

Want to use the built in SendEmail with javascript and jquery. Found this code and got it working -- sends the email -- using the code below: var appweburl = "https://example.com/site"; var ...
0
votes
1answer
606 views

A script on this page may be busy, or It may have stopped responding

there is one webpart on page that rotate the images so i added a jquery to rotate images and its working fine but after sometime it gives error like A script on this page may be busy, or It may have ...
0
votes
2answers
46 views

JavaScript not working in Firefox

I have put a snippet of JavaScript into a Script Editor Web Part. It's function is to display an alert box and redirect the page after an Infopath form submission. I got it from this website and ...
0
votes
2answers
26 views

GetUserEffectivePermissions returning 0 (“EmptyMask”)

I'm trying to retrieve the current user's permissions for a list but I keep getting an emptyMask result, even when my current user account is a Site Collection Admin. function ...
0
votes
0answers
12 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
12 views

SharePoint datetimecontrol Date range selection using jquery/javascript?

currently i'm working on SharePoint visual webpart webpart contains two SharePoint:DateTimeControl trying to select a FROM and TO date in range ,The Date Selection should automatically shade or ...
2
votes
2answers
35 views

Open the document in the browser

I'm presenting some Search results to the user using REST API, is there something specific should I include in the link to the document so the document opens in the browser?
2
votes
1answer
85 views

List all site collections in SP Online

Is it possible to get list of site collections using JavaScript Object Model in SharePoint Online? I would like to display a list of Site Collections in left navigation. something like below. ...
1
vote
1answer
370 views

Javascript IIFE and SharePoint Client Object Model

I'm having a problem with my javascript code that I am sure is to do with scope, but I can't figure out where I'm going wrong. I'm trying to write a method that will allow me to retrieve items in a ...
1
vote
2answers
954 views

How to use SPServices search sql query - getting malformed query

I am using the SPServices javascript library to make a search request to sharepoint 2010 search. I am trying this query: queryText = "<QueryPacket xmlns='urn:Microsoft.Search.Query' ...
1
vote
0answers
22 views

Populate multiple text boxes based upon dropdown list selection in SharePoint 2013 on prem

I have 1 main list called OnCallEscalationContacts. This list has fields such as - TechnologyTeam [dropdown], FirstContact [people picker], FirstContactPhone [text field], SecondContact [people ...
0
votes
0answers
11 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
14 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 ...
1
vote
1answer
694 views

Custom .aspx as modal dialog not working: 'SP' is undefined

SharePoint 2013 server... I have created a custom aspx page for use as a modal dialog. I want this pop up to collect field values and return them to the form the pop up was called from. The pop up ...
0
votes
1answer
440 views

Uncaught Sys.ArgumentNullException: Sys.ArgumentNullException: Value cannot be null. Parameter name: panelsCreated[1]

I am using JavaScript to pull events for the current day of the week. I am leveraging SP.Services to do this. The problem I am having seems to be the same that a lot of others have experienced ...
1
vote
1answer
18 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
30 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
27 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
37 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
2k views

Add new item to child list and refresh the parent form - multiple lookup

I've created a parent list (Vendors) and a child list (software list). There can be multiple vendors for one piece of software. I've created a custom new form with a link which opens up a modal to add ...
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
28 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 ...
1
vote
1answer
33 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 ...
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 ...
4
votes
1answer
59 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

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
18 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 ...
0
votes
0answers
15 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
21 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 ...
1
vote
4answers
45 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
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) { ...
5
votes
6answers
8k views

Enforce Drag and Drop documents to apply metadata

We have implemented an issue management system in SharePoint 2013 which provisions a page for every issue added to a specific list. One of the Web Parts the automatically provisioned page contains ...
0
votes
0answers
30 views

JS image carousel [closed]

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
26 views

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

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
11 views

Close Popup and redirect the parent page to parent window page [closed]

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

How to get server datetime without postback using JSOM or services

My application page may be long time without reloading, and user changed system date and time. And I need to know datetime from server, not from client.
0
votes
1answer
16 views

How to select entire texts in class span [closed]

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
4answers
1k views

get the attachement files from REST API

I use REST API SharePoint 2013 to get the items from list: And and I want to get the Attachments Files, How can i do that? This the code : function getListItems(url, listname, query, complete, ...
0
votes
0answers
32 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
16 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
539 views

SharePoint 2013 custom Attach File button

I'm trying to create a custom "Attach File" button in my SharePoint 2013 New Item form. So far this is what I've done: HTML <div onclick="javascript:openpageindialog();" class="btn" ...
0
votes
1answer
46 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 ...
4
votes
1answer
65 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 ...
0
votes
3answers
38 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 ...
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 ...
2
votes
2answers
313 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 ...