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
1answer
36 views

Unable to get User details in SharePoint 2010

I am using following code to get user details.... function getUsers() { $.ajax({ url: "/_vti_bin/ListData.svc/UserInformationList", type: "GET", headers: { "...
0
votes
1answer
18 views

Sharepoint 2013 consult get only 100 objects

I have thes JSON, I need to get back 100+ or more items, but json only caught 100 objects : Code: function GalleryContentPopulate(url, listname, target) { var eng = false; var queryGallery = "$...
6
votes
2answers
180 views

How to retrieve choice column in sharepoint Online?

I am creating a dropdown and want to fill it with choices with my choice column of SharePoint list. Looking for solution in CSOM or JSOM. Any help is appreciated
1
vote
2answers
66 views

Can't get Javascript CSR display template to work in listview

I'm totally at wits end here. I am trying to use CSR to display custom html depending on a "case status" column. I've added the JS file to the masterpage folder and used the JS Link to connect it. No ...
11
votes
2answers
693 views

Which one is faster CSOM or JSOM

Understanding which one has better performance for performing CRUD operation in SharePoint List, CSOM or JSOM?
1
vote
1answer
25 views

Removing question separators in survey

I am creating a survey in sharepoint. I've already customized quite a bit and am now trying to divide my questions into sections. As such I would like to be able to take off the line separators for ...
0
votes
2answers
60 views

Display REST Data

I am running into few issues. Issue # 1: When I use the following REST endpoint uri in chrome I get XML back. However, IE throws an error (IE cannot display this feed). I downloaded REST API Browser ...
0
votes
0answers
18 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
1answer
36 views

Automatically update hyperlink to point to newest added document in a library

This is my first post here, so bear with me. I am reletivley new to SharePoint, however I do know my way around it. Basically on my site homepage I have promoted links set up along the top. One of ...
2
votes
2answers
54 views

Javascript Functions in Calculated column

I am trying to use javascript functions within an calculated column which is working pretty fine e.g. if I use the following formula: ="<img src='/_layouts/images/blank.gif' onload=""{" &" ...
0
votes
1answer
26 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
41 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
59 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
56 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
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 ...
0
votes
1answer
47 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 ...
4
votes
1answer
81 views

How to call external ADFS secured WCF Service within Sharepoint via Javascript in an ADFS environment?

Previously on our little Sharepoint environment: We used integrated windows authentication for everything. On some of our sharepoint sites we integrated some custom javascript application logic that ...
0
votes
2answers
63 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 ...
0
votes
1answer
29 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
0answers
31 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
14 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
1answer
37 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
13 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
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?
5
votes
3answers
283 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. ...
1
vote
1answer
26 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
2answers
62 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 ...
1
vote
0answers
23 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.
0
votes
2answers
52 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 ...
0
votes
1answer
59 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
71 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 ...
0
votes
0answers
24 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
31 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 ...
1
vote
0answers
16 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 () ...
0
votes
2answers
48 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
1answer
28 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 ...
1
vote
2answers
33 views

How can I populate a dropdown with a SP list?

I have a SP List with data that I need to be in a dropdown list. I also need these to have specific classes. I'm trying something like the following but having no luck: $().SPServices({ ...
-1
votes
2answers
55 views

Error when loading list item using JavaScript

I am trying to load list item properties when a user selects a list item from the asp:ListBox. However, I am constantly getting an error with the message that the request is invalid. Could someone ...
1
vote
1answer
94 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
0
votes
2answers
54 views

PnP.js not working without TypeScript?

I downlooded pnp.js from https://github.com/OfficeDev/PnP-JS-Core/tree/master/dist was release monday for version 1.0.0 by Patrick Rodgers Microsoft I seen all the developments but the always had ...
0
votes
2answers
46 views

Implementing JavaScript/JQuery on Image Library

I am looking for implementing solution using JavaScript/jQuery in Image Library (SP 2013) to view image with one color and after clicking on it, it should show up all the different colors. For example ...
0
votes
0answers
11 views

Multiple WebParts in auto-sized Modal

I want to add two WebParts (listViews) to a popup modal and i want it automatically sized to the size of the two WebParts. I already tried adding iframes with the desired WebPart URLs to the modal, ...
0
votes
1answer
30 views

Javascript function visible on newform.aspx page in developer tool but not visible on SharePoint Designer

I an debugging a SharePoint 2010 New form page and in developer tool I can see a function written under <script> //[CDATA] tag. But when I open the Newform.aspx in Designer I don't find that ...
1
vote
0answers
36 views

SharePoint 2013 Get user Groups

I am trying to do the following : I got a js file here http://pastebin.com/g3Xtt96x i want to change the part: var whereStr = ""; if (!banderUtil.str.isNull(infoObj.listwhereclausefieldname) &&...
0
votes
0answers
33 views

How to make use of Office dev PnP provisioning template

I need some guidance on how to make use of the Office dev PnP provisioning template for SharePoint online. Basically, I am trying to make my SharePoint site responsive without tampering with the ...
0
votes
2answers
93 views

Customize Error/Alert Messages on New/Edit/Display Forms

I want to customize the error message for unique values in a list: this value already exists in this list. Tried Can I modify the sharepoint error message? but it's not working. any working ...
1
vote
0answers
38 views

Add Div below the Input Type text

I want to show and add the existing Div right below the input type text box on Button click event. I'm using content editor web part to show the below html <div id="Div1" style="Display:None;">...
1
vote
1answer
15 views

Autheticating users from a third party application

I've got a java web-app in which I need users to create documents. These documents must be allocated in a SP 2013 server. My first idea was to use users' themselves SP sites to allocate their ...
3
votes
2answers
196 views

Open pop-up message window on click of save button ,while uploading documents

I wish to populate message on click of save button when we are uploading documents to document library. I need to do something with editForm.aspx page but I'm not able to reach there. How can I do ...
0
votes
1answer
30 views

Upload file from a SharePoint hosted add-in to azure blob storage

Can I upload image files from a Web Part to Azure blob storage? My add-in is a SharePoint hosted add-in and I can only use javascript. I tried some searching but no results..