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)

3
votes
1answer
2k views

Getting Version History and What Field has Changed

I am using the GetVersionCollection to get the history information from my list. This seems to be working fine; however, what I need to do is get the version history of the individual item which has ...
2
votes
1answer
116 views

SharePoint 2013 sp.js Getting the column names of custom list

*Edit* I have figured out how come the data returned for the columns was showing the wrong labels. The issue occurs when the list columns are created using the quick edit mode, as it allows you to ...
2
votes
1answer
64 views

Create Multiple List Items with One Function

Is it possible to create multiple list items with one function in JavaScript / ECMAScript? I know that a single item can be created with the code below, but would like to know if it is possible to ...
2
votes
1answer
346 views

Launch SharePoint 2013 Workflow w/Javascript

Looking to launch a list workflow from script tied to a button on a form. I've been referencing this article, as well as the code from example 5, and even tried using SPServices, but have yet to come ...
2
votes
1answer
143 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 ?
2
votes
1answer
430 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 ...
1
vote
1answer
38 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
59 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
113 views

Not able to fetch Term store and related terms using client object model

I want to fetch termstore, Termsets and related terms.However, Iam not even able to fetch the termstore. Below is the error message. TypeError: termStores is undefined termStoresEnum = ...
1
vote
1answer
57 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
90 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
47 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
156 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 ...
1
vote
1answer
252 views

Run JavaScript after “group by” in list has been clicked on and list data loaded

I have created a JavaScript function to take a url from a list item and turn it into an image. This function works great on a list that doesn't have group by setup. With this script the images will ...
1
vote
1answer
219 views

Load page error when I use ScriptLink in the page head

Here is the beginning of my custom SharePoint Application Page: <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, ...
1
vote
1answer
488 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
144 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
848 views

Convert Image src to base64

I am working on Sharepoint 2010, I have create one custom button. when user select any row from list and click on custom button then I have fetch one multiple line column html in one variable name ...
1
vote
1answer
658 views

_spBodyOnLoadFunctionNames not always working

This is in reference to SharePoint 2010. I am writing some custom javascript that needs to know when the page has finished loading. To accomplish this I am pushing my callback function on to the ...
1
vote
1answer
324 views

Is it possible for a html textbox to populate a sharepoint column in a list?

Here is the scenario: SharePoint 2010 doesn't have a back button, this makes it difficult when a user messes up in a branched survey. I have created a little JavaScript embedded html page that I ...
1
vote
1answer
242 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
125 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

Invalid field or parameter requestInfo.url

I am trying to get users blog post (newsfeed blog posts) which are located on same web application as other site collections and show them within a web part by using JavaScript. I use ...
1
vote
1answer
548 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 ...
1
vote
1answer
438 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 ...
1
vote
1answer
177 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
702 views

SharePoint 2013 - Error “init.js failed to load”

I am new to SharePoint 2013 server and SharePoint designer 2013. When I browse SharePoint site in IE, I am getting the below error. "init.js failed to load" But when I browse SharePoint site in ...
1
vote
1answer
219 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
26 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
110 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
325 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
26 views

Recalculate Calculated Columns with Javascript

Has anyone some sample javascript code to recalculate a calculated column in SharePoint 2013 tasks? This should work on new and edit form and also with the AllItems view. Many thanks.
0
votes
1answer
28 views

Retrieve list item information using path

Using: SharePoint 2010, JavaScript, jQuery 1.10.2, SPServices In SharePoint 2010 I have a custom (JavaScript-based) page where users may type in text and link to items in SharePoint lists. A recent ...
0
votes
1answer
58 views

Add item to list using button

I try to create button that will be add item to the list. Unfortunately I do somethings wrong. My programming skill's are at beginner level. I have list "List" with only one field Title (for test) - ...
0
votes
1answer
26 views

Add icon hyperlinks to grouped SP2013 list view

In SharePoint 2013, I want to take the grouped view of a list and add 3 buttons to the left of each item. In previous versions of SharePoint, I would have duplicated the list view using a DVWP but ...
0
votes
1answer
24 views

Sharepoint list to XML including the headings?

We store data regarding Scrum sprint retrospectives in a SharePoint list. I have to create a chart for visualizing this information (which is not part of this topic/problem), so I need to somehow ...
0
votes
1answer
45 views

collection has not been initialized after dialog modal closes

I have two JS scripts on my SharePoint 2010 page, one in the master page, one in a forms web part (I've attempted this with a CEWP as well). Both are in unique name spaces (My.Tabs and ...
0
votes
1answer
33 views

How to display list item name instead of title of ModalDialogPopup confirmation box?

I created modalDialogPopup confirmation box with sharpoint object model. I want to display list item name instead of please confirm(title). See following code: var options = { html: ...
0
votes
1answer
41 views

show progress bar or loading image while running spd 2010 workflow

I have a SP 2010 custom list which is fetching data from multiple lists. So I have written a workflow in SP Designer to get data (auto populate) from all lists. It's working fine, but taking more ...
0
votes
1answer
41 views

How to change the SharePoint 2013 logo image dynamically?

Is there any way to change the SharePoint 2013 logo dynamically, ideally via javascript? I have tried: document.getElementById("onetidHeadbnnr0").src="\path\image.png"; Also tried: div = ...
0
votes
0answers
115 views

How do I open a template document in OfficeWebApp with Javascript?

I am using the following to open a template document from one location which will be saved to a another location: <a href="javascript:'" ...
0
votes
0answers
137 views

JavaScript OnChange for PeoplePicker or something similar in a NewForm.aspx

i have a document library where i added a people picker column where i can assign a person from the company. Also i have a column where the user should enter the department of the selected person. Is ...
0
votes
0answers
144 views

add new object not opened in a modal dialog for Sharepoint Photo Library

I created Photo library now For add new item i have written Javascript code and which works fine in IE,Firefox but not in Chrome browser i get a error as"Uncaught TypeError: Object # has no method ...
0
votes
0answers
370 views

current user is always is administrator on a SharePoint App

I have tried following solution to check the current user's permissions on the current host web in a SharePoint hosted app, however the user is always administrator. function sharePointReady() { ...
0
votes
0answers
277 views

Created a layout page, but getting a parentElement null error

I've created a layout page, when I run the page and look at the JavaScript console, I get a 'parentElement' null error message like this: Uncaught TypeError: Cannot call method 'parentElement' of ...
0
votes
0answers
97 views

Update WebPart MenuItem/Verb from Client Side

Here is the scenario - I have a custom webpart where I added one custom menuitem with client side handler, now my requirement is when I click on the menuitem some text should be shown, for example ...
0
votes
0answers
201 views

injected javascript code in a basic webpart

I have a working solution according to below, but I want a dynamic link which is created in Createchildcontrols and included as an arguement in the function newitem but I get an JavaScript error on ...
0
votes
0answers
80 views

SharePoint 2010 Motools JavaScript incompatibility

I created a JavaScript Slideshow base on Slideshow2 using Mootools. It works great stand-alone. I decided to incorporate it into my SharePoint 2010 Master Page and at first glance it was working ...
0
votes
0answers
183 views

XSLTListViewWP: filter results based on javascript variable/other control on page?

I have some custom html/jquery form stuff on a page, and I would like to update a LVWP on another part of the page if a user adds something. So for example, the list view web part just shows items on ...
0
votes
0answers
61 views

How to extent the logout time when doc is opened for edit/view sharepoint site?

I have custom javascript to logout the sharepoint page after 30 minutes. Now the problem is, if i have opened any document from shared document to edit/view. then also sharepoint site got logged out ...