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)

1
vote
1answer
37 views

How do you get the default label of a term through JavaScript?

Most of this code comes from an answer to a previous question. I'm trying to take it one step further now and get the actual default label string. var context = SP.ClientContext.get_current(); ...
0
votes
0answers
12 views

Javascript Error inplview.js IE only

We're experiencing an issue where Internet Explorer 8 is reporting an Expected ';' in the minified inplview.js file. It doesn't affect any functionality it seems, but we have no idea what's causing ...
0
votes
0answers
26 views

New custom Create form does not auto complete “Owner“ field

I have an Issue Tracking list , and I have created a custom Create form using SharePoint designer , as follow:- The problem I am facing is that the owner field will not autocomplete the people ...
0
votes
2answers
75 views

Create json data dynamically from list using javascript

Can anyone tell me how to generate json data from SharePoint lists in the below format using java script. var jsonArray = [ { "user": { "id": 100, "screen_name": "d_linq" } }, { "user": { ...
0
votes
0answers
6 views

Provision WebPart from Appdomain

I can provision and install a webpart on a page from the app-domain, but its always invisible. I see that the webpart have been added in Web Part Page Maintenance (?contents=1). But i cant edit the ...
0
votes
2answers
46 views

When do you use SP.js?

This might be a very noob question, but when do you actually use SP.js? In my SharePoint site I am using ajax queries with the REST api like this: ...
1
vote
2answers
64 views

How can I get information about a term through JavaScript?

What I want to do is something like: var myTerm = getTermInfo(55c6801f-78b3-485f-b811-530bec1961e9);
0
votes
0answers
12 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
10 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
18 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 ...
3
votes
2answers
44 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
1answer
45 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 ...
3
votes
2answers
36 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"> ...
0
votes
1answer
45 views

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

I have this query: <View> <ViewFields> <FieldRef Name='Title' /> <FieldRef Name='itlgCategoria'/> ...
0
votes
0answers
30 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
53 views

How create Sharepoint online site with custom template?

I need to create site in SharePoint Online from SharePoint hosted app. I used code like this: var webCreationInfo = new SP.WebCreationInformation(); webCreationInfo.set_webTemplate('STS#0'); ...
1
vote
2answers
47 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 ...
0
votes
1answer
44 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
70 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
23 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
18 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
1answer
65 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
0answers
23 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 ...
0
votes
1answer
47 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 ...
-2
votes
1answer
21 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
1answer
26 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 () { ...
0
votes
0answers
22 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 ...
0
votes
0answers
61 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
70 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
0answers
42 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
0answers
61 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 ...
0
votes
2answers
25 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
35 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 - ...
0
votes
0answers
45 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
121 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
2answers
32 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
69 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 ...
1
vote
0answers
40 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, ...
0
votes
2answers
98 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 ...
1
vote
1answer
59 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... ...
0
votes
1answer
46 views

SharePoint 2013 Drag and Drop Uploader 'drop here' box placement

I've been working on a SharePoint site that's been custom branded and run in to an issue with the drag and drop uploader in the document libraries. For reasons unknown to me, the 'Drop here...' box ...
0
votes
0answers
55 views

Get selected item ID from Ribbon buttons Element.xml file

Im using sharepoint 2013 online and want the id of selected items is it possible to get the id from this line in the Elements.xml and if so how do i do it? ...
0
votes
1answer
73 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 ...
0
votes
1answer
89 views

sharepoint 2013 - how to run sp.js and callout.js at the same time?

I am currently experimenting with the following script to create a pop-up form on my sharepoint 2013 site. I am addnig the code to a script editor web part... <script type="text/javascript"> ...
0
votes
1answer
25 views

How do I retrieve a user's LogIn name through the Created By colum using javascript

I have a requirement to retrieve the user email from created by column. I have tried with get_lookupValue(), but I got system object error message. Is there any solution to retrieve the user email ...
0
votes
0answers
14 views

use a file js to add ribon action

I'm trying to add a ribbon action in my list with SharePoint Designer. till here, no problems. I'd like to use a js file to collect all the selected items and write an excel file. I've to do this ...
1
vote
2answers
282 views

Get list ID and selected item ID

I use SharePoint Online and working in Visual Studio with SharePoint hosted app I need to get list id and the id of the SELECTED item in the list And i use a ribbon button to show a dialog and want ...
0
votes
0answers
27 views

SharePoint 2013 how to add jquery image loader for image library images

I have added an image library in my SharePoint 2013 site I want that when a user clicks an image it should be loaded with any JQuery image fancy box library to display full image with pup up in ...
1
vote
0answers
72 views

Add Read more link in Summary view of Announcement web part sharepoint 2013?

I have added an Announcement Web part in my SharePoint 2013 in summary view I want to add read more link please help me. I am new to SharePoint Development I want to add a Read more link when my ...
3
votes
2answers
221 views

SharePoint 2013 Add Read more link in Announcement web part each list items

![enter code here][1]I want to add Read more link in my Announcement Web Part I followed this blog post: ...