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

ECMAScript is not working in SharePoint 2013 content editor webpart

ECMAScript is not working in SharePoint 2013 content editor web-part.Please let me know issue in the below code. <script src="http://code.jquery.com/jquery-1.9.1.js" ...
0
votes
2answers
16 views

Failed to load resource: the server responded with a status of 406 (Not Acceptable) when my REST api call

Failed to load resource: the server responded with a status of 406 (Not Acceptable) when my REST api call works in site. But when I enter the REST url in browser it returns the result. So nothing ...
0
votes
1answer
28 views

How do I get the url pointing to a document library?

I am trying to retrieve all document libraries in a site collection using an SP.Service and place them in a container with their correspondent url pointing to the internal library. So far I have ...
1
vote
1answer
613 views

SPServices Autocomplete and dynamic CAML query

I have two Text filter web parts (Project and Customer Name) with Apply Filters button for one list. There is a SPServices.SPAutocomplete on each and it works great. Now, I want to show the values in ...
0
votes
2answers
53 views

Inject current date into a List column using javascript or better - SharePoint Online 2013

I would like to make a column that shows how old a list item is. Since the calculated value [Today] isn't supported I need to come up with another way to subtract date created with the current date. ...
0
votes
1answer
15 views

Ecmascript to read specific custom properties of library and based on the property value delete the item

ECMAScript to read specific custom properties of library and based on the property value delete the item. var itemId = 43; function filldata() { var clientContext = ...
0
votes
2answers
832 views

Creating modal dialog for adding item to list from another page

I'm trying to write web-part for viewing list items. It contains link "add new item". I should create modal dialog for adding item, and it must work from every page. So, I have JS for modal: ...
1
vote
1answer
703 views

Getting user email from a List Item column using Javascript

I am creating a Hosted app using NAPA on Sharepoint 2013 (Office365). I need to retrive a user from a list column and get the user's email. SP.List.getItems with a query returns a listEnumerator ...
1
vote
1answer
22 views

Is there an “onLoad” equivalent for ajax web parts?

I need to run some jQuery (some formatting clean-up) against the output of an OOTB list which is loaded and refreshed with ajax. The problem is that the list doesn't render until well after jQuery's ...
0
votes
0answers
10 views

Set spesific web application url on site logo - javascript

Is there a way to fetch the URL on a specific web application with JavaScript? I've got several environment, and each of those have several web application running ex: Environment 1 www.domain.com ...
3
votes
2answers
481 views

Client Object Model equivalent of SPWeb.SiteLogoUrl

I can get the name, url and description of a site using SP.Web but there is no logo property. Is there a javascript COM equivalent to ...
2
votes
1answer
1k views

Launch SharePoint 2013 Workflow w/Javascript

Looking to launch a list workflow from script tied to a button on a form. I've been referencing this article, as well as the code from example 5, and even tried using SPServices, but have yet to come ...
1
vote
1answer
26 views

SharePoint 2013 Custom Ribbon Action inside Custom Group

I am trying to make a Custom Ribbon Action within Visual Studio. This works perfectly fine but I would like the Custom Action to reside in a custom group. I've seen lots of helpful(ish) threads/videos ...
0
votes
0answers
11 views

How to set default sharepoint:formfield value without using javascript

Trying to customise a list form. Is it possible to initialise the "ObjectName" field to a value passed in the query string without using javascript? Thanks.
1
vote
2answers
480 views

Populate User Properties in list form using JavaScript in Sharepoint 2013

I have a list where Administrator adds users and it contains information of the users(Employee Name, First Name, Last Name, Email etc). Employee Name is a people picker control and I need to populate ...
0
votes
2answers
849 views

Using REST API to get Site Groups in SP 2013

I'm trying to use the REST API in SharePoint 2013 to get the site groups. I've been using this link for a little help... http://msdn.microsoft.com/en-us/library/jj245927.aspx It's to do it with the ...
1
vote
3answers
3k views

SharePoint COM - SP.ClientContext(siteUrl) - Object doesn't support this action

Using the SharePoint COM to update a list item, but my function is failing. function updateProjectEC(projID, totalEC) { if(totalEC !== 0) { console.log("projID: " + projID); ...
1
vote
0answers
39 views

How do you properly write to a managed metadata column from JSOM? (SharePoint 2013)

I am trying to write the value of a managed metadata column across several documents in a document library at once using JSOM, but for some reason the way I'm trying only writes the value to the first ...
4
votes
2answers
201 views

How can i add a custom tab to a ribbon at runtime using javascript/ECMAscript?

I'm trying to add a Custom tab with a group and some buttons to a single client via conditional javascript, as far as i can tell this is all found in the CUI namespace, however documentation is hard ...
2
votes
1answer
29 views

Add custom action to sharepoint ribbon button

In my SharePoint view have export excel ribbon, this is ribbon of SP standard. When click to this ribbon, I want to prompt a confirm dialog with javascript before export. If user click OK on this ...
2
votes
1answer
93 views

Office 365 SharePoint 2013 Send email with attachments

I need to send Email with attachments in Office 365 SharePoint 2013. We cannot do this using the sharepoint designer workflow. Is there any way to call exchange web service from javascript and ...
1
vote
1answer
32 views

how can I http POST to libraries with SP 2010's REST API?

SP 2010's REST api documentation cites an example that uses a list, whereas I wish to rely on a library (for example, "SharedDocuments"), because a standard named library already exists in every ...
1
vote
1answer
26 views

How To “Add New Item” On Quick Launch & Refresh Page

On a SharePoint 2010 site how can I create an "Add New Item" link to the quick launch that will refresh the parent page when the new item is submitted? I have used the following snippet to create the ...
0
votes
0answers
20 views

Changing a custom content type's icon, possibly with javascript

I have a document library with multiple cusotom content types derived from "Document Set". They all show up with the same icon in a general list view. Here's what I would like to do: I'd like to ...
3
votes
1answer
74 views

Suspend and resume SharePoint Online workflow using CSOM - Ecmascript

I have a requirement where the Master user has power to interrupt any workflow and put it on hold and the approvals should be stopped on that workflow until the Master user resumes the workflow. When ...
0
votes
1answer
17 views

Script Enter key do the same thing as Search Button

I have a search box which filter Data from Sharepoint list developped with Javascript, here is the code : <script type="text/javascript"> function RedirectUrl(){var tb = ...
3
votes
1answer
2k 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 ...
2
votes
3answers
341 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.
0
votes
2answers
27 views

JS ClientContext return undefine when deleteObject

I'm trying to delete a list item from a SharePoint library via JavaScript with ClientContext. Unfortunately I don't have access to the ID of the item that's why I use the Title and I can not delete ...
1
vote
3answers
65 views

What is the correct way to reference javascript in Sharepoint 2013?

I have found conflicting sources on linking/referencing JavaScript to a SharePoint .HTML Masterpage in SP2013. Out of the box, SP2013 instructions from Design Manager interface are to Use this ...
0
votes
1answer
465 views

How to use SPServices search sql query - getting malformed query

I am using the SPServices javascript library to make a search request to sharepoint 2010 search. I am trying this query: queryText = "<QueryPacket xmlns='urn:Microsoft.Search.Query' ...
9
votes
3answers
6k views

Get the current UI language with ECMAScript

Is it possible to get the display language from within ECMAScript? Similar to http://www.sharepointoverflow.com/questions/3129/get-the-current-ui-language-from-a-webpart, I'd like to get the user's ...
1
vote
2answers
37 views

How to pass parameter from modal popup to parent window

I have a parent window which is a Display page of a list item. This page comes as a result of some redirection with custom querystring parameters to it. one of the querystring parameter is ...
2
votes
2answers
567 views

Site collection relative url in XSLT search or by JavaScript

I have the following question: I'm modifying the XSLT of the search, so it is represented differently etc etc .. in this occasion I also need to get a relative site collection url. In managed ...
2
votes
1answer
19 views

How can you share script members between control template and item template

I'm developing two custom display templates (Control and Item template) and I'm wondering if it is possible to share script members between these two templates, e.g. if I add something like var bar = ...
0
votes
2answers
49 views

Insert a list item using REST form webpart: 403 error even when X-RequestDigest is present

I intend to insert a list item from the main page in intranet to a list hosted on another site collection. I made this simple HTML & JS to get it done, but I always get the 403 / FORBIDDEN error: ...
1
vote
0answers
10 views

Create folder inside site assets

How can i create a folder inside site assets from a app? Here is my code, it says that folder item is undefined. var hostUrl = decodeURIComponent(getQueryStringParameter("SPHostUrl")); var ...
2
votes
3answers
2k views

Add (replace) hyperlink to pictures in a Picture Library Slideshow Web Part

On our team site we have added a web part that is a "Picture Library Slideshow" web part. Currently clicking on the images that scroll in the slideshow directs the browser to just the image's URL. I ...
1
vote
2answers
820 views

Get Navigation Term for Current Page in CSOM (JavaScript)

I am trying to get the Local Properties for the Navigation Term that is currently being viewed. For example... If I navigate to http://sp2013/about/team I need to get the Local Custom Properties for ...
2
votes
3answers
87 views

sharepoint 2010 javascript get items from a document library

I am trying to use JavaScript to get all the items in a document library. I am able to get it to work, but for the life of me I cannot get the title, name or path to the file to come back. I can get ...
0
votes
1answer
26 views

access the contents of a sharepoint list and update it

My problem is how to access the contents of a sharepoint list and update the contents by a button "Save" of another list that it have the same field. I'm working in sharepoint online using ...
0
votes
1answer
18 views

client context with userproperties and a list

I am trying to use a client context and load in userproperties and a list in the same success method. However I am having a problem as I get an error saying my listitems are undefined. Here is my code ...
0
votes
0answers
18 views

Bind Custom List to Gridview using javascript in sharepoint designer

This is my javascript code to bind <script type="text/javascript"> function BindGridView() { $.ajax({ type: "POST", url: "AllItems.aspx/PPB", data: "{}", contentType: ...
2
votes
1answer
52 views

Count characters in text field

I have a simple custom developed list that contains three columns, one of these columns should take maximum 7 characters, otherwise problems are caused, thus I want to make the user aware of the ...
3
votes
3answers
261 views

Add Ribbon Button via JavaScript

I have specific requirements from my client that he wants to add some additional Ribbon Button "but only" via JavaScript (including EnableScript reading value from some other list). They don't want to ...
0
votes
4answers
3k views

Referncing a java script inside my master page will not fire

I have added the following to my seatle.master page inside my SharePoint server 2013 :- <SharePoint:ScriptLink language="javascript" name="custom.js" OnDemand="true" runat="server" ...
0
votes
2answers
133 views

Adding a script reference to a SharePoint page [closed]

I tried adding a script reference inside the master page but for some reason the script is not responding.
0
votes
1answer
446 views

Clear all values in a multi-value lookup, via REST, SP 2010

Conditions: SP 2010, html/javascript, using REST to read/write to various lists. Im using a jquery multiselect plugin to set a multi-value lookup column. I need the selecting Groups of items, easy ...
1
vote
1answer
36 views

SharePoint 2013 Online Search Query for Site Collections

I wonder if It's possible to get all my site collection names or paths in Javascript, Visual Studios. I've found them through REST when I put server/_api/search/query?querytext='sharepoint' in the ...
0
votes
0answers
24 views

Changing New/Edit/Disp Forms using JS and JQuery and adding web parts

I used JS, and JQuery in the pasted to change the New/Edit/Disp forms on Custom List before. Is there a way I can add OOTB web parts to the JS file? For instance I have a list called clients could ...