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

Pull Data Into Individual Web Part

I know what I would like to do, but I do not know how to search to find the best solution. I have a list of URLs on a list that link to stories. I do not want the user to see the entire list of ...
1
vote
1answer
46 views

Create an app from JavaScript file and Item List

I have a javaScript file that pulls info from a custom SharePoint list. I would like to use this setup on some of my other sites as well. How can I make a sharepoint app so that I can click and drop ...
0
votes
0answers
37 views

Activating SharePointPlus

OK, I have inserted your SharepointPlus as well as jquery.SPServices-2014.02. here is my simple code- but what activates it? <html xmlns="http://www.w3.org/1999/xhtml" ...
0
votes
1answer
64 views

Using knockout in SharePoint for reading list items

I have used the below code for reading list items. But when I try to debug this code, the functions are not getting called.. 'use strict'; var hostweburl; var appweburl; function ...
0
votes
1answer
135 views

Create list item by restful

Code: function createListItem() { var item = { "__metadata": { "type": "SP.Data.listnameListItem" }, "Title": "testsetsetset", ...
2
votes
4answers
1k views

Load JavaScript from external file in a web part

In order to hide the title of the page, I have placed JavaScript in a Script Editor presently. I want to add this functionality to few other pages. Is it possible to save this JavaScript in an ...
0
votes
0answers
62 views

Date parsing from JavaScript works for Firefox, not for IE

I am trying to parse a date in my java-script code, which is working fine in Firefox browser but not returning correct results in IE. below is my sample code: var shiftDate=recordArrayItem[i][0]; ...
0
votes
1answer
126 views

Get site url from list item sharepoint 2010 javascript

I have the following code and need to obtain the site url to form a hyperlink. How can this be achieved? Code prints out title but I cant get to the web url . I want the url of the site that the list ...
0
votes
1answer
139 views

Validating DatetimeFields in SharePoint 2010 List Form PreSaveAction Call

I want to perform a validation for today's date and user entered date in my custom list form's multiple datetime fields ReqstRecvdDate Field DueByDate field ReqstRecvdDate can not be greater ...
4
votes
1answer
212 views

Context menu not showing on right click

I don't understand how in SharePoint you can activate a right-click context menu on the rows of a list web part. I have two different pages. In each page I have 4 views. For some reasons (?) in page ...
1
vote
1answer
130 views

ISO DateTime to Local DateTime using javascript

I have a ISO DateTime string "2015-10-05T08:30:00" getting through REST request. Now I need to convert it into my local DateTime. The way I am trying var isoDateTime = new ...
0
votes
0answers
38 views

Allow anonymous users to run a PURE Javascript that uses REST API 2010

I wanna run a query via REST Api 2010 on a Sharepoint 2013 Server, which returns the data in JSON format. The results should be displayed on a anonymous site after beeing processed via Javascript. I ...
0
votes
1answer
41 views

sharepoint user profile properties Client Web Part

im trying to get user profile picture in my Cilent Web Part but I get a error massage (_spPageContextInfo is undefined). I'm useing REST API jQuery(document).ready(function () { ...
1
vote
1answer
242 views

List Web Part CSR issues when sorting/filtering

I'm experiencing an odd behavior using the Client Side Rendering (CSR) functionality of SharePoint 2013, with a standard List Web Part (LWP). Here the js code (referenced using the JSLink property of ...
0
votes
1answer
114 views

Create Tabs for SharePoint 2010 ListForms - newform and editform

I have one SP 2010 List having 77 columns and created the customnewform.aspx and editform.aspx using SP Designer.But its not user friendly,as user has to scroll down every time for reaching the 70+ ...
0
votes
0answers
22 views

SharePoint Java Image Slider Script Fails in Newer Browsers

I have a Java script given to me that probably is 8 years old or more. It displays photos and text on a SharePoint 2013 home page, fading out to the next photo and text. It's similar to the SharePoint ...
0
votes
0answers
29 views

sharepoint user profie picture

I have created an app part that collects the current user profile picture function GetCurrentUser() { $.ajax({ url: _spPageContextInfo.siteAbsoluteUrl + ...
1
vote
1answer
27 views

SPService - GetItemList - How can I populate custom ListItems?

I have a custom SharePoint list and want to get all items (title, kpi, delta) populate in a html site - I am using SPService with getitemlist. For Title its working fine, but for kpi and delta the ...
0
votes
1answer
42 views

is it wrong to use “min-Width:105%” & “max-Width:105%” to expand my list views on small sized screens

I'm working on a Team site inside SharePoint 2013, and I've defined many issue tracking lists. and for all these lists I'm showing the Description field (which is of type Enhanced Rich Text) inside ...
0
votes
1answer
174 views

Clear multi-value lookup via Jquery SP 2013

I am trying to clear a multi value lookup field using javascript when an item is re-edited. I have tried all the following combinations without success $("input[id^='Test'").removeAttr(); ...
0
votes
1answer
86 views

How can I check if a [recurring] event is occurring *right now* using JavaScript?

I have a site with a calendar. In the calendar I have a mix of recurring and non-recurring events. On a WebPart page I have a CEWP that uses WebServices (_vti_bin/Lists.asmx?op=GetListItems) through ...
-1
votes
1answer
203 views

Fetch the SharePoint field values using SPServices in a EditForm.aspx in SP 2010 Listform

I need to fetch the SharePoint field values using SPServices in a EditForm.aspx in my SP 2010 Listform. As far as I know, some examples, one of them - I tried below - used to fetch the current logged ...
1
vote
1answer
92 views

Personalizing Add In Parts with javascript in Sharepoint 2013

We have a customer that wishes to make it easier for the user to customize their webpart pages. We are therefor using javascript to build a simple grid where users can add, remove and move Add In ...
0
votes
1answer
144 views

Validate enhanced Rich Text Field on PreSaveAction call on newform in SP 2010 List Form

How to validate Enhanced Rich Text Field on PreSaveAction call in my SP 2010 list form's newform.aspx. I tried with JavaScript but it didn't work. I followed Marc's blog here But the issue is, ...
8
votes
4answers
544 views

Changing date format using javascript

I am getting date in 2015-10-30T05:00:00Z format from a SharePoint list using rest. Please help me to get the date in 2015-10-30 format using JavaScript.
0
votes
1answer
67 views

How to show the first N characters of my Description field inside the list views? [duplicate]

I am working on a Team site inside SharePoint server 2013. And on the list views I am showing the Description field, which is of type enhanced rich text. Currently we are facing these problems:- If ...
2
votes
0answers
992 views

ULS logs filling up with Error: Failed to get document content data

Our Sharepoint farm's homepage constantly generates these "High" log items, making other debugging difficult. As far as I can tell, it doesn't acutally cause any problems. Error: High - Database ...
0
votes
1answer
82 views

Client Context SharePoint and Javascript

I need some understanding on using clientcontext and scope. I want to run code in sitecollection page that fetches information from a particular list column (status) that exists in all sub-sites and ...
0
votes
1answer
162 views

jQuery Checkbox with UnChecked Event Handler in SharePoint 2010 List Form

I need to write a javascript/jquery code that make the checkbox if unchecked do not put a validation of a textbox and if checked the text box is validated for null or empty in my SP 2010 list form. I ...
0
votes
0answers
51 views

Lookup columns with JavaScript

I have two lists with one column that is a lookup column. How can i bind the two lists together with JavaScript or can i retrieve the data from both lists with the lookup column and JavaScript? Or ...
0
votes
1answer
27 views

set client context in sharepoint javascript

I have the following code which iterates for subsites: while (enumSubSites.moveNext()) { var Site = enumSubSites.get_current(); I want to get the associates list items from ...
2
votes
1answer
29 views

Top visited entries on site collection blogs

I want to develop a web part which shows the ranking of entries of a site collection. By now, I think a way to do this is to use a Javascript code added on the master page which adds a row to the ...
1
vote
1answer
138 views

Retrieve list status from sub sites using SharePoint Javascript

I'm creating a status page in the site collection that needs to display List Status of all the subs below site collection. All the sub-sites have the same list 'Projects'. So the idea is to iterate ...
3
votes
2answers
307 views

Recent documents for currently logged in user (Client side)

I want to achieve something like shown in Image below. I want to display Recent Document visited by logged in user. I have tried it using Content Search Web-Part. I also tried to achieve it using ...
2
votes
1answer
74 views

Display image(preloaders) before content is loaded WebPart - SharePoint 2013

I'm using a plug-in called lightSlider and I notice it doesn't display the whole content on first load until I refresh. I have tried using 1. windows.load, 2. ExecuteOrDelayUntilScriptLoaded, 3. ...
2
votes
1answer
268 views

Make a Choice Field-dropdown- as ReadOnly

Is there a way to change the EditForm in my SP 2010 site to display a dropdown column but as Read Only, so the user can not edit that column after the item has been created.I added the below code, ...
2
votes
1answer
438 views

JSOM How to get User Id

When trying to resolve a user with the ensureUser() call, the object is always returned as undefined even though the user exists as a Domain and SharePoint user. //Calling code. var currentCtx = ...
0
votes
0answers
43 views

Code Break Down Help: Start SharePoint Site Workflow btn OnClick

I'm rebuilding a project and I just need help following the previous developers code as I'm new to this. I am aware that this is the GUID for the site workflow: 554AAB6B-5318-4106-BA40-E7336FCE029B ...
0
votes
1answer
206 views

SharePoint custom edit form button javascript onclick set fields value

I'm fairly new to developing and I have a custom form that I made using SharePoint designer 2010 - I need to start my workflow on the click of the button, but I'm not using a site based workflow, so ...
0
votes
1answer
109 views

How to delete a row from an Excel Table using the client-side Ewa object in a SharePoint Excel Web Part

The SharePoint Excel Web Part client side API ,Ewa (https://msdn.microsoft.com/en-us/library/office/ee589018.aspx) does not seem to have any methods to manipulate an Excel Table (i.e. a ListObject in ...
0
votes
0answers
14 views

save a sub-site as a template with content and update URLs when adding/importing

I have a sub-site with: a document library with some JS and HTML files a document library that I've added a webpart to in the EditForm.aspx and DispForm.aspx -- the webpart references one of the ...
1
vote
2answers
236 views

How to get byte array of selected document?

I have a javascript function where I would like to get the byte array of the selected documents. How to do that? function DoSomething() { var context = SP.ClientContext.get_current(); var ...
0
votes
1answer
89 views

JS Link create a Column / read metadata of a document

I'm new to SharePoint and JS Link. I have to read the metadata of a document in a document library. If the document is locked for the current user, I want to create an extra column and display an ...
0
votes
0answers
20 views

How to do a webservice call from clientside in js? [duplicate]

I would like to execute a webmethod in a SharePoint webservice. See extra info below: SharePoint webservice: http://myCompany.com/_vti_bin/Officialfile.asmx Webmethod: SubmitFile How to do this in ...
0
votes
1answer
166 views

How to always open documents in a document library in a new tab for Sharpoint 2013 Foundation

How do i tell Sharepoint to always open documents(mostly .pdf and .docx/.doc)in a new tab when they are saved in a document library? This has been disgussed in another questinon before. I tired to ...
1
vote
2answers
128 views

Prerender executing twice

I have some prerender code that is being used to get information from another list to add into the display of the main list. I am puzzled - the prerender code executes twice. (function () { var ...
0
votes
1answer
35 views

executeQueryAsync doesn't follow success nor fail route

I have the following code: var markup; function generateTree() { var lines = document.getElementById("imputs").value.split('\n'); var targetWeb; var clientContext; var contexto = ...
0
votes
0answers
73 views

Retrieve direct reports to a manager in a SharePoint 2010 list

I need to design a SharePoint(2010) list which automatically retrieves direct reports of a manager and populate them in a drop down and when any of the employee/direct report is selected in the drop ...
1
vote
0answers
20 views

How to get an Excel table's Summary property from JavaScript on the client side using the Ewa namespace

Background: The value of the Summary property corresponds to the setting of the Description box in the Alternative Text dialog box, which is displayed by right-clicking on an Excel table and then ...
0
votes
1answer
502 views

How to set /auto populate Person/ Group field in SharePoint 2013 New/ edit forms using JavaScript?

How to set /auto populate Person/ Group field in SharePoint 2013 New/ edit forms using Javascript? I tried this code and its not working in 2013 <script type="text/javascript"> //fiedName is ...