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

get current Page Layout in sharepoint 2010 using ECMA script

I have a requirement that I need to create a custom page layout and need to update the current page layout with my custom page layout. In SharePoint we have a feature to change the page layout. But I ...
0
votes
0answers
4 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
27 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
30 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
28 views

Javascript popup

I am using the below code to create a pop for pages. When you right click and select print preview, the preview is of the page behind the pop up as well as the pop. Is it possible to just preview ...
0
votes
0answers
8 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
30 views

Authenticate users to SharePoint 2013 on primise from JavaScript

I am trying to connect my mobile app to on premise SharePoint 2013 server. I have followed some of the blogs on authenticating using JavaScript but all of them are explaining to connect SharePoint ...
0
votes
0answers
13 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
16 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
29 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
24 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
33 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
18 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
24 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
19 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
19 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
15 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
30 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
18 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
8 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
21 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
29 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
22 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
9 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
22 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
27 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
22 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
23 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
24 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
39 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
24 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
46 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
96 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
19 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
18 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
12 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" ...
0
votes
0answers
49 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
89 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
19 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
39 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
34 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
26 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
45 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 ...
0
votes
0answers
80 views

Javascript to add an “Add new Item” to Lookup fields on an Edit Form is not working in Chrome and Mozilla

The below javascript which creates a link next to a lookup field on a list NewForm or EditForm. It is working fine in IE and when lookup has more than 20 + values it is not working in Chrome as the ...
0
votes
0answers
31 views

Node.js - SignIn to Sharepoint

After installation of Node.js on my SharePoint 2013 Enterprise Server, I get following error, when I want to connect to SP: I am using following code (main.js): var SP = require('sharepoint'), ...
0
votes
0answers
33 views

Pull Data Into Individual Web Part

I know what I would like to do, but I do not know how to search to find the best solution. I have a list of URLs on a list that link to stories. I do not want the user to see the entire list of ...
0
votes
0answers
30 views

Activating SharePointPlus

OK, I have inserted your SharepointPlus as well as jquery.SPServices-2014.02. here is my simple code- but what activates it? <html xmlns="http://www.w3.org/1999/xhtml" ...
0
votes
0answers
37 views

Date parsing from JavaScript works for Firefox, not for IE

I am trying to parse a date in my java-script code, which is working fine in Firefox browser but not returning correct results in IE. below is my sample code: var shiftDate=recordArrayItem[i][0]; ...