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

Open In Explorer using Javascript outside masterpage

The following code works like a charm when executed from an aspx using the sharepoint masterpage. However, I need it to work from an html file in a document library on the same site. e.g. Works when ...
0
votes
0answers
12 views

contents of a list in EditForm.aspx disappear when a Postback function was triggerred

I have a javascript file in the masterpage that triggers postback function to change list displayed in my custom DVWP megamenu. This runs on page load in ALL page in my Site. The code is working ...
0
votes
0answers
13 views

How to detect a customize EditForm.aspx (Sharepoint 2007)

Scenario: Admin will create a custom Edit form aspx page. Q1: Is there a way a javascript can detect the new edit page of the List? Thanks
0
votes
1answer
52 views

Get person or group field from list then query user profile

I am currently working on SharePoint 2013 on premise and I am trying to use JavaScript to get the latest 3 "new starters" from a SharePoint list then return information about them such as the ...
0
votes
2answers
68 views

Jquery conditional dropdown validation question

I have multiple Sharepoint dropdowns validation but I will show only two on my code. I can't seem to find where the problem is. The logic is if the user choose from any dropdown values <> "yes" ...
0
votes
2answers
39 views

Open list element in modal view from a site page

I'm trying to include a link in a site page that leads to a specific element of a list.. I need the link to open the element détails in a modal dialog box instead of sending me directly into the ...
0
votes
1answer
29 views

Export out data view list to Excel

I have a data view list made using a linked data source of several SP lists. I tried to make it so that the data view list can be exported out as Excel, just like SP list. Is this possible? I tried ...
0
votes
0answers
14 views

CustomJavaScriptFileUrl references script twice - should it?

I'm using PowerShell to provision a SharePoint solution and I'd like to include a link to a javascript file on all pages throghout the site (SharePoint.SPWeb.CustomJavaScriptFileUrl) What seems to be ...
1
vote
1answer
22 views

how to create publishing page in pages library using ecma or rest in SharePoint 2010

I want to create publishing page in pages library via JSOM (ecma script) or REST api. Is there any way we can create in SharePoint 2010? Please let me know if anyone has any idea? Thanks, Rajeev K
0
votes
3answers
52 views

How can I have yes, flagged and no buttons in a column

I have a document library where the CEO wants to see three buttons. If he has read the document he wants to click on Yes, otherwise it will always be No. If he clicks Flag it means it needs to be ...
3
votes
4answers
166 views

Add custom JavaScript to SharePoint 2013 list

I need to add a custom JavaScript link to my SharePoint list, so it would only affect that list. I don't need to add it to any other forms. How could it be done? I was thinking, if to change .aspx ...
0
votes
0answers
33 views

Custom Thumbnail view with javascript as asset library

At the moment I am creating a teamsite for my team at sharepoint 2013. My problem: I want to create a special view for my document site. I followed these instructions from an external sharepoint ...
0
votes
1answer
36 views

Custom Ribbon Button with javascript

Hi i'm working on a sharepoint Addin i wanna create a custom ribbon button using javascript , i tryed with xml it's work fine using this code : <?xml version="1.0" encoding="utf-8"?> ...
0
votes
0answers
20 views

GET Column data Through query or javascript

I have a table and after table tag one button when button click then get 4th column data Email table...All Email of customer and store in a array. Kindly help me to find out the problem.
0
votes
1answer
35 views

I have a web part in my page and want to read some element from page that the web part is on

I get this error: Protocols, domains, and ports must match Iframe has this domain and protocol: http:// www-ec65nhg76pg.mysite.com/ and Parent has this domain and protocol: http:// www.mysite.com/ I ...
0
votes
1answer
43 views

SharePoint Rest API and Javascript Issue

I am using SharePoint 2013 Enterprise. I have 3 List. Now I am creating custom form which fully in jQuery and javascript. From the 3 list, 2 list works as detail so I have two tables where we can add ...
0
votes
1answer
41 views

lookup columns are displaying an “ID;#” how to remove them using jquery

I am using spservices to fetch the lookup value . I have used the below code in All items .aspx and is working fine. However the lookup value is showing like this ...
3
votes
3answers
66 views

SharePoint DateTime issue when date is saved using CSOM

The timezone set in SharePoint Online is EST and when it is being saved to SharePoint using CSOM/ECMA script from location with UTC +5:30 timezone the date is reduced. Everytime we edit the time is ...
1
vote
0answers
29 views

SharePoint DateTime Control Change Event

I have SharePoint DateTime control and I want to execute some code whenever the user changes the date using JQuery or JavaScript. Thanks
0
votes
0answers
37 views

Call a Javascript Funtion when Delete Operation Occurs in Document Library

I need to call a Javascript function when a delete operation occurs in a document Library. What is the best way to do so? Example: Suppose I need to show a JS Alert when a document is deleted.
0
votes
1answer
36 views

How to set Date Field on insert form to null if date is not required

I am trying to set date field to allow null values on my insert form but every method I have tried comes back with " cannot insert null values". I simply want to allow users the option to insert a ...
0
votes
1answer
29 views

Appending stylesheet from master page to all the iframes(App parts)

I am trying to append stylesheet from master page to all the app parts included in the master page using javascript. Here is the piece of code i worked upon: var d= frames[0].document; d.open(); ...
2
votes
1answer
36 views

i am retrieving date of birth from list..but my o/p is coming as Tue Dec 15 10:30:00 UTC+0530 1992

function OnLoadSuccess(sender, args) { var listItemEnumerator = collListItem.getEnumerator(); while (listItemEnumerator.moveNext()) { var oListItem = ...
0
votes
0answers
48 views

SharePoint Online Edit Form JavaScript Errors

I am seeing JavaScript errors on the edit form of one of my tasks lists - see below. I have added my own custom JavaScript on this edit form. This is in the Chrome browser. I haven't tested ...
1
vote
1answer
55 views

I am getting “<div>​Manyata embassy,Bangalore</div>” with extra div tags,but i want only Manyata…bangallore to be retrieved in sharepoint list

function OnLoadSuccess(sender, args) { var listItemEnumerator = collListItem.getEnumerator(); while (listItemEnumerator.moveNext()) { var oListItem = ...
1
vote
4answers
59 views

How to give one ID to Set of web parts in SharePoint?

I am trying to show/ hide set of web parts on click. I already wrote the coding and I can hide/show web parts one by one on click and the reason is that each web part has unique Id. Now I am facing ...
3
votes
1answer
53 views

What is the best way to add JSLink inside form tag

I am trying to add JSLink insided for tag in my SharePoint hosted app <Form Type="NewForm" Name="{878B105CA-A7O8-7C28-HD7F-5B0DCBA7DSA}" SetupPath="pages\form.aspx" ...
0
votes
1answer
34 views

Sequential ExecuteQueryAsync?

How do you properly code / process 2 ExecuteQueryAsync, with the 2nd one reliant on the items of the 1st one. Basically, I have 2 Lists. 1st List is Main List, and 2nd one is like an extension. 2nd ...
0
votes
0answers
28 views

How to retrieve all pages from “Wiki Pages Library” using JavaScript

How to retrieve all pages form Wiki Page Library through CSOM (JavaScript)? Can anyone share an example?
0
votes
1answer
22 views

use javascript in a commandAction to open a new link

I would like on a CommandAction="" to open a page. I successfully done it with the following code: <CommandUIHandler Command="CustomTab.MyButton1" CommandAction="{SiteUrl}/Lists/Test" /> ...
0
votes
0answers
27 views

How to connect Office Add-In to SharePoint On Premise

I am trying to develop a Word Add-In and I need to retrieve a SharePoint list items. 1st Question: It is posible to write CSOM (c#) code instead Javascript? 2nd Question: How can connect to a ...
0
votes
0answers
13 views

how to give a document link in resourse.js file varialble

I am using below var importFileNameDescription = "Browse to the document you intend to import. This document has to be a Excel file."; for localization in my Resource.en-US.js file in the text I ...
0
votes
2answers
55 views

In SharePoint 2010, is there a way to display the total number of items that were submitted for the current month?

Example: I entered 10 items in a list this month and now I would like to see the number 10 display in another web part in another page. I don't want to see the individual items I just want to ...
0
votes
0answers
19 views

Add New Calendar item default All Day Event BUT reset when unchecked

I have the below code for setting all day event to yes ( checked) BUT I wanted to do the resetting to the original when unchecked in SharePoint 2010 Calendar event: <script> ...
0
votes
0answers
25 views

SP13: Showing Image in Custom List

The first part is working not the second. Intent: To have users select add attachment button on a custom list new form. Then select browse button that allows to browse out to select image on ...
3
votes
3answers
153 views

Remove ribbon tabs with javascript (no jquery)

I'd like to know whether it is possible to remove ribbon tabs (in a list, page or form) working directly on the ribbon object via javascript. I don't want to simply hide the post-rendered HTML of the ...
1
vote
2answers
40 views

Is there any init function in sharepoint hosted app, It should run once when app is installing

I have to create list when SharePoint hosted app is installing. Is there any function call in SharePoint which runs when app is adding or installing in SharePoint site.
0
votes
0answers
31 views

Javascript to submit Web Part without click

From a previous question, I am able to populate a textbox with a value I can use to reference another list. However, in order for this functionality to be as user friendly as possible, I would like ...
0
votes
1answer
30 views

display image from library picture

I have a library picture called "pictures" on it there is a picture "test" (.png) I searched how to display this picture inside a webpart, i read that Javascript is perfect for it but i didn't find ...
2
votes
3answers
65 views

How to add script reference on master page?

I have applied master page using JavaScript in my SharePoint Hosted App. This script reference is added on default.aspx. Now I want to add script reference on master page which I have applied so that ...
0
votes
2answers
47 views

disable people picker 2010

I am using following "code" to disable people picker in custom edit form: $("div[id$='_UserField_upLevelDiv']").attr("contentEditable",false);//Disabling People picker ...
0
votes
1answer
51 views

How to run JavaScript code when SharePoint Hosted App is installing

I have to run code for creation of lists in SharePoint site (Host-web) when my SharePoint Hosted app is installing. I have 3 to 4 App-parts in my App. Where should I write JavaScript code which will ...
1
vote
0answers
21 views

Javascript error on action buttons in SharePoint 2013

While editing a survey, or reordering columns for Shared Docs in SharePoint 2013, we are experiencing issues where the "OK" or "FINISH" buttons do nothing. Looking at developer tools (F12), we see a ...
3
votes
2answers
57 views

How to restrict the number of lines to show using jquery or css?

i have created simple Custom webpart. It looks like in that web part, Description display multiple line . i have used html P tag to display Description value <p>​Loream Ipsum​Loream ...
0
votes
1answer
58 views

JS Link and CSR: Error After Filtering and Viewing/Editing

I have a *.js to color code my rows according to the value of the column Status. It is working very fine UNLESS one filters any column and views/edits an item. After exiting the item view, the ...
0
votes
1answer
32 views

Save conflict - reset ratings and ratingscount in presaveaction

In my Editform I wish to reset all the ratingcounts on save, however I am getting an error message Save Conflict. Your changes conflict with those made concurrently by another user. If you want your ...
0
votes
1answer
28 views

ModalDialog // change title when dialog openned

I open popup modal dialog with something like this: openInDialog: function (dlgWidth, dlgHeight, dlgAllowMaximize, dlgShowClose, needCallbackFunction, pageUrl) { var options = { autoSize: ...
0
votes
1answer
65 views

Uploading File with rest api and HTML5 api

I am using SharePoint 2013 on premise. I am trying to upload file to the custom list from custom webpart purely jQuery and javascript. In my form I have hyperlink, when I click on it, it will open ...
1
vote
4answers
113 views

change SharePoint list field color using jquery code base on value?

I am working with SharePoint list and I need to change the Number field color if it is greater than 60. I tried to change the code below but it did't work. I also checked all answers but none of them ...
0
votes
1answer
42 views

Fetch the document name from Document Library using Document ID

I have a Document Library with multiple documents. One can select multiple documents even all the documents at a time. I need to fetch the documents name which are selected in Javascript using JQuery ...