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
1answer
108 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
31 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
0answers
42 views

Unable to execute succeeded() & failed() functions after ModalDialogPopup's CloseDialog()?

I wrote javascript for changing checkbox(IsDeleted) value from No to Yes while clicking on delete button. Here ModalDialogPopup taken for confirmation , if it is 'No' the modalpopup will close the ...
0
votes
1answer
54 views

How to include built in JS files

I'm attempting to follow the instructions from this post. I've added the Sharepoint links to call the JS files however it seems that they are not included by viewing network activity in my broswer. ...
0
votes
1answer
55 views

Export my Enterprise Wiki aspx pages to a PDF files

Our client has asked if we can add a link to their current Wiki pages named "Export to PDF", so when the user click on the link the Wiki content will be exported inside a pdf file ? i got confused if ...
1
vote
3answers
69 views

Integrating jQuery into the solution

I have a javascript file which I am editing the layout of a list with. Here is the code: window.SFW = window.SFW || {}; window.SFW.urgentAlertsItem = { customItemHtml: function (ctx) { var ...
0
votes
0answers
15 views

Get Ribbon child Tab/Group “element”

I need to get CUI.Tab object by id/index from current Ribbon by javascript: var ribbon = (SP.Ribbon.PageManager.get_instance()).get_ribbon(); var tab = ...
0
votes
0answers
19 views

New Firewall hardware, sharepoint 2013 website is not working properly!

We are using sharepoint 2013 on our server. We are hosting a domain name which is try to access webapplicationA on our server. This was working fine before with the old firewall hardware. Now we have ...
0
votes
2answers
29 views

changing css in jquery sharepoint list

I am wanting to change the css in jquery if a certain statement returns true. I have just been playing around without the statement but it doesn't seem to work. This is my js file: <script ...
1
vote
2answers
60 views

Sharepoint Multilingual App

I'm making an app with a custom list in multiple languages. Is there an easy way so that I only have to create the site columns, content type and list once? So I don't have to create them for each ...
0
votes
1answer
39 views

Proper way to check for failed SPServices call?

I'm running a SharePoint method with SPServices that should copy several items. I just noticed that the return value is "Success" even when I've specified an invalid location and nothing has actually ...
0
votes
1answer
38 views

How to make web part with properties for Js Development only

I want to start development for SharePoint with JavaScript, but I am not sure if it provides the same flexibility as the server side development, for example I would like to make a web part with ...
0
votes
1answer
38 views

two drop-down side by side

I want to show two drop-downs for Day and Month in SharePoint OOTB form in one row (side by side).
0
votes
0answers
21 views

Dynamically adding CUI.Controls.SplitButton?

I managed to dynamically add Ribbon to Custom Edit Form, as described here. Now I need to replace Button with SplitButton element with Menu in it. Is there any example about it? I really don't wont to ...
0
votes
1answer
44 views

JSOM function get_isSiteAdmin() is always false

I'm trying to get the property "IsSiteAdmin" from a user object in Javascript JSOM. The app I am programming needs to be able to distinguish normal users from Administrators. function ...
0
votes
0answers
18 views

using css js optimization in sharepoint 2013 results with error on SPRequestModule.IsExcludedPath

I'm trying to use built-in dot.net 4.5 feature web optimization (css and js minification) on SharePoint 2013 website and I'm getting an exception on ~ urls: Exception Details: ...
0
votes
0answers
19 views

passing information from Sharepoint to Immersive Sharepoint App

I have created an custom add entry app to sharepoint. It all works however currently the list it works on is hard coded. I want a way to pass the list I want to add an entry to to the application. I ...
3
votes
2answers
68 views

ctx in CSR not return the title

I need to make by clicking on the title of a list item, to open the edit form and not the view form. To do this I chose the CSR, I have the code: (function () { var statusFieldCtx = {}; ...
1
vote
1answer
37 views

Add a SharePoint group to a role using JavaScript

I'm writing a script that adds user to a group (for example readers) on a site using a form and a PeoplePicker field. But I also want the script to be able to handle not only users, but also if it is ...
0
votes
0answers
17 views

How can I on list datasheetview, disable with jquery combobox-dropdown if one of the option is selected?

What I want to get after all, when user will chose the one of the option from Approval , in ListDatasheetView combobox of approval field should be disable and when the Approval status will become ...
0
votes
2answers
26 views

In which place we should paste Div tags in sp designer 2010?

I have a js file which needs some html div content. where exactly I have to add div tags content in aspx page in SP designer 2010 . Thank you.
1
vote
1answer
21 views

Office 365 APIs for Javascript Windows 8 Store App Developers [closed]

When will the newly released/previewed Office 365 APIs be available for all of the JavaScript Windows 8 Store App Developers?
1
vote
0answers
27 views

White rectangle background when i scroll SharePoint Modal Dialogbox

I'm facing a strange issue. Couldn't find the solution for this on the internet. I'm using a SP.UI.ModalDialog.showModalDialog in a SharePoint web part. Issue: When this dialog box is displayed and ...
1
vote
0answers
15 views

How can I print all the PublishingWebControls:RichHtmlField content inside my EnterpriseWiki.aspx as a pdf file

I am working on an enterprise wiki site collection , and using the SharePoint designer I have manually added a link named “Print to PDF” as follow:- But I am trying to implement the link ...
2
votes
4answers
197 views

How to write javascript for Yes No modalDialog Box?

how can we write javascript for sharepoint2010 confirmation ModalDialog popup with Yes NO buttons? Thank you. I wrote like this.. but which is not working.. please anybody help. function ...
2
votes
1answer
33 views

How to upload image file into the SharePoint picture library using ECMA Script

I require code to upload image file to sharepoint picture library using javascript or ecma script. Thanks
7
votes
2answers
184 views

How do I trigger the default form validation without submitting the form

I'm customizing the NewForm of a list item and need to trigger the default form validation from my JavaScript, but I don't want the form to be submitted, since I'm doing that in a callback later on. ...
3
votes
1answer
114 views

Get ID of item in ListView Web Part

How can I get the ID of an item in a ListView Web Part, on hover? I need this ID to fetch some columns from the list, and show them in a tooltip box. Can I get the whole thing done using ...
1
vote
2answers
59 views

Jquery and csom problem

Hi im having some code like this: var News = new Array(); jQuery(document).ready(function () { ExecuteOrDelayUntilScriptLoaded(initialize, "sp.js"); some code here... function setUpList(){ ...
2
votes
3answers
53 views

SPServices is the Document Checked Out SP2010

I was wondering if anyone knew how to tell if an item has been checked in or out from SPServices? I am able to get all of the nodes but I do not see one which captures the checkout. Is there a way ...
2
votes
1answer
124 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 ...
1
vote
0answers
43 views

"Unable to attach the process. Another debugger might be attached to the process” issue while debugging javascript?

I have an issue .. Currently im working on javascript file.. when I want to debug js file by using ie developer tool(F12) , It showing error : "Unable to attach the process. Another debugger might be ...
2
votes
3answers
64 views

Error when deploying SharePoint feature: The specified list does not exists

I'm using SharePoint 2010 Foundation and Visual Studio 2010 Ultimate. I'm working on a Web Parts with two features: Feature1 - My Web Parts Feature2 - Contains two Visual Studio module with CSS and ...
2
votes
1answer
60 views

Open one page after another in a modal dialog

My client wants me to create a modal dialog that acts like a popup window. Can this be done? Here's the issue: The visitor is editing some basic database data via a form in the original browser ...
1
vote
0answers
57 views

Starting a Sharepoint 2013 Workflow via js file

I´m trying to start a workflow 2013 from a custom ribbon icon. I have configured an elements.xml file where I call the Javascript file. The problem is, that I get a JavaScript runtime error “Type” ...
2
votes
0answers
29 views

Retrieve items from content type

I have the following setup: Root Subsite1 Subsite2 list1 list2 content type: News content type: News How can I retrieve the ...
2
votes
2answers
43 views

Is it possible to change SharePoint CSS via javascript?

I am working on Sp2013 site and want to change the opacity of the overlay. This is the CSS that needs to be used:- .ms-core-overlay { background-color: rgba(255, 255, 255, 0.5); } I am setting ...
2
votes
3answers
105 views

using CSOM to retrieve fields in a list in a view

I am trying to use the CSOM to retrieve all the displayed fields in a particular view. I require to know the field type and field internal name. I can not do: var list = ...
1
vote
2answers
64 views

If I have several items' IDs, how can I use that to retrieve a specific field value?

I have used (in a for loop): var itm = mylist.getItemById(id); I tried using context.executeQueryAsync , but I read that I can't use this to store or return global variables. The only examples I ...
1
vote
2answers
68 views

Sharepoint Iframe Cross Domain

I developed a web part that is loading a dialog, something like: var dialog = SP.UI.$create_DialogOptions(); dialog.url = '_layouts/page.aspx'; etc.. Inside this dialog I have several stuff and ...
2
votes
1answer
91 views

how to customize OOB web parts UI

SharePoint 2013 brings a new concept of UI customization, via the JSLink, allowing to reconfigure the Web Parts UI aspect/behaviors, as exemplified by O'Brien here. Although, most of SPObjects ...
3
votes
2answers
30 views

Show library items to anonymous users in Office365

We have a client in Office365, they have been using the public site for a while now and we put in some javascript that pulls images from libraries and displays them in various places as rotating ...
0
votes
0answers
34 views

Hide user presence contact card popup in SharePoint 2013

On hovering with the mouse over a user presence I don't want to display the contact card. We have used this to show user presence in a custom Webpart.
1
vote
1answer
63 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
0answers
19 views

Disabling the Links on the Picture Library Slideshow webpart. or ammending the code to open the link in the same window [duplicate]

I am using SharePoint 2010 Picture library Slideshow webpart. But want to disable the link from opening in another window. I have used the following code succesfully to change the image link to the ...
3
votes
2answers
161 views

Add Users with Javascript after Client PeoplePicker is loaded

the following MSDN article describes how to use the Client PeoplePicker with Javascript: http://msdn.microsoft.com/de-de/library/office/jj713593(v=office.15).aspx I have an SharePoint hosted app ...
1
vote
1answer
85 views

JavaScript code to enable - disable people editor control not working in Chrome and Firefox

I have an application page in which two radio buttons and a people editor control is there. My requirement is, if radio button "Yes" is checked then the people editor control should be enabled other ...
1
vote
1answer
65 views

Create control to upload Attachment to list in SharePointOnline

I have a custom webpart page which is used to enter some input data which eventually gets saved as a List item. Now i want to add a control to that page which enables user to upload attachments to the ...
1
vote
1answer
119 views

Javascript Confirm popup Yes, No button instead of OK and Cancel [closed]

I wrote javascript for confirm popup like below: var answer = confirm ("Are you sure you want to delete this item ?"); It is showing OK Cancel button popup , but I want to display Yes No buttons on ...
2
votes
1answer
54 views

REST listdata.svc call to another site in collection doesn't return people picker values

I have two sites on the same collection. There is a people picker field on my list in site2. I am in Sharepoint 2010. mysharepointsite/site1 mysharepointsite/site2 I am using the Sharepoint REST API ...