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

SharePoint Webpart UpdatePanel (dropdown change) async Postback not working in safari browser

I am using Update Panel in my SharePoint application(web part). Update Panel having drop down post-back. It is working in IE,Chrome,Fire Fox without any issue. Issue: Same thing tested in Safari 5.1....
0
votes
0answers
26 views

How to export html data to pptx using jquery? [closed]

Can anybody please guide me how to export html data to pptx(PowerPoint Presentation) using jquery?
0
votes
2answers
916 views

Hiding Document Library columns used by JS file (JSLink)

Good day, Currently I have a "schedule" list (document library) which is used to store vessel schedules. Shedules uploaded are Excel files, which have named cells linked to custom properties in order ...
2
votes
2answers
692 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.
0
votes
1answer
22 views

Show up modal in navbar

I have a navbar where I want to show a modal if I click into one item's Title. So now I show my navbar in JS menupopulator like this: function completeMenu(data, target) { var prefix = "<ul ...
0
votes
1answer
39 views

Using Javascript: hide sharepoint room site content items for users except admin

I am using a code for hiding site content items for users except admin: The below script is used to check if user is admin but currentUser.get_isSiteAdmin() always gives True: Code is below: <...
0
votes
2answers
51 views

get primary and secondary site administrators using javascript

Trying to retrieve the primary and secondary site administrators using javascript and show them in the labels on custom Access Denied page. Using the code below(inline javascript) to do that but ...
0
votes
1answer
1k views

Hover effect over an image in SharePoint 2010

I would like to add a kind of hover effect over an image. My source code in JavaScript looks like the following: _spBodyOnLoadFunctionNames.push("color"); function color(){ var $th = $("div[Name='...
0
votes
1answer
43 views

SharePoint online REST API: how to get custom field list

I also want to get the custom columns via REST, If you fire up Google Postman or Advanced REST Api client you can get a desired json response for the query below. https://mydev/sites/site1/_api/SP....
0
votes
1answer
30 views

Display Person's Documents in People Search Results Display Template

All, I am building a people results display template that needs to include a link to an individual's CV in a document library. I've used a SPServices Getlistitem to query the list, but I can't get ...
0
votes
0answers
18 views

How to open specific help article?

I want to open a specific help article in a custom help article, but I can't figure out the override key format that brings you directly to the article. The JS variable navBarHelpOverrideKey is set ...
8
votes
4answers
609 views

Changing date format using javascript

I am getting date in 2015-10-30T05:00:00Z format from a SharePoint list using rest. Please help me to get the date in 2015-10-30 format using JavaScript.
1
vote
7answers
788 views

How to get People Picker ID using Javascript

Hi is there any way to get the People Picker value using Jquery / JavaScript? Currently we use title tag to get the id of our input fields values but people picker has only one generic title field ...
3
votes
1answer
3k views

Getting Version History and What Field has Changed

I am using the GetVersionCollection to get the history information from my list. This seems to be working fine; however, what I need to do is get the version history of the individual item which has ...
0
votes
2answers
43 views

JSLink: How can you access a list item's properties which are not added to the view?

In order to render certain controls in a view via JSLink, I need to check several conditions based on some fields we would like to keep hidden (not just uneditable in a grid view). How can I do that ...
2
votes
2answers
7k views

Error on sp.js property 'isNullOrUndefined'?

When I try to run my javascript SP.JS file in a user control I get this error: Microsoft JScript runtime error: Unable to get value of the property 'isNullOrUndefined': object is null or undefined ...
5
votes
3answers
259 views

Custom ECB-Menu Item which copies the Link of the document into the Clipboard

I would like to add an Item to the Edit Control Block Menu (ECB-Menu) (red marked in Screenshot), which copies when clicking on this Item (onClick) the link of the chosen document into the Clipboard. ...
2
votes
2answers
57 views

Color code due date field

I have modified the following script to display my ReminderDate field in red if the date is past and also the feedback field is false. Before implementing this and because I am a novice in jslink/...
-1
votes
2answers
34 views

how do i create a custom UI for a list column

What is the best way to create a custom feature to customize the UI of a list by filling in the column and/or field green when the value for row item = yes/no?
0
votes
1answer
25 views

Is there any way to put global loading message while every pages postback in SharePoint 2013?

In entire SharePoint site i want to put global loading message while every page postback, if user navigate from one page to another page it shows loading message until another page loads. is it ...
0
votes
1answer
36 views

error : collection has not been initialized on deleting an item from list

Below is the function and its fetching the Amount and uno but it throws an exception on clientContext.executeQueryAsync(). Here is the Code: function delRec() { var uno; var itemArray = []; ...
0
votes
0answers
25 views

Javascript no longer works after loading a SSRS Viewer Web Part

I have a sharepoint 2013 page with three web parts. Two are list web parts and one is a SSRS Report viewer web part. I've added the following scripts to the page via a CEWP. <!-- Name: ...
0
votes
0answers
13 views

Accessing App List from a SharePoint Page

I have created a SharePoint Add-in. It contains a list 'UserDetail'. Most of the examples I see in the web show to access SharePoint Data (List/Library) from Add-ins. Is there a way to access Add-in ...
0
votes
2answers
1k views

How to check if a list item exists or not in SharePoint 2013 using javascript

I have created one custom form and insert data into one list.I want to check before data insert into the list if the data exists in list or not .
0
votes
0answers
7 views

Enabling item scheduling on a publishing library via JSOM

Alright, I'm trying to enable item scheduling similar to this this post but via JSOM in sharepoint online through a sharepoint Add-in/App. From the web console I've already looked into properties of ...
1
vote
2answers
44 views

How to access custom property from User Profile using jquery

Environment : SP 2010 I have a custom property in User Profile called CompanyCode. I need to fetch this property using javascript/jquery in a master page. Can anyone let me know how to fetch custom ...
0
votes
1answer
674 views

Sharepoint list to XML including the headings?

We store data regarding Scrum sprint retrospectives in a SharePoint list. I have to create a chart for visualizing this information (which is not part of this topic/problem), so I need to somehow ...
1
vote
1answer
23 views

Using resx file from javascript code inside elements.xml

I'm looking for changing my title using a file .resx. I thought i'll just have to change title with my resx file for example : title : Resources:MyFile,MyTitle but it's not working <...
1
vote
0answers
17 views

New Office365 SiteContents : adds more items in menu

In new SharePoint the menu is in menuData.SettingsData: How can I adss new menu items?
3
votes
1answer
377 views

Update readonly field using REST API

I am trying to update a list item using Rest API. Following is my code. It works and it updates all fields except "RichMessage" which is a Note field with RichText="TRUE" and readonly. I have tested ...
0
votes
3answers
3k views

Freeze Header Row

is it possible to freeze the header row in list? We add some code so the user can scroll trough the content. The code doesn't work for the header freeze. We work with Internet Explorer 10. Have ...
0
votes
2answers
46 views

Skipping Callout menu within context menu (ECB-Menu) in a list view of document library - SP2013

I would like to skip the preview-window (CallOut Menu) (red marked in my screenshot) within the context menu / ECB-Menu [(...)-Menu] of a document in a library shown in any list view and go straight ...
5
votes
6answers
9k views

Set default value in people picker javascript/jquery

I want to set current logged in user to people picker by javascript. I can retrieve the value of user(lets say in var user).But how to set it to people control. Any help is much appreciated.
1
vote
0answers
19 views

How to reference total count of columns & Items within a SPS2013 List on another List

Looking for the total count of Columns and Items from an existing SPS2013 list to be visible on another SPS 2013 list part of the same site collection.
10
votes
5answers
35k views

How to get current user with javascript?

I have a list . I want select items of list with a special quary.(get items that created with current user). Then get count of items. I use this code for get current user : function Initialize() { ...
0
votes
2answers
37 views

GET user profile photo cross-browser in Sharepoint Online (mostly IE)

Using SharepointOnline. I got pictures url in the form of https://domain-my.sharepoint.com/User%20Photos/Profile%20Pictures/username_domain_onmicrosoft_com_MThumb.jpg"; I insert them into img src ...
0
votes
0answers
33 views

Print the content part of DIV in SharePoint 2013

I`ve researched a lot and spent more than 24 hours on it, but what ever reason adding the following in Content Editor WebPart on SharePoint 2013 List page, doesn't does the job as expected. ...
1
vote
1answer
46 views

Adding folder to Document Set programmatically JSOM SharePoint 2013

I am trying to add a folder to the document set but the folder got created at the parent document library. Can somebody help me to find out what am i doing wrong ? Following is the code: var ...
1
vote
3answers
2k views

SP.ClientContext is not a Constructor

I keep receiving the error message "SP.ClientContext is not a Constructor" every time I try to use it in my JS code. After doing a bit of research online, I found SP.SOD.execute function(). However, I ...
0
votes
0answers
17 views

Prevent modal dialogs from getting closed after deleting an item

my JavaScript-application has a rather deep navigation using cascaded modal dialogues (SP.UI.ModalDialog.showModalDialog(...)). Sharepoint does handle this really well. From the 3rd level modal ...
0
votes
0answers
24 views

Consistent way to create FieldLinks within content types using javascript

Word of caution: This question is related to question How to create ContentType with FieldLinks using REST but is more specific as we are looking to find a solution until (if?) MS brings the API ...
12
votes
2answers
2k views

color code in SharePoint calendar

I have SharePoint calendar and I want the entries to be in color based on status. If user add one entry and status is initially pending then that task would be in green, later it get changed to in ...
1
vote
0answers
14 views

SP2013: SP.Result returns 0 when calling get_value()

Maybe it is a very simple fix for this but i have problem with retrieving the m_value from a SP.result. SP.Result {} m_value:false __proto__:Object constructor:function () customFromJson:function () ...
1
vote
1answer
67 views

Get client computer name on SharePoint using JavaScript

Any idea how to get the client computer name or the client computer details within any SharePoint Site collection
7
votes
3answers
5k views

Send E-mail from javascript using REST API

I want to send email using Javascript/jQuery using REST API in SharePoint. I have tried _api/SP.Utilities.Utility.SendEmail and this is my code: Code $.ajax({ contentType: 'application/...
0
votes
2answers
5k views

Bind dynamic data in angular JS ng-init

I am using angular js to display data. I have an example with static data to bind that. But i want to bind data dynamically so i got the data from javascript function but am not understanding how to ...
0
votes
1answer
718 views

The value of the property 'MSOTlPn_ShowToolPane2' is null or undefined, not a Function object

I have a problem with SharePoint 2010 and Internet Explorer 11. The following error message appears when I try to open the webpart menu. In Internet Explorer 8 the wepart menu works as expected: ...
0
votes
0answers
16 views

Allow a SharePoint document to be displayed in a frame

I have a SharePoint list with attachment, I want to display these attachment in a Frame for preview but I get this error: This content cannot be displayed in a frame To help protect the security of ...