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
2answers
45 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
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 ...
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 ...
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 () ...
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
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 ...
1
vote
2answers
30 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
49 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
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
0
votes
2answers
30 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
45 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
28 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 ...
0
votes
0answers
35 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
10 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
72 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
34 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
152 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
23 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..
2
votes
2answers
32 views

Script Not Working for User With Read Permissions

I have a workflow that sends emails out. When a user receives the email, there is a hyperlink called Review. When user clicks on Review, the value of the column called ReviewStatus on the Improvement ...
0
votes
1answer
19 views

How to Parse GetMyProperties REST Response

This is what the pre-parsed data looks like in the console after querying http://mysharepointsite/_api/SP.UserProfiles.PeopleManager/GetMyProperties?$select=Department : I am trying to get the ...
1
vote
1answer
41 views

CSOM: Get the exact Url of SharePoint hosted list

here I wish to retrieve the URL of SharePoint hosted list it's like http://app-0329d4c1001648.spapps.com/sites/site1/EmployeeList/EmpList I tried some approaches but these are not that much useful,...
0
votes
0answers
28 views

JSOM returns empty object on some pages

I've got some JSOM code that I use in two forms: a display form and an edit form. On the display form, DisplayTicket.aspx, it works exactly as expected. On the edit form, it runs and the JSOM call ...
0
votes
1answer
33 views

Focus out event People Picker

I want to do some operation when focus is lost from <SharePoint:ClientPeoplePicker>. Is there is any event like FocusOut or any other event. Thanks
2
votes
2answers
36 views

Status Color instead of Status Text

So I am trying to add the color to the field instead of the status text. How would you guy by doing this?
0
votes
2answers
46 views

SP.js is not loaded in page

I am using this piece of code on a couple of sites within my SharePoint Online environment: SP.SOD.executeFunc('sp.js', 'SP.ClientContext', function(){ alert('test'); //my code follows }); ...
0
votes
1answer
50 views

SharePoint JSLink override not working

I need to overwrite a multiline sharepoint field by a tooltip but it's not wotking. (function () { var SubjectFiledContext = {}; SubjectFiledContext.Templates = {}; ...
0
votes
1answer
43 views

SPServices.SPGetCurrentUser does not work on subsite level?

I am using SPServices to get current user like this: var user = $().SPServices.SPGetCurrentUser(); This works fine in the main site, but when I use the same line of code in subsite, I get: ...
0
votes
1answer
52 views

Getting no REST data in SharePoint in a html file

I am trying to get some data from a REST Service Url in a html file. This works fine when i am using the code direct in my browser. But when i embedded it into my SharePoint Site it wont work. On my ...
0
votes
1answer
41 views

postMessage with SharePoint iframe resize not working correctly

I have a problem trying to resize an iframe inside a SharePoint Online environment (O365) through Cross Domain. I've tried a bunch of solutions found on the net and nothing works except Baker Humadi's ...
0
votes
1answer
29 views

When creating a Sharepoint survey, how can I have an automatically self-updating dropdown list of answers choices?

I am working with SharePoint and creating a survey with it. I would need to have a question where the choices for answers update automatically based on an outside source (either excel or SharePoint ...
4
votes
1answer
49 views

add 15 days to date variable

I have the following line of code that pulls a list field date and stores it in a variable called dueDate: var dueDate = new Date(ctx.CurrentItem.ReminderDate); How do I create another variable ...
3
votes
1answer
70 views

Modify sharepoint document library callout

I am trying to override a sharepoint call out in a document library. So far, I was able to add a link to the footer using this javascript: SP.SOD.executeFunc("callout.js", "Callout", function () { ...
0
votes
2answers
46 views

How to get ClientContext in CSR?

In a document library's /Forms/AllItems.aspx, I am trying to render a column from ID to a file URL (FileLeafRef). However this line of code: clientContext = new SP.ClientContext.get_current(); ...
0
votes
1answer
23 views

What is a “valid SharePoint user”?

I am wanting to use AJAX / SP.Utilities.EmailProperties to send an email out to a group mailbox. I have got the code to work to send emails to individuals, but am unable to send to a group mailbox. ...
0
votes
0answers
20 views

AddBehavior & navigateFrame (Open With Explorer) SP2010

I have been facing an issue with "Open With Explorer" and well, restarting WebClient service helps sometimes, restarting my PC also helps sometimes, but that is totally not handy. I have taken a very ...
0
votes
1answer
26 views

Possible to externally access Sharepoint 2013 via Javascript alone?

Is it possible to access SharePoint List Data from an external javascript sitting outside the SharePoint environment? Is there an example out there?
0
votes
1answer
21 views

Getting the site collection url for 2007 to O365

I'm trying to figure out how to get the site collection url for any version of SharePoint, not sure which method would be the best I figure using window.location probably isn't reliable, ...
0
votes
1answer
27 views

How to hide elements in dialog box?

In SP-2013 on prem, I am trying to hide all elements except the one element where one can browse for pictures, like shown in this picture where I want to hide everything inside the red square. I ...
1
vote
1answer
23 views

Link to Grouping Categories

I would like to create a link that will take me directly to the grouping section in a list. This is similar to page anchors on a word document. Is this possible? Update: This is a custom list not ...
0
votes
0answers
29 views

Papa Parse and SharePoint

So, I have applied Papa Parse to a page that has a view of the list I'm working with. I have successfully read a CSV and logged it to the console. My question is, how do I update all items in my list (...
0
votes
0answers
34 views

I am having trouble with URL's using REST API in sharepoint 2013, for some reason it adds site pages and removes Document Library name

I have recently came across a problem with my code for a Document Library filter using the REST functionality. My code (below) returns all documents and folders correctly but when I open the ...
0
votes
1answer
30 views

Add Webpart to a Page using only Javascript?

Is it possible to add a webpart to a page using Javascript. I want to add a webpart to a specific page whenever a button is clicked.
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/...
0
votes
0answers
18 views

Hover Popups/Callouts inside SVG tag in SharePoint 2013

I am trying to add a hover popup/callout by applying the CalloutManager in an element inside a svg tag. SharePoint uses a different version o jQuery, it is implemented in a file called mquery.js. The ...
0
votes
0answers
19 views

How do I access a Service Application field in Central Admin using CSOM from JavaScript?

In Central Admin you go to Service Applications and you will see a list of applications. For example: Access Services 2010. When you click Access Services 2010 a list of fields is displayed as ...
1
vote
2answers
61 views

Set Welcome Page using Javascript only?

Is it possible to set the Welcome Page of a SubSite using only Javascript? I'm looking to create an Onclick Event that does this. Anything would help.