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
0answers
15 views

contents of a list in EditForm.aspx disappear when a Postback function was triggerred

I have a javascript file in the masterpage that triggers postback function to change list displayed in my custom DVWP megamenu. This runs on page load in ALL page in my Site. The code is working ...
0
votes
0answers
13 views

How to detect a customize EditForm.aspx (Sharepoint 2007)

Scenario: Admin will create a custom Edit form aspx page. Q1: Is there a way a javascript can detect the new edit page of the List? Thanks
0
votes
0answers
15 views

CustomJavaScriptFileUrl references script twice - should it?

I'm using PowerShell to provision a SharePoint solution and I'd like to include a link to a javascript file on all pages throghout the site (SharePoint.SPWeb.CustomJavaScriptFileUrl) What seems to be ...
0
votes
0answers
46 views

Custom Thumbnail view with javascript as asset library

At the moment I am creating a teamsite for my team at sharepoint 2013. My problem: I want to create a special view for my document site. I followed these instructions from an external sharepoint ...
0
votes
0answers
24 views

GET Column data Through query or javascript

I have a table and after table tag one button when button click then get 4th column data Email table...All Email of customer and store in a array. Kindly help me to find out the problem.
0
votes
0answers
39 views

Call a Javascript Funtion when Delete Operation Occurs in Document Library

I need to call a Javascript function when a delete operation occurs in a document Library. What is the best way to do so? Example: Suppose I need to show a JS Alert when a document is deleted.
0
votes
0answers
65 views

SharePoint Online Edit Form JavaScript Errors

I am seeing JavaScript errors on the edit form of one of my tasks lists - see below. I have added my own custom JavaScript on this edit form. This is in the Chrome browser. I haven't tested ...
0
votes
0answers
33 views

How to retrieve all pages from “Wiki Pages Library” using JavaScript

How to retrieve all pages form Wiki Page Library through CSOM (JavaScript)? Can anyone share an example?
0
votes
0answers
36 views

How to connect Office Add-In to SharePoint On Premise

I am trying to develop a Word Add-In and I need to retrieve a SharePoint list items. 1st Question: It is posible to write CSOM (c#) code instead Javascript? 2nd Question: How can connect to a ...
0
votes
0answers
13 views

how to give a document link in resourse.js file varialble

I am using below var importFileNameDescription = "Browse to the document you intend to import. This document has to be a Excel file."; for localization in my Resource.en-US.js file in the text I ...
0
votes
0answers
22 views

Add New Calendar item default All Day Event BUT reset when unchecked

I have the below code for setting all day event to yes ( checked) BUT I wanted to do the resetting to the original when unchecked in SharePoint 2010 Calendar event: <script> ...
0
votes
0answers
29 views

SP13: Showing Image in Custom List

The first part is working not the second. Intent: To have users select add attachment button on a custom list new form. Then select browse button that allows to browse out to select image on ...
0
votes
0answers
33 views

Javascript to submit Web Part without click

From a previous question, I am able to populate a textbox with a value I can use to reference another list. However, in order for this functionality to be as user friendly as possible, I would like ...
0
votes
0answers
37 views

JavaScript not firing after Page Refresh or Paging

I'm using some JavaScript to manipulate a list view, such that the clicking of a button (provisioned through a calculated column), will redirect a user to another page. Based on the reference in ...
0
votes
0answers
31 views

Javascript with MDS in Visual Webpart

I need to include a Javascript file in my visual webpart, but using the Minimal Download Strategy. The problem is when i would like to include a SharePoint:ScriptLink tag in my ascx file, i have some ...
0
votes
0answers
20 views

Webpart that uses CSS fixed positioning

I have a two column webpart page. On the left side is a link list webpart, which I would like to stay in sight as the right side scrolls. Is this possible? I did see an example which did it with the ...
0
votes
0answers
35 views

Calculation on different types of leaves in JavaScript?

I have a list (List A) with different type of leaves like casual leave, sick leave, earned leave.. So in this list management will give some leaves to an employee per year like Casual leave=20 days ...
0
votes
0answers
27 views

SP 2013: Using EditDocumentTemplate createNewDocumentWithProgID commands to activate macros in Word Documents in Document Libraries

In my Document Library, I want to store macro enabled documents. OOTB Document Library functionality disables stored template macros. Research indicates that this results from the way that Sharepoint ...
0
votes
0answers
57 views

How can I add a print button to an InfoPath form? SharePoint 2013

I cannot create a print button that works in browser-enabled view. Is there any method make it. I have tried with thisXdocument.Print(), but thisXdocument does not exist in my context. I need to ...
0
votes
0answers
23 views

How to expand the group name within a list with REST

I have a list with a People/Group field that I want to access via REST call: /administration/_api/web/lists/getbytitle('Permissions')/items?$top=10000 The problem is that it just loads the list IDs ...
0
votes
0answers
33 views

Unable to access list data in another site collection in Office 365 SharePoint Site Collections

Let us consider two site collection urls in Same Web App in Office 365. http://webapp/sites/siteA http://webapp/sites/siteB Both sites have 'List' with same name Following code works for same site ...
0
votes
0answers
59 views

Set Content Type of New List Item Using JSOM

I am trying to add folders to a library using JSOM. I need to set the content type of the new library items, however I am not finding the documentation on how to do that anywhere. var ...
0
votes
0answers
32 views

ContentType problem in JS after install of SharePoint Cumulative Update

After installing the SharePoint 2013 Cumulative Update of December 2015, i have a very strange issue in my SharePoint 2013 portals the situation before I install the CU (the farm was in SharePoint ...
0
votes
0answers
9 views

Redirect User after starting a workflow fails Customer EditForm.aspx Sharepoint 2010

I have the code below that successfully updates the record for which the form is showing, kicks off a workflow to mark the record as CLOSED and notifies the user that the process has taken place. I ...
0
votes
0answers
16 views

Additional space while embedding <script> in SharePoint table

I need to embed an HTML line on SharePoint. As you can see in this picture in attach: first row, more than 60px, the code is: <script type="text/javascript"></script><button ...
0
votes
0answers
14 views

named image not in `workbook.getNamedItems()`

I need to be able to access an <img> after embedding my Excel dashboard into an html file. I have named the image in Excel, but it is not showing up in calls to ...
0
votes
0answers
49 views

SharePoint 2013 List Box view customize web part display

I am referencing a list in a web part on a SharePoint page. In that web part I am using the "Boxed" view. However, I would like to customize the way that box looks a bit. Some examples would be to ...
0
votes
0answers
94 views

SP.UI.ModalDialog.showModalDialog(options).I deployed to ClientWebPart.aspx i am getting error

I deployed to sharepoint office 365 ClientWebPart.aspx i am getting error Uncaught ReferenceError: RegisterModuleInit is not defined and Cannot read property 'execute' of undefined.the sharepoint ...
0
votes
0answers
103 views

SCRIPT1004: Expected ';' error in the browser

I am using this script to hide 'Edit' button from SharePoint ribbon on my custom webpart's ascx page and calling it in the page load: function hideEdit() { var edit = ...
0
votes
0answers
17 views

Refreshing a lookup field in modal edit form via client side javascript

I have a list (list "Project") that on edit of a item opens a modal dialog for editing (editProject.aspx) The Project item has a lookup field "Document links" which points to a custom sharepoint list ...
0
votes
0answers
32 views

Sharepoint & Javascript: Handling Access Denied Error with Open In Windows Explorer. Catch Always Executing

So I am trying to handle an error when I attempt to open a folder location in windows explorer from SharePoint. If the website is not in your trusted sites while in IE the browser will throw an Access ...
0
votes
0answers
20 views

Easy Tabs in SharePoint 2010 & preservation of easy tabs for SharePoint 2013

I am looking into ways to implement easy tabs for the display of a master glossary for my team. I have a code but I am not sure where to put it either in the content editor web part or in the general ...
0
votes
0answers
33 views

Sharepoint 2013 - replacing links in Picture Slideshow

I'm using SP2013. The links in the OOTB Picture slideshow link directly to the image. I need to change the array that is default with some sort of script (which I'm not great with). I did find this ...
0
votes
0answers
28 views

Hide Droplist with Jquery

I am working with Sharepoint 2010, i am trying to hide different fields according to role of the current user. My code only works with normal text fields, but it doesn't work with drop list, so i ...
0
votes
0answers
38 views

SharePoint 2010 - How to add “Title” attribtue with Created By value for each reserved item in FreeBusy field table?

I searched hours on the internet, there is very few information. Reservations content type is enabled in a Calendar list in SP2010 (e.g. image1). Do you guys have any ideas/directions on how to show ...
0
votes
0answers
37 views

Javascript calls a web service using Ajax and returns custom error message

The code is using a Javascript calling a web service using Ajax. jQuery.support.cors = true; $.ajax({ url: url, data: { format: 'json' }, error: function() { ...
0
votes
0answers
50 views

SP services to filter list form web part

I have a project requirement where I need to filter the column value based on current logged in user. This needs to be done in Designer using either Javascript/Jquery or SP Services. NOTE: The ...
0
votes
0answers
29 views

Why Sharepoint call resize function on page load?

I have a JavaScript in my WebPart with a resize function, which should only be called, when the window is resizing. But the function will also be called, when i make a refresh. Does anybody know, why ...
0
votes
0answers
27 views

Correlation Error in Sharepoint Online app

I am trying to change an app to apply a custom action recursively to every subsite of a site collection. The code segment for that is below. I keep however getting the following error: Something ...
0
votes
0answers
19 views

Unable to retrieve the properties ' selectLayout ' null reference or undefined

Ssometimes I have problems when I have to add an item or a complete change from a list previously created . In these cases it happens that the ribbon is unusable and the javascript error returned is ...
0
votes
0answers
33 views

Template ID transfer field data to a different list SharePoint 2013 online

I have created a list (lets call this list1) and saved it as a template g_wsaListTemplateId = "108"; g_wsaSiteTemplateId = "STS#0"; I need to create some JS that will run when this template has ...
0
votes
0answers
27 views

Compare Microsoft Project Owner to Current user

Apologies for the cross post but this may be the better forum to post this question. My short question is I would like to use JavaScript to compare the currently logged on user to the Microsoft ...
0
votes
0answers
10 views

Is there a way to get the IDs back in response of newly created documents when uploading multiple silverlight control

I need to provide the ability to allow multiple documents at once while allow for a couple of parameters as meta. So is there a response body object that comes back from the server when using the OOB ...
0
votes
0answers
27 views

REST Async responseText different to Sync

When I send a request to http://Sharepoint/_vti_bin/ListData.svc/ListName using a Synchronous request as below the response comes back as a feed with "m:properties" present and easy to extract. This ...
0
votes
0answers
31 views

What should I do to not disappear the list which I create by this code?

function createList() { listCreation = new SP.ListCreationInformation(); (listCreation.set_title("Countries")) //list title ...
0
votes
0answers
29 views

SP2013 on-prem how to check if search service is working?

We have an onsite 2013. Our team doesn't have access to central admin. We are using cross-site publishing and a lot of display templates -- as well as some ajax and spservices to query the search ...
0
votes
0answers
26 views

How to getSelectedItems of a list when user has Read permissions

I have a List where users select items from the List. I want to know which items were selected using JS. Here's a snippet: var selectedItems; var listId; var context = ...
0
votes
0answers
26 views

Script to link image and YouTube video

I know how to link a YouTube video to a graphic image to play the video on a separate page, but how can I get the video to play on the same web part/page when clicked on the image in 2007?
0
votes
0answers
35 views

Set a value for all field in desired column? javascript

i have the following solution: in my SP list called QUIZ i have a column named koha i also have a userinterface that is build via XML in my javascript solution the current setting are when you ...
0
votes
0answers
26 views

SharePoint online - API data access quality

How much access to the data will I have if I use SharePoint online? Will I be able to do reporting from any list or rdl hosted in SP online via the available javascript api? What about pulling data ...