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

Refresh parent page after calendar event creation

I have created a new page with a default calendar webpart. Below is what I'm doing. Click New Event and the popup gets opened Fill-in the event details Click Save and the event gets saved Calendar ...
3
votes
2answers
62 views

Problems getting executeQueryAsync to work with Promise

I am busy with a piece of javascript which has problems working correctly. I am trying to work with a loop which contains an executeQueryAsync. When this one is executed it doesn't go straight to the ...
0
votes
2answers
62 views

All of the sudden i get “Unable to get property 'split' of undefined or null reference”

I have a SharePoint public site branded and it was working fine when out of the sudden the slider with images stopped appearing and I get this error : Unable to get property 'split' of undefined or ...
0
votes
2answers
94 views

Item Edit Form: Delete Item on “Cancel”

I am building a custom list item edit form using SharePoint Designer. I need the item to be deleted when user clicks "Cancel" button (same functionality as he would press "Delete" in ribbon). I ...
0
votes
1answer
57 views

How to include buttons in SharePoint list view?

I have a list in which I want to easily and quickly get an entry time and an exit time, so the best solution would be to have, for each item already created, two buttons. When clicking on it, it ...
0
votes
1answer
31 views

Does a Sharepoint 2013 Online hosted Add-in have to create an app and app site?

Based on these Guides: https://dev.office.com/docs/add-ins/overview/office-add-ins https://msdn.microsoft.com/en-us/library/office/fp142379.aspx Is it possible to create a SharePoint Online 2013 ...
0
votes
2answers
52 views

Disable Edit WebPart and/or Snippet link in a Script Editor Web Part on SharePoint Page?

I know it can be done with client side coding, but maybe there is a built in way to do this in SharePoint 2013. I have a web part I share with other sites, but do not want site administrators seeing ...
0
votes
1answer
37 views

Sharepoint 2013 Client Side Rich Text Editor saving troubles

I'm trying to get a rich text field from the DOM and save it via javascript and its Sharepoint Client Context.I have an XSL form that creates a Sharepoint Form Field with a structure that's something ...
0
votes
0answers
18 views

Button Changes to Green bu [duplicate]

input name="Button51" type="button" value="U" style="background-color: #FF0000" onclick="style="background-color: Green"" /> Criteria: SharePoint 2010, custom list with custom red buttons ...
2
votes
1answer
34 views

Insert JavaScript automatically to new pages added to SharePoint wiki library

I wanted to Insert JavaScript automatically to new pages added to SharePoint wiki library. Instead of users manually adding the script to each page, it should be present by default or added ...
0
votes
0answers
90 views

SPUtility not working on Custom edit Form

I have created new Custom Edit Form for one of my List and trying to set Value using SPUtility.js. I am constantly getting error Unable to get a SPField named Title(Field Name) But same piece ...
0
votes
0answers
16 views

SP 2007 makes IE to hang while running a jssor code

I'm using a jssor slider with vertical navigation (no-jquery version) on Sharepoint 2007 page within CEWP where i have replaced all the image links to images store under SP image library and jssor....
1
vote
1answer
61 views

In a search display template, is there a search property available for the actual text (k=…) in Srch.U or any of the search objects?

I'm trying to add the searched text value to the query string in the url (<a href='...?searchText=[something]'>Title</a>) In the search display templates, I see ctx and Srch objects ...
2
votes
0answers
34 views

Filtering Lookup Column By Expiration Date [duplicate]

Scenario: I have created a lookup column with two columns. A department column and Expiration Date column. Each Department has a Expiration Date. For example see the image. When the Department ...
0
votes
1answer
43 views

how to refresh the page when i click the asp image button? [closed]

When i click the image button, page should refresh and show the data i tried in javascipt ,jquery but i am not getting please someone help for this.. Thanks in Advance. here is my code : roport....
0
votes
1answer
25 views

filtering webservice request with viewXml

Situation I have a Ajax query that gets all items from my list it gets all items (1000 ish) and the query alone takes about 1.3 seconds of the total load time of 1.5 seconds. Problem I know this ...
1
vote
2answers
81 views

Create New Document Without Opening

I have a document library with custom content type (template). When I click the "new" button in the library it lets me to choose the template for new document or folder (default functionality). Then ...
1
vote
1answer
77 views

Files move from one library to another library using jsom

Below code is working fine, but inside for-loop if I put alert,then moving multiple file but if I remove, only one file moving. I do not want any alert/pop up. Please suggest. ...
0
votes
1answer
116 views

Export Html table into Excel

I have written the code in .JS file to fetch the data from sharepoint list and display in html table. Now to take my work for next level I need to export the html table to "Excel". The below code is ...
0
votes
1answer
90 views

Button Changing colors in a SharePoint list [duplicate]

I am using SP2010 and I have a javascript that I am using to change color of a button in my document library. I have added an input button in a library column, which is calling javascript onclick. My ...
1
vote
2answers
73 views

Hide a specific list from 'View All Site Content' using JSOM/CSOM?

I see you can make a list hidden by using SharePoint Designer (http://www.sharepointdiary.com/2013/06/how-to-hide-list-or-library-in-sharepoint.html) which I am not interested in. It is okay if the ...
0
votes
1answer
27 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
18 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
135 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
73 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
60 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
46 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
18 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
60 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
53 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
212 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
63 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
70 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
25 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
37 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
44 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
60 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 49#;santosh@gmail.com;#19;#afre@...
3
votes
3answers
135 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
79 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
40 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
64 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
33 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(); d....
2
votes
1answer
38 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 = listItemEnumerator.get_current();...
0
votes
0answers
77 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
56 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 = listItemEnumerator.get_current();...
1
vote
4answers
71 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
71 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
37 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
37 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?