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)

2
votes
2answers
24 views

Have javascript only run once at installation

I have a Sharepoint Hosted app in which I have some javascript (permission related) that only should run once. It should run only when the app is trusted by the admin that installs the app and when ...
0
votes
0answers
4 views

How to add a webpart zone using JavaScript in SharePoint 2013

Let say I can manipulate DOM to add extra DIVs to page. I need to know if it's possible to use JS to convert these divs to web part zone to display a button "Add a Web Part" (like the ones in Blank ...
0
votes
0answers
4 views

Can you use the HasRights() function in SharePoint 2013, if so how?

I am looking to limit the display of content on a custom page in SharePoint 2013. I wish to hide or display some s based upon the user's permissions. The function HasRights() seems to be what I need. ...
0
votes
0answers
12 views

Reading a SharePoint list from an on-prem farm from SharePoint Online no Apps

Been going mad for the last couple of hours trying to do what I thought was simple. I have a CEWP on a SharePoint online site. I am trying to make a javascript REST call to a SharePoint list that ...
2
votes
2answers
27 views

XsltListViewWebPart and custom link column

I have a XsltListViewWebPart with a custom link column used for change a value on current listitem using JavaScript. <a href="javascript:ApproveRejectRDA('{@ID}', true);" title="approve"> ...
2
votes
2answers
613 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 ...
0
votes
1answer
6 views

Fix “AddEventListener” error in IE11 without access to Master Pages

After editing a form in InfoPath for use on a SharePoint 2010 site, my page will no longer load on IE11. On all other browsers, it is fine, but before the page can load in IE11, I receive a "Critical ...
0
votes
0answers
21 views

Trying to get lookup (Title) value, but returns null only in Client Object Model [duplicate]

I have this query: <View> <ViewFields> <FieldRef Name='Title' /> <FieldRef Name='itlgCategoria'/> ...
0
votes
0answers
17 views

Ajax SharePoint Search Query - Filter Results based on Today's Date

I have an ajax call that is pulling back results. I would like to filter that call so that it only pulls back items that are greater than or equal to today's date. How can I do that? The ajax call is ...
2
votes
1answer
28 views

How create Sharepoint online site with custom template?

I need to create site in sharepoint online from sharepoint hosted app. I used for it code like this: var webCreationInfo = new SP.WebCreationInformation(); ...
1
vote
1answer
684 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 ...
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 ...
1
vote
2answers
39 views

correct or efficient way of accessing DOM object in aspx pages

I want to get the value of textbox that a user enters. Below is the code snippet of aspx page : <asp:TextBox id="txtUserName" runat="server" /> Now which is the best way to access DOM object ...
1
vote
1answer
735 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 ...
0
votes
1answer
28 views

SharePoint Web Part Development - Server Side vs Client Side

I am developing a web part in SharePoint 2010. I consulted with someone well versed in SharePoint development who told me that, beginning with SP2010, server-side code is discouraged. The problem is ...
0
votes
2answers
24 views

SP 2010 CSOM Javascript: serverRelativeUrl fails

I have a custom html and javascript file housed within a document library of a subsite: http://teamsite/project/testing%20site/shared%20documents/test.html and ...
0
votes
0answers
10 views

405 Method Not Allowed when creating new item in SharePoint list from remote site

I want to create a simple webpage with a form that can create new items in a SharePoint list. I want to make this as a remote site that just connects to sharepoint. Since I had a problem with REST ...
0
votes
0answers
14 views

Make Sharepoint 2013 forms read only

I have a need where I need to add a "SUBMIT" Button to sharepoint New and Edit forms along with the default Save and Cancel Buttons. On click it should assign read only permissions to the item to the ...
1
vote
0answers
20 views

Changing client web part properties Title/Description with diffrent languages

We want to change our client web part Title and Description depending on Supported locales(languages). The Validation checklist for apps: ...
0
votes
1answer
39 views

Pure clientside webpart for Office365

I want to build a pure clientside (angular) webpart for my own environment. I want to have as small of a footprint as possible (So please no app domain or sandboxed solution). It's necessairy this ...
0
votes
0answers
19 views

Click to Auto-Upload Templated File in SharePoint

I have a unique use-case that I am trying to address for a project that I am working on. I am looking to find a way to bind an onclick event to the SharePoint file-upload function to upload a file ...
-2
votes
1answer
18 views

taking user to particular site collection on clicking webapplication url

I have 4 users who has access to 4 different site collection,when he clicks on the webapplication url he should see only the site collection that he belongs to.he wont be able to see other site ...
0
votes
5answers
123 views

Access Denied on ListView Web Part

I have a SharePoint App that I am creating for SharePoint Online. I am leveraging the out of the box SharePoint Snippet in Visual Studio using the listview snippet. List View Snippet: ...
0
votes
1answer
22 views

How to apply deferreds to execute function 3 times in a row??

I am trying to executed the same function 3 times in a row, but get errors while doing that. Apparently the scripts runs faster than the execution. Code: $("document").ready(function () { ...
7
votes
3answers
3k views

Can't upload a non-text file to SharePoint App via REST API

I am using the following REST code to add a file as an attachment to a SharePoint 2013 list item. <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server"> <SharePoint:ScriptLink ...
0
votes
0answers
18 views

Add custom javascript directly on SharePoint installed pages (Application pages)

I know there are ways to add custom JavaScript to make changes in SharePoint installed pages like delegate controls, custom actions. So, these all are using feature then deploying that feature to ...
1
vote
1answer
507 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 ...
0
votes
0answers
23 views

Client people picker on Sharepoint View Custom Forms

Can someone tell me how to have the default client people picker control with the auto complete functionality on the custom view form in Sharepoint 2013? Once the default view form is customised, the ...
0
votes
1answer
37 views

Uncaught TypeError: undefined is not a function

I access my web in javascript code in SharePoint 2013. I'm using Jquery and KnockOutJS for my other functions. So I have added following urls above my code. <script type="text/javascript" ...
0
votes
1answer
421 views

Hiding Column on a List View with Grouping

I have a list that I need to dynamically hide columns on based on user. Sort of a rudimentary Column Level security type deal. This is being done through Javascript and JQuery to simply not display ...
0
votes
0answers
18 views

Person type url on a display template

I have a list which has a person type in it. I am taking this person type column and adding it to the display template. However how can I get the URL so it goes to the mysite of the person. At the ...
0
votes
2answers
22 views

Javascript isn't linking in IE for a webpart

I'm adding a web part(farm solution) into SharePoint 2013, the problem that I am receiving is that any scripting link I add(specifically jquery in this example), doesn't seem to be found by internet ...
0
votes
0answers
8 views

Uncaught TypeError: Cannot read property 'parentElement' of null

This one is weird I hope somebody can help me. I wrote a JavaScript with KnockOutJS code to display items in a custom list, When I try to run the sample, I get the following in Google Chrome's ...
1
vote
1answer
351 views

A script on this page may be busy, or It may have stopped responding

there is one webpart on page that rotate the images so i added a jquery to rotate images and its working fine but after sometime it gives error like A script on this page may be busy, or It may have ...
0
votes
0answers
31 views

custom list, highcharts not displaying properly

var myData = [5]; var owlName = ["Tim"]; var j = 0; var items; $(document).ready(function () { ExecuteOrDelayUntilScriptLoaded(function getData(){ ...
0
votes
1answer
56 views

SharePoint 2013 REST api to update list item- Uncaught ReferenceError: etag is not defined

I try to update my sharepoint list using REST api. But following code throws exception in browser "Uncaught ReferenceError: etag is not defined " Can someone help to resolve this issue? // update an ...
0
votes
0answers
21 views

Sharepoint attachment control

I'm using designer to create a custom edit form and would like to create two controls in that would upload attachments to the list item, I'm using - ...
1
vote
1answer
48 views

Set Managed Metadata Value on SP2010 Item using JSOM

Okay I am fairly sure that I've searched through everything, but I can't seem to figure out how to set a managed metadata value for an item using JSOM in 2010... Why can't we just upgrade to 2013... ...
1
vote
1answer
2k views

JavaScript: How to reuse the “Working on it…” pop in

Sharepoint 2013: In have custom JavaScript code that makes Ajax calls. While loading I'd like to show Sharepoint's loading pop in: That is the one that greys out the underlying page and centers a ...
0
votes
1answer
48 views

How to close Dialog box?

I have Ribbon button that when it's clicked you get a dialog window open. On that window I have a button that I want to use to close the dialog window when clicked. This is the code for the dialog ...
0
votes
2answers
26 views

Image in sharepoint 2013 rich-text control generate js error

I have sharepoint 2013 rich text control in page-layout.After adding image in rich-text control ,I am not able to get any html object using js.I am using below line to alert div object. ...
0
votes
1answer
543 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' ...
1
vote
0answers
112 views

SP.SOD.executeFunc not calling function

Compa've added following script to JSLink property of a custom content type ( JSLink="~sitelayouts/ProjectFolder/script1.js" ): window.alert("started"); SP.SOD.executeFunc("sp.js", ...
3
votes
1answer
377 views

Using SharePoint 2013 Cross-Domain Library in a simple web page: is it possible?

I have a web page hosted on a server, say at http://SVR1/path/index.html, and I would like to access some list items in a on-premises SharePoint site hosted on another server, say at ...
0
votes
2answers
61 views

Retrieve single field using CAML Query in Sharepoint using Javascript

I have a List called ProjectInformation and contains following Fields.. ID ProjectName1 ProjectManager ProjectExecution 1 EDS PPB Time and Material 2 CS ...
0
votes
1answer
829 views

Add new item to child list and refresh the parent form - multiple lookup

I've created a parent list (Vendors) and a child list (software list). There can be multiple vendors for one piece of software. I've created a custom new form with a link which opens up a modal to add ...
0
votes
1answer
63 views

How can I attach a file from SharePoint document library to an item in a SharePoint list (javascript)?

In my current project I have encountered an interesting problem. I am trying to attach multiple files (pdf's, doc's etc. not only text files) to my SharePoint List, getting them from a document ...
3
votes
2answers
425 views

Creating a SharePoint Wiki Page via JavaScript and REST or CSOM

I'm fairly new to developing SharePoint 2013 Apps, and I was tasked to customize the Create New Wiki Page for a Site. The user has to type in the Title, I do some processing, and then when everything ...
1
vote
0answers
37 views

Upload using JavaScript, outside Sharepoint

Is it possible to upload a file to SharePoint 365 / OneDrive Business, using pure JavaScript or jQuery, when running from an external website? (Not a SharePoint site) I have written some C# code, ...
2
votes
1answer
424 views

Create Multiple List Items with One Function

Is it possible to create multiple list items with one function in JavaScript / ECMAScript? I know that a single item can be created with the code below, but would like to know if it is possible to ...