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
1answer
26 views

ReferenceError: itemID is not defined (JavaScript)

I'm trying to grab data from an external list using ecmascript. I'm running into a slight problem. I'm not getting an error popup, however, in debugger mode it's referencing the above error message ...
2
votes
2answers
2k views

JSLink: Render FileLeafRef with Title in document library

JSLink is the greatest thing since sliced bread. Not. There are some weird issues concerning standard stuff and I'm not sure whether these are limitations or I'm doing something wrong. I want to have ...
1
vote
1answer
24 views

Creating an app to pull in announcements via JSON

I have the code to pull in my data, but I'm new to Sharepoint and need some help. Where can I find some resources to figure out how to get started. I'm used to building stand-alone sites with HTML, ...
3
votes
1answer
50 views

Can I immediately call a function when selecting data in a SharePoint 2010 choice field?

I am trying to show/hide other fields depending on the choice selected from a specific choice field in my SharePoint form (NOT InfoPath). I can get it to work using "onfocusout" but that does not work ...
1
vote
1answer
563 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
0answers
17 views

Get the last rated item in a SharePoint list

we have a SharePoint list with social rating feature enabled. On the homepage I want to display the "Latest Voted Item" of that list. Is it possible to get the last rated items in a SharePoint list ...
0
votes
0answers
16 views

How to retrieve items from Camlquery

How can I retrieve items from the date range below: 2014-12-07 08:00 to 17:00 2014-12-08 08:00 to 17:00 2014-12-09 08:00 to 17:00 With my query right now I am receiving 2014-12-07 08:00 to ...
2
votes
1answer
442 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
0answers
25 views

How to get days 5 days before and 5 days after

I want to query items from a calender list 5 days before current selected date from datepicker, and 5 days after selected value from datepicker? This code takes the selected datepicker date from ...
1
vote
1answer
421 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.
9
votes
8answers
10k views

How do I determine a user's SharePoint group membership using the client object model?

I want to redirect users from a landing page to another page in SharePoint 2010, based on their group membership. I need to do this using JavaScript (ECMAScript) and not server side code.
0
votes
2answers
25 views

Retrieve choice menu item from list

I have a list 'choiceOpt' which contains a choice field 'choiceOptions' having Yes ad No as options. I want to retrieve this Yes and No programmatically (javascript) . Kindly help.
9
votes
2answers
3k views

(Solved) Start a Workflow of the Host-Web via SharePoint App and JSOM

The Last Update is the Solution I have got an App for SharePoint 2013, which needs to start a Workflow. This Workflow is in the HostWebContext, not in the AppContext. The List, the Workflow is ...
0
votes
1answer
19 views

How to determine authenticated status on client side?

Do you know any syncronous way to get IsAuthenticated status for currentRequest in client side via javascript? I can get current user via client model, but it will be asynchronous. ...
0
votes
0answers
12 views

Retrieve items from calender List only get first item

I am trying to get all items from my calender list i want to get EventDate and Enddate, here is my code, function onQuerySucceeded() { var startCon = listItemCustom + "T" + "08" + ":00" + "Z"; var ...
2
votes
5answers
2k 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.
2
votes
3answers
2k views

SharePoint 2010 - Create link to document library content type

Have a document library with multiple content types, each using a template. Example, user click on 'New Document' > 'Content A' and a Excel form will open. I'm trying to create links (buttons to be ...
1
vote
1answer
515 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
13 views

Array EventDate And EndDate

I have two arrays 1 for EventDate and One for Endate from my calender List, var listItemEnumerator = collListItem.getEnumerator(); while (listItemEnumerator.moveNext()) { var oListItem = ...
0
votes
0answers
12 views

ECB custom action item issue

I deployed a custom ECB item action, I can see it at item level but when I click on it, nothing change. This is the definition of the custom action: <?xml version="1.0" encoding="utf-8"?> ...
1
vote
1answer
14 views

Removing the href from the day number link in a calendar

I'm creating a calendar for work requests into the team, I want to limit the view to month only which I've done by hiding buttons etc with css and a little Javascript, if you look at the image below ...
0
votes
1answer
32 views

Loop true list using csom

How do i loop true, items in calender list in SharePoint, right now my code only displays the first value from the list and not the second, Can someone help me? function onQuerySucceeded() { var ...
0
votes
0answers
16 views

Set external content type by javascript

In the NewForm, I need to set an external Content Type lookup field by javascript. How can I do it?
0
votes
0answers
14 views

How to split EventDate and EndDate

i am trying to split on "," working with eventdate and endate but i dont get it to work. (undenified) var listEventDate = oListItem.get_item('EventDate'); var listEventdt = new ...
4
votes
5answers
3k views

Retrieve All list items with AngularJS and ClientContext

I would like to ask you if there is a possibility to use ClientContext with AngularJS? In this way I want to take all items, sort them, filter, make some modification and etc. Later maybe I will add ...
1
vote
1answer
22 views

SP2013: Changing Width to Home Page Web Parts

The issue that I'm having is that I would like to change the width to the web part zone on my site home page. I want to change the width of the left web part zone so that it moves a few inches from ...
4
votes
4answers
125 views

How to update the name of an attachment from a list item (if possible, with SPServices)?

Like the title says, I'd like to know how to update the name of an attachment from a list item. The document name.I've figured out how to get the attachment from a list item (see code below), on the ...
0
votes
1answer
64 views

Error:Input string was not in a correct format. (Javascript)

I'm using SharePoint 2013 online and trying to save a item to a folder content type in a document libary I think the code is nearly rigth but i am getting this error when i hit save button have anyone ...
0
votes
0answers
8 views

Display items that are free to book and not items dates that exists

I have 2 items in my list right now it only displays that my first item in the list are busy and not the second also, because i have to items in the list, any suggestions'? function ...
0
votes
1answer
29 views

Get List Items from list linked by lookup

I'm making a JavaScript extension for form elements. The goal is to bind it to a lookup and react on change. Since I'm weak at webservices, I'm using SPServices. var lookupFieldInternalName = ...
-4
votes
2answers
47 views

Get all items from list

How do i get all items from list? Here is my code, function checkFreebookingdateTime() { getListCalender = document.getElementById('CalenderListDrop').value; spHostUrl = ...
0
votes
0answers
5 views

Unable to set collListItem or nullreference

Here i am trying to get the items from the dates between 8-17 on the date 12-04 The result works fine, I am trying to do the same using an SharePoint-Hosted app, Here is my code, it takes the ...
1
vote
1answer
42 views

Proper way to call multiple functions using SP.SOD.executeFunc

I need to make sure sp.js is loaded before I call several functions. I currently call them as follows in SP 2013. It works, but I suspect there is a better/more efficient way. ...
1
vote
1answer
469 views

Show persistent status bar + form to update easily

I want to keep informed the end-users of my SharePoint site of any issue or relevant informations. Naturally, I would like to do so by filling HTML elements (input and select tags). Hence displaying a ...
1
vote
0answers
44 views

JavaScript error with paging in community discussion SP 2013

I have a community site with many discusssions. One of them is a discussion divided into 3 pages (each answer has text and animated gif). When I try to go to page 2, in default (Flat) view mode, I ...
0
votes
0answers
12 views

Uncaught ReferenceError: $ is not defined Page.aspx

I want to READ list data from with the help of RESTAPI in SharePoint. I use below code to do the operation. <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> <script ...
3
votes
3answers
2k views

Adding notification from server side, code ignoring ExecuteOrDelayUntilScriptLoaded

I'm trying to add a UI notification from server side. To do this, I've written this code in one of my code behind event handler: private void AddNotifySuccessScript() { var ...
0
votes
1answer
59 views

Getting the list id for a specific list

I am trying to get a list id for a specific list but it just goes to the failed method Here is my code: var SFW = window.SFW || {}; var NBSInboxResponse = SFW.NBSInboxResponse || {}; ...
0
votes
1answer
16 views

SharePoint 2010 SP.UI.RTE IndexSizeError: Failed to execute 'setStart' on 'Range'

Using Chrome, editing page layouts that contain HTML edit fields will not save any changes made via the edit page view. Hitting save just goes back to the page without the recent edits. The error we ...
1
vote
1answer
18 views

Unable to get property 'showmodaldialog' of undefined or null reference

I got "unable to get property 'showmodaldialog' of undefined or null reference" error when I try to open the list displayform in SharePoint 2013 modal dialog. This is my script code: <script ...
0
votes
1answer
22 views

Sharepoint 2010 : Custom List Context menu (ECB) editing and customizing with custom actions

I want to Add a custom Action or link as "Email to" in the EditControlBlock or the Context menu for custom list that i have created as shown in the Picture below. This "Email to" button should send ...
1
vote
1answer
23 views

Office 365 how to hide ribbion

I want to hide ribbon like :- Outlook, Calendar, People etc in below print screen marked in red round I want to hide only these options. Please advice.
2
votes
2answers
807 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 ...
2
votes
1answer
488 views

In Chrome, Async Postbacks Fail

In Google Chrome, inside of an Update Panel, the first async postback succeeds, but the second silently fails. The issue is discussed many places: ...
0
votes
1answer
464 views

unable to get property 'getEnumerator' of undefined or null reference error

When i try to retrieve list items in sharepoint list using javascript i get the error my code <script src="/_layouts/MicrosoftAjax.js" type="text/javascript"></script> <script ...
1
vote
1answer
25 views

stopping black x when retrieving profile pic, not filling in details

I have a page in which I am getting a profile pic from mysites. It asks for the password and when you fill in the details it does what its supposed to and the profile pic appears. However when you ...
4
votes
1answer
2k views

“The XSS Auditor refused to execute a script in…” from Chrome when using <script> tag in content editor webpart

Embedding javascript in a content editor web part triggers XSS Auditor error in Chrome when editing any webpart on the page containing the content editor web part. Steps to reproduce 1 - Use newest ...
0
votes
1answer
33 views

How to store the hit count of a page in a sharepoint list.

I have created a page and now I want to get the track of hit count of that page. I want to store that no. in a sharepoint list. On every page load the count should get increased by 1 and get stored ...
0
votes
2answers
28 views

How to get app url?

I'm creating a javascript app for sharepoint, and I need to get the url of this app. The same url that is in content of site. I need another solution because when i try to simply reload the page with ...
0
votes
1answer
22 views

Master page Header

I wish to customize my master page, just adding a simple header and removing the standarda SharePoint toolbars. How can I do it easly? Thanks