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
41 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
88 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
28 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
47 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
39 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
18 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 ewa.getActiveWorkbook()....
0
votes
0answers
69 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
144 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
160 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 = document.getElementById("...
0
votes
0answers
22 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
40 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
22 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
36 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
29 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 don'...
0
votes
0answers
40 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
41 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() { alert('...
0
votes
0answers
63 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
33 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
34 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
21 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
34 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
31 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
29 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 listCreation.set_templateType(SP.ListTemplateType.genericList)...
0
votes
0answers
31 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
36 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 = SP.ClientContext.get_current(...
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
38 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
28 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 ...
0
votes
0answers
21 views

How to convert an item that is retrieved from list to a string datatype?

I am having problems with some strings i have the following code in javascript: _result = currentQuizItem.get_fieldValues()["Audience"]; "Audience" is a column in my sharepoint list, and it has ...
0
votes
0answers
38 views

assigned to getLookupValue() returns the wrong value

I am working on a SharePoint hosted App where I load tickets for a customer that is assigned to a technical engineer with csom. On start of the app the engineers are loaded correctly but by some ...
0
votes
0answers
26 views

Removing automatically generated file links from SharePoint 2010

I am trying to prevent a page in SharePoint 2010 (specifically a list view page) from automatically generating links from UNC file paths that are entered in a field. This is entered into the field... ...
0
votes
0answers
35 views

How to add permission to a site collection?

I have a solution that is built with Visual Studio and I have no permission to delete a list or modify a list. I can not even see the lists that are inside current solution. so i cant access to ...
0
votes
0answers
56 views

Add item level permission

Problem : I have two groups Visitors and Owners. I belong to both group with Full access. these two groups have been inherited to a list and list items level. Now while I want to submit any item to ...
0
votes
0answers
33 views

Profile properties web part

On my site, on the out of the box web part that shows profile info properties like title, department, phone etc. Is it possible to edit the display name of the properties ? I.e I am trying to rename ...
0
votes
0answers
49 views

How to convert a type to Number in JavaScript from Sharepoint

I have the following solution, this is my SharePoint list and here is my UserInterface xhtml and form and here is the problem, when i retrieve this field "koha" using the follwoing code: it ...
0
votes
0answers
466 views

Javascript window.location.href not working

I am trying to redirect to another site (say www.google.com) from a SharePoint site. I tried using window.location.href and window.location.replace but it doesn't work. It adds the URL to current ...
0
votes
0answers
26 views

Re-direct New Form submission in SP 2013

I am trying to redirect a 'NewForm' submission to another page (not the default list view which is normal behavior). Code like what I've pasted below has worked in the past in SharePoint 2010. It is ...
0
votes
0answers
32 views

consuming html content of external web application into sharepoint masterpage

I could consume the content (html and css) of an asp.net application from another application with the following Jquery code(I used CORS) : $("#success").load("http://localhost:50710/ .round", ...
0
votes
0answers
18 views

Input in SP custom list if radioButton is checked

I have a radioButton, rdbMale . If rdbMale is checked, I want Male to appear in SP custom list. I have an usual column (Single line of text) in my custom list. <input type="radio" name="male" id="...
0
votes
0answers
91 views

Access SharePoint using Claims Based Authentication with Javascript

I'm making a slideshow with all the news and all the information that I display is the news that is already on Sharepoint but I need to read it somehow. All I'm asking for is a good example code or a ...
0
votes
0answers
259 views

JS Link and CSR: How to use Default sorting/filtering and override header

I'm using JSLink to customize list views. I actually override the complete view,. Header, body and footer (because the default HTML code of Sharepoint is quite a mess and quite impossible to style via ...
0
votes
0answers
25 views

SharePoint datasheet view not working after adding angular app

I Implemented a custom button on my SharePoint page to toggle listview webpart view from normal view and quickedit view. but I'm getting the following error after I add angular app.
0
votes
0answers
88 views

multiple updates on same sharepoint list item from CSOM( javascript)

I have a list with a field Status(dropdown with some values), I am using default save functions javascript. The status field is grayed out to the users. In presave javascript function I want to ...
0
votes
0answers
85 views

How to create common javascript file for multiple views/pages?

I am working on MVC project where I have saveral number of views. In all the views I have pages like Index.cshtml, AddEdit.cshtml, ViewDetails.cshtml etc. Currently each of one these view has ...
0
votes
0answers
34 views

Connect to sharepoint web service with javascript

http://appsrv/pfa/_api/ProjectData/Projects?$select=ProjectName,ProjectStartDate,ProjectPercentCompleted This is the link that after you enter username and password return XML data, I need to access ...
0
votes
0answers
101 views

Sum up Values from Sharepoint List column

I have 4 columns with choice field type. Each column has 1,2,3,4,5 value . Now if I select value from each column and submit it should add up those number. If some other user login and do the same ...