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)

2
votes
1answer
448 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 ...
2
votes
1answer
495 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: ...
2
votes
1answer
748 views

How to open file in adobe reader using command line without checkout from Javascript?

I am working on print functionality. I am printing the PDF files (uploaded in SharePoint Library) using Adobe Reader command line from javascript. I am using ActiveX object to call the cmd. refer ...
2
votes
1answer
216 views

Filter Calendar view by Title in SharePoint 2010

i want to filter calendar view using title field. Is it possible to filter calendar view without make changes in modify view ?
1
vote
1answer
51 views

How to move/copy a document set via JavaScript CSOM

Could somebody give a JavaScript CSOM example of how to move/copy a document set from one document library to another? The document set has a derived content type with a list of metadata, and it ...
1
vote
1answer
31 views

SP.ClientContext is not a Constructor

I keep receiving the error message "SP.ClientContext is not a Constructor" every time I try to use it in my JS code. After doing a bit of research online, I found SP.SOD.execute function(). However, I ...
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.
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 ...
1
vote
1answer
15 views

Sharepoint Site Content Gear

I need to hide and avoid reader users (users view just read permission on the site) to view the site content page (viewlsts.aspx) How can this be done?
1
vote
1answer
50 views

SharePoint 2013 Timeline Coloring

I want to color a timeline with data of a specific column. This column is named Topic. So I wrote some code and added it to my SharePoint site but it didn't work. Here's the code I used: var ...
1
vote
1answer
253 views

Obtain FedAuth Cookie with RST token

I've got a phone gap application which should contact ADFS with a RST to obtain a SAML token then should pass this token to STS to obtain a FedAuth Cookie which is finally used in the header of REST ...
1
vote
1answer
44 views

ClientPeoplePicker is underfined

I'm trying to get ClientPeoplePicker control with following code. function setCPP(userAccountName, controlName) { var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + controlName + ...
1
vote
1answer
31 views

Return to last page visited

I have Sharepoint in Office 365. The site is set like this: Home>Training>Training Request Form. I have it set so that, on submit, the Training Request Form displays a thank you and a link that ...
1
vote
1answer
104 views

Custom .aspx as modal dialog not working: 'SP' is undefined

SharePoint 2013 server... I have created a custom aspx page for use as a modal dialog. I want this pop up to collect field values and return them to the form the pop up was called from. The pop up ...
1
vote
1answer
62 views

Update Custom Field in Task Project Online

Hello I found this article: Updating Project Server custom fields via JSOM. This article explain about how to update custom field value in Project. In my case, I am trying to update custom field ...
1
vote
1answer
88 views

How to write a WCF Service for SharePoint 2013 hosted App?

I've deployed a WCF Service in SharePoint. I am able to retrieve data from it using URL: http://nit-hv8-itr4:1111/_vti_bin/PresidentsService.svc/GetAllPresidents The problem occurs when I try to ...
1
vote
1answer
212 views

REST API ItemCount on oData BCS List

I have a list generated from a BCS oData provider and I am attempting to get the number of items in the list so I can generate a $top on my request rather than bring back only the 100 item generic ...
1
vote
1answer
34 views

Script Returning �

I use a lot of JavaScript in SharePoint, but today I came across a problem that I do not understand. Every time I use accents in a script such as in an alert, it returns the following strange symbol: ...
1
vote
1answer
94 views

How To “Add New Item” On Quick Launch & Refresh Page

On a SharePoint 2010 site how can I create an "Add New Item" link to the quick launch that will refresh the parent page when the new item is submitted? I have used the following snippet to create the ...
1
vote
1answer
987 views

_spPageContextInfo is undefined in client web part

I have created a client web part for a SharePoint-hosted app that I am creating. The app makes use of the clienttemplates.js library in SharePoint to render user presence (Lync) in the web page. I am ...
1
vote
1answer
169 views

Add button to webpart with javascript

I want to add button to all web parts of my home page instead of add new item link and I've no idea how to create it For additional information I am using share point 2013.
1
vote
1answer
45 views

Compare Credentials to his one's own login credentials

I would like to compare the current user credentials with my UserAccount and if they are identical then I would like to have an alert, but It doesn't work. I don't know why.I hoept that you can help ...
1
vote
1answer
76 views

“Working on it” message - Handle event and hide some blocks

I edited master page, added some custom blocks. My problem is when opening the web site I see my footer and header blocks. How can I hide these blocks when "Working on it" block appears? Can I ...
1
vote
1answer
39 views

Access Sharepoint Images from app

I'm in the process of setting up a REST call to access images in a SP folder via Office365. My question is where do I add my onedrive credentials as part of the REST call? Once the call is ...
1
vote
1answer
35 views

PDF Preview in library

I have a library full of pdf's. Is it possible to show a preview of this documents in the library view? The preview is necessary because there are 5 user which work in the library and add the ...
1
vote
1answer
161 views

Pass NewItem ID to Callback function from NewItem form

I have a rigged a link to call the NewItem.aspx form in a dialog. When the User clicks 'Save', I would like to return the new item ID in the callback function. How is this achievable? <a ...
1
vote
1answer
83 views

Caml query after modified choices

I have a column with an internal name of: PublicY with 2 choices: Yes/No, the query works but if I change the choice name to Ja/Nej the code will not query the results, why? I have tried to change the ...
1
vote
1answer
477 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
1answer
256 views

how to find out when a user last visited?

I'm trying to figure out when a user has last visited.So let's say I logged out of my SharePoint intranet last night at 11PM, and this morning I logged back in at 9AM, I'd like to see a message saying ...
1
vote
1answer
228 views

SharePoint.Backbone Undefined Source — JSON returns Empty

I am working in SharePoint 2013 Foundation and I have a custom list named Properties that I am trying to use in a Backbone Application. The list contains all 90 of our properties and each property's ...
1
vote
1answer
195 views

ECMA script for checking active workflows for an list item

Hi i am having more than 1 workflow associated with the list if there is any workflow that is active for an item then i need to prevent starting another workflow for the same item. I am using the ...
1
vote
1answer
147 views

Double records on list.getItems using Javascript

Using fairly straight forward code to get back a country list for the user...but each time it loads I'm getting double items...i.e all the items are in the drop down twice...in fact time I trigger the ...
1
vote
1answer
161 views

Can I change the display name of column in a listview using JSlink

I've a requirement to change the display name of a column in only one view, I've to show 'Responsible' instead of 'Responsible Person'. Is this possible by JSlink ?
1
vote
1answer
800 views

SPServices Autocomplete and dynamic CAML query

I have two Text filter web parts (Project and Customer Name) with Apply Filters button for one list. There is a SPServices.SPAutocomplete on each and it works great. Now, I want to show the values in ...
1
vote
1answer
294 views

clienttemplates.js is raising errors on Google chrome

when browsing SharePoint 2013 using google chrome i am getting the following error:- ReferenceError: Strings is not definedReferenceError: Strings is not defined And the Chrome Developer tools ...
1
vote
1answer
437 views

A script on this page may be busy, or It may have stopped responding

there is one webpart on page that rotate the images so i added a jquery to rotate images and its working fine but after sometime it gives error like A script on this page may be busy, or It may have ...
1
vote
1answer
136 views

Footer does fill the whole width. Scrolling in document library

I have a problem with the footer not extending to the right side when scrolling to the right. (In a document library with way to many columns). Meaning the footer have a blank spot in the right side ...
1
vote
1answer
446 views

Column not found when creating list item with Javascript

I am making a SharePoint app with javascript. I am trying to add a list item to a list I have defined in Visual Studio. I have done this just by adding a list in the solution explorer, and I made ...
1
vote
1answer
141 views

SPAPI_Core.js access denied

I have old web page which I am trying to set up on new sharepoint site, is uses SPAPI_Core.js, but I am getting access denied error to this js library. Can someone help?
1
vote
1answer
517 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 ...
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
1answer
292 views

Javascript IIFE and SharePoint Client Object Model

I'm having a problem with my javascript code that I am sure is to do with scope, but I can't figure out where I'm going wrong. I'm trying to write a method that will allow me to retrieve items in a ...
1
vote
1answer
65 views

Display New item Icon with SPServices

I want to display the New Item Icon with SPServices or using custom Javascript to show a new item icon for n days when Created. I achieved this using XSL. Thank's to Mark ...
1
vote
1answer
273 views

Access sharepoint web service from separate HTML application

I want to access list items from a SharePoint 2010 site in a HTML application (not connected to the SharePoint site). My approach is to use SharePoint web services by passing user credentials through ...
1
vote
1answer
289 views

Stop hover with navigation to just display links

I'm somewhat new to developing with SharePoint, so sorry if this is painfully obvious and I'm totally missing something. I have a publishing site that I'm working on, and I need to tweak the ...
1
vote
1answer
31 views

Disappearing Images

I am still new to Sharepoint and I am trying to upload some files from my staging area to production. Everything work in staging however when I move the files to production, I noticed that there are ...
1
vote
1answer
122 views

Web Part JS ToggleMe not running

I want to add toggled visible / invisible divs to a SharePoint wiki page, and put the function for the toggling in a web part. My toggling script works fine testing outside of SharePoint, but inside ...
1
vote
1answer
423 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
17 views

fetch of all items from a list

I have an Announcement list in SharePoint site,I need to show all announcement in homepage,I am following msdn code sample to retrieve items from the list,But only last item will be display. function ...
0
votes
1answer
20 views

Uncaught Sys.ArgumentNullException: Sys.ArgumentNullException: Value cannot be null. Parameter name: panelsCreated[1]

I am using JavaScript to pull events for the current day of the week. I am leveraging SP.Services to do this. The problem I am having seems to be the same that a lot of others have experienced ...