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
votes
2answers
35 views

What is managed code. Is javascript a managed code?

What is managed code. Is Java Script a managed code?
0
votes
0answers
19 views

Remove 'onmouseover' sorting options for Business Data List Webpart

I have a Business Data List webpart displayed in SharePoint. The data that comes into SharePoint is formatted as general, so the sorting doesn't work. It sorts based on the 'edit view' settings of the ...
1
vote
3answers
2k views

Print from Modal Dialog

I would like to print everything in a newform.aspx/editform.aspx modal dialog. I was considering creating a Web Part or a bit of JavaScript that was nothing more than a print button that specified ...
0
votes
2answers
27 views

Speedometer gauge using calculated columns?

My idea is implement a speedometer gauge at the top of my page that will change dynamically based on the average of a column, what i'm thinking is to use three speedometer images (low/med/high) and ...
0
votes
1answer
796 views

SPServices - GetRolesAndPermissionsForCurrentUser

I have a list where one group of users is not allowed to delete items but they have view and edit permissions. All items in the list contain an attachment. However, users are not allowed to delete the ...
0
votes
1answer
45 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 ...
3
votes
2answers
77 views

REST API along with startswith and tolower function method in SharePoint 2013

I would like to bind all users into textbox autocomplete event. I done with below script but it is consider case sensitive expression while searching the results. $("#txtselectuser").autocomplete({ ...
0
votes
1answer
343 views

Write items from a SP list to html

I've very recently picked up SharePoint and have a limited knowledge of programming so you'll need to bear with me here. I'm currently building on a development site collection in SharePoint Online ...
1
vote
2answers
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
45 views

O365: Unable to get property 'get current' of undefined or null reference

I'm on SP2013 in an O365 environment. I am trying to pull some data from a list and render that data using the Google charts API. I am doing this in a content editor web part that points to an HTML ...
0
votes
1answer
43 views

Check it in error sp.ribbon.js

Recently I've started getting this error when trying to 'Check it in' while looking at a page. The error in the JavaScript console is: SCRIPT445: Object doesn't support this action File: ...
1
vote
1answer
33 views

Some javascript not working in web part

I'm noticing that not all of my Javacript - all of which worked in a basic ASP.NET Web Forms application - is working. I'm not sure what could be causing this. For example, the following JS/C# calling ...
0
votes
1answer
305 views

Add showWaitScreenWithNoClose to SPServices GetListItems

With a button on page which calls the function createListItems() which is added to the page as a link in a CEWP. The function takes 10-25 seconds to complete (get items from one list and add them to ...
0
votes
1answer
21 views

Issue on Chrome - Javascript list view

I have an issue with this simple Javascript code into a SharePoint list view page. <script src="//code.jquery.com/jquery-1.11.0.min.js"></script> <script> ...
2
votes
4answers
5k views

How to get result from SP.UI.ModalDialog.showModalDialog back to C#?

I have a code on a visual web part user control (see below): Could you please advice, how to get value from the callback function back to the C# in code behind to process it? <script ...
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
63 views

How to recreate a people picker (or anything else that can autocomplete names)?

I have a page on which I have a drop-down list with the names of all the groups that I created in SharePoint. When a user picks a group from that list, it will display extra information on the page ...
0
votes
2answers
38 views

How to add content above list view using JS?

I am using JSLink code I found at Office Dev Center to modify my fields showing percent values to display progress bars. What I would like to do further is add some text above the list itself, ...
0
votes
0answers
16 views

Is there a JavaScript event that fires when the yellow message bar is shown?

I want to call a function when the DeltaPageStatusBar is displayed.
1
vote
1answer
56 views

Updating document metadata using Javascript or jQuery

I have a large, complicated script that copies selected documents from Library A to Library B when a user clicks a button. At the end of the script (as a final step), I'm calling the three functions ...
0
votes
0answers
19 views

Getting the version history of a list item

I am creating a content web part and one the list items is used with versioning. I want to show all the versioning on the page. Is there anyway to do this? maybe using CSOM or something
0
votes
1answer
34 views

“Permission Denied” error in IE after adding content editor to form

A site that I have not modified in several weeks has suddenly stopped functioning in Internet Explorer as it has for the past few months. I have a content editor in my list on the New, Display, and ...
1
vote
1answer
394 views

How to get server datetime without postback using JSOM or services

My application page may be long time without reloading, and user changed system date and time. And I need to know datetime from server, not from client.
0
votes
1answer
24 views

Get images from a SharePoint Library

I'm making a Carousel that need to get images by date of a SharePoint Library , all the code of the carousel, and configuration page i have already maked, but i dont have no idea of how i get the ...
-1
votes
0answers
52 views

Javascripts Conflict

I have two scripts on my SharePoint page that has jQuery inside and JSOM. One of the script only works if the other script have not been added. I get this error code: Uncaught Error: The ...
0
votes
1answer
44 views

javaScript will not fire unless the users do a hard re-fresh (ctrl F5) for the page

I have added the following script to my EnterpriseWiki.aspx page layout inside an enterprise wiki site collection:- <script type="text/javascript"> _spBodyOnLoadFunctions.push(function(){ ...
2
votes
0answers
55 views

How to trigger the click event of the SharePoint OOTB list's new form Save button?

I have custom list in which there are two mandatory fields, and I want to ask the user if he wants to again enter the new item after one item is created. I searched over the internet and found this ...
0
votes
2answers
20 views

Setup for accessing an external SQL database from SP 2010 using Javascript

I want to try to access an external SQL Server 2012 database on a SharePoint 2010 site, using javascript. I found one really interesting, good blog post about it online, but the link to the example ...
2
votes
1answer
371 views

“Type SP.ULSTraceLevel has already been registered” error while applying javscript to NewForm.aspx

I have a custom list in which I want to apply the javascript in new form of that list. Javascript loads the user profile property of the entered user in the people picker control. I am getting ...
0
votes
1answer
34 views

Get user Login from User or Group field

I have a list with User og Group field. I've retrieved item from it, now I need to get user's Login. By reading User or Group field I can get only user id and account name. here's my code: var ...
0
votes
3answers
1k views

Get current ListItem with ECMAScript

I need to calculate a value for a custom ListItem field, based on some values on the same form and also on some values from other lists. I should be able to do this, using ECMA Script. I started by ...
0
votes
0answers
47 views

2013: load custom “clienttemplates.js” file

Requirement: I want to replace the file clienttemplates.js found in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS with a custom version. I couldn't find the ...
1
vote
1answer
63 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: ...
1
vote
2answers
62 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);
1
vote
1answer
33 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(); ...
5
votes
9answers
22k views

Getting a count of list items in a list via ECMAScript

I have a SharePoint 2010 web site with a master page that has a counter on it. I'm trying to update that counter using the ECMAScript. The code I have falls nicely into the success method - but I ...
0
votes
2answers
74 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
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
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
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
45 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: ...
3
votes
2answers
43 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
11 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
9 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
35 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
641 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
40 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
29 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 ...