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)

1
vote
1answer
272 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
584 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
179 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
250 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
107 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
333 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
130 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
662 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
555 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
219 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
241 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
27 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
116 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
360 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
20 views

Modal Dialogue Behavior On Close

I'm using a modal dialogue to display list data formatted by DataTables. Within the table are links to another modal dialog to edit items in the first modal dialog's table. I'm turning on the save ...
0
votes
1answer
21 views

Implement multi select lookup using listbox control in aspx page

How can I implement the multi look up select list items functionality in SharePoint using asp.net C#? Please help me with some code, I am using two list boxes and have added a add remove button on ...
0
votes
1answer
19 views

Show number of active users of the site

I want to show number of active users on this site. Any idea how to get number of active users at this moment.?
0
votes
1answer
21 views

Update list with new items with same info

I'm new on SP and JavaScript, but I need to understand how to make these actions work. I have a list..: And after script works I should have a list like this I just need to creat new items with ...
0
votes
1answer
14 views

ScriptResource.xsd error on site

I am getting a javascript error on all the pages in my application . Message: 'Sys.UI' is null or not an object Message: 'Sys.__upperCaseTypes' is null or not an object ...
0
votes
1answer
51 views

Javascript for drop down list

I'm trying to create some JavaScript that will identify two matching drop down lists and send a pop-up alert. The alert would state "You must select one schedule per rank.". It would be nice to have ...
0
votes
1answer
24 views

Display a single item from list in main site to subsite

I want to display a single(filtered) item from a list on my main site, to the homepage on a subsite. I've initially tried the CQWP but it was to limiting when it came to what fields it displayed by ...
0
votes
1answer
62 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 ...
0
votes
1answer
64 views

Copy a file from the RootSite to a SubSite

I'm trying to add a file from a Rootsite to a SubSite using REST API. There some code: $.ajax ( { url : _spPageContextInfo.siteAbsoluteUrl + "/_api/web/getFileByServerRelativeUrl('" + selected + ...
0
votes
1answer
50 views

Javascript/Ajax errors on custom master page

I have a custom master page using a few JS utilities like jQuery and skel.js that has been experiencing some errors whenever the page loads. The errors are transparent to the user, but show up in dev ...
0
votes
1answer
61 views

Hover effect over an image in SharePoint 2010

I would like to add a kind of hover effect over an image. My source code in JavaScript looks like the following: _spBodyOnLoadFunctionNames.push("color"); function color(){ var $th = ...
0
votes
1answer
56 views

Javascript fails in chrome, works fine in IE

I have this JavaScript code for my SharePoint forms which does not work in other browsers but works in Internet Explorer. By using jQuery, when you initially open the task, the Rejected button will ...
0
votes
1answer
30 views

Using results of executeQueryAsync with JSGRID

I understand I can retrieve the list data using context.load(data) and later firing context.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, ...
0
votes
1answer
58 views

Create a library when an item on the list is created

I want to create a document library in o365, when an item is created on the list, but i cant get rid of the error: Unable to get property "apply" of undefined or null reference. Here is my code: ...
0
votes
1answer
45 views

Remove List Item Author

I need a feature that would allow users to submit complaints anonymously. I was thinking of saving complaints in a SharePoint list, the problem is that Author needs to be empty in order to be ...
0
votes
1answer
34 views

Charting Components For Sharepoint 2013 and Office 365

I am currently searching for some clientside charting components that are free that we can use to display statistics etc. Could anyone recommend any that are available. If they have the capability of ...
0
votes
1answer
266 views

Javascript in content editor web part not working after publishing the page

I have a publishing page in which I have placed content editor web part which contains the link to redirect the user to application page. Code in the content editor web part is: <script ...
0
votes
1answer
34 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
234 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
127 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
64 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
79 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
97 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
170 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 ...
0
votes
1answer
617 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
152 views

Copy ListItem from one list to an other by ribbon custom buttom

I try to create a new button in the ribbon. When the person select a list item and click on this button this item will be copied to another list. CommandAction=""javascript: var context = ...
0
votes
1answer
107 views

How to create new subsite while adding new item to the list by using javascript?

Scenario: While adding item to the list, a new subsite will be created with list item title and description by using javascript. Currently I'm working on NewForm.aspx page. I have added button(not in ...
0
votes
1answer
631 views

Add new item to child list and refresh the parent form - multiple lookup

I've created a parent list (Vendors) and a child list (software list). There can be multiple vendors for one piece of software. I've created a custom new form with a link which opens up a modal to add ...
0
votes
1answer
37 views

Using Pop-Up New Item Input of List from main site in sub-sites

I can use the following JS code on my main site to create an image link to pull up an input page just like when you click on the "+ Add new item" at the bottom of a list: <a ...
0
votes
1answer
98 views

windows.setTimeout() making my infopath form very slow

this is my code for InfoPath postback window.onload = function() { window.setTimeout(getData, 1000); } function getData(){ getEmployee(); getCompany(); window.setTimeout(getData, 1000); //To ...
0
votes
1answer
83 views

Why does SharePoint 2013 deletes my Javascript code when saving a page?

I have SharePoint Online hosted by Microsoft, individual edition. I noticed that when adding links with a hash (#) to a page, these links would not be saved. I thought it was a bug and decided to ...
0
votes
1answer
237 views

Add custom web application/page which uses files from other folders

I've created a JavaScript web browser game. The HTML page, Game.html, within folder Game references several other JS/jQuery/CSS files stored in sub folders. I simply want to add the Game folder, ...
0
votes
1answer
138 views

I have to create the pivot table and pivot chart based on the sharepoint list data 2010

I need to create the pivot table and pivot chart based on the sharepoint list data 2010. Please help. Thanks!
0
votes
1answer
52 views

Issue when getting library GUID through JavaScript

I'm using SharePoint 2010. I need to get some SharePoint data on a list item hyperlink click. Inside the JavaScript file there is a method getLibraryGuid() I get the targetLibrary value with no issues ...
0
votes
1answer
117 views

Set Publishing Link Field Value on New item form using Javascript

I want to set default URL for Publishing Link Column in my SharePoint New Item form using javascript. Below Field's value should be set to http://a.com/ on form load. <SharePoint:FormField ...
0
votes
1answer
95 views

Call jQuery and other scripts for the entire site collection

I want to be able to use jquery and other javascript files across my entire site collection. If I create a new site, it should already be calling jQuery. I don't want to have to worry about whether ...