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

SharePoint cascading drop down on visual web part using client side code

Hi I am working with cascading drop down in a visual web part. I am able to complete this functionality using c# but I want to implement this functionality using JavaScript jquery basically I want to ...
0
votes
1answer
50 views

SharePoint visual webparts for NewForm with client side coding

I need to use visual web parts to create a new item form for a list. I know I can do this by using SSOM.. But I want to reduce the load on the server Can I use CSOM?.. Or is CSOM mainly for sandbox ...
0
votes
0answers
12 views

Get date before and after and query out free dates on range

When double booking in calender, the user get prompted to an dialog where Current day and +1 och -1 on day and then display the free dates, doing all this code wihout +1 om fromTime, and -1 on toTime, ...
1
vote
2answers
42 views

Apply script to a calendar view every date navigation

I have a calendar view in Sharepoint Online and my user wants the time hidden. I manage to hide this using Javascript but the problem is that when I navigate to another month view, the script no ...
0
votes
0answers
20 views

How do I access an image library from my client web part via the REST API?

I am busy implementing a small web part to rotate through a list of banner images. The images must come from an Office365 SharePoint online list. My first choice to implement this list is by using the ...
1
vote
1answer
25 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
59 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
0answers
22 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
19 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
2answers
65 views

Dealing with JSON data in Sharepoint

I'm interviewing for a company and they asked me to put together some demos for them. They have a platform they use on top of Sharepoint and I would be working extensively in it (this is a junior ...
1
vote
2answers
122 views

How to remove user from Sharepoint Group using JavaScript?

I want to add and remove user to/from Office 365 Group. I tried using C# code but got error : "User does not exist or is not unique". After searching on the web I can't find solution.So i tried ...
0
votes
0answers
28 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 ...
0
votes
1answer
40 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 ...
0
votes
1answer
26 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
2answers
26 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.
0
votes
0answers
14 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 ...
3
votes
2answers
125 views

SharePoint online refer custom css and javascript in MasterPage (Site Assets)

How to add references to css and js files in HTML master pages. The files are residing in SharePoint libraries.
0
votes
0answers
14 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
44 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
21 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
53 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 ...
1
vote
2answers
66 views

Find the startpage of current web using javascript?

I want to hide a "div" from all startpages/welcomepages. But I cant just compare "start.aspx" and my url parameter cause sometimes the page "start.aspx" isn't there in the url. Is there a way to know ...
0
votes
0answers
21 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
17 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 ...
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 ...
0
votes
0answers
9 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
41 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
53 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
75 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. ...
0
votes
1answer
92 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
33 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 ...
0
votes
1answer
42 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
83 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
61 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
57 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
3answers
40 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.
0
votes
2answers
228 views

Problem using JavaScript in SharePoint provider hosted app

I have created a provider hosted app for a SharePoint Online site and want to use JavaScript for most of the front end logic, rather than ASP.NET MVC I have run into Cross domain problems trying to ...
1
vote
1answer
30 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 ...
0
votes
1answer
47 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
1answer
26 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
0
votes
2answers
31 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 ...
1
vote
0answers
69 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
3answers
26 views

Issue in calling the function using ExecuteOrDelayUntilScriptLoaded()

I am facing issue while calling the function using ExecuteOrDelayUntilScriptLoaded() I am writing like: <script language="javascript" type="text/javascript"> ...
0
votes
1answer
19 views

adding more than one list item into List at a time when the items are generated dynamically (using NAPA)

I am using the below code to insert an item into the list. function createitem() { var selectListBox = document.getElementById("txtFormName"); var selectedListTitle = selectListBox.value; var ...
0
votes
0answers
25 views

SP 2013 cross-platform Mobile App | HTML5 based | How to authenticate? OAuth?

I have a mobile app which will be cross-platform capable using cordova. So it is based on HTML5, CSS3 and JavaScript. My Problem is, that I don't know how to authenticate the App to Sharepoint to ...
0
votes
1answer
46 views

Multiple Asynchronous query chaining

I have a Sharepoint 2013 application that has multiple (3) ExecuteQueryAsync calls in 3 different functions. Two of them are referring to the Project Server project context, and one is referring to ...
0
votes
2answers
119 views

Loading image freezing with Javascript Object Model and jQuery Promises

I have some code using the javascript object model to get items for several dropdown boxes on a form. I also heard that using Promises was the way to go for speeding up things and created 2 wrapper ...
0
votes
1answer
77 views

SharePoint 2013 lookups with more than 20 items as select or input?

So I was reading about doing some JavaScript to manipulate the default forms for our lists and came across this: ...
0
votes
1answer
69 views

JSLink Client-side rendering

I need to render some fields client-side, I followed this guide: Client-side rendering but this code is not working: (function () { // Create object that have the context information about the ...