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)

3
votes
1answer
3k views

Getting Version History and What Field has Changed

I am using the GetVersionCollection to get the history information from my list. This seems to be working fine; however, what I need to do is get the version history of the individual item which has ...
2
votes
1answer
112 views

How to trigger the click event of the SharePoint OOTB list's new form Save button?

I have custom list in which there are two mandatory fields, and I want to ask the user if he wants to again enter the new item after one item is created. I searched over the internet and found this ...
2
votes
1answer
80 views

executeQueryAsync fail on Chrome

I am using SP.ClientContext (JS library) to update some item's fields. It is working fine on IE but on Chrome I get this error (displayed as alert): Request Failed, status code 0 text '' The ...
2
votes
1answer
165 views

Office 365 SharePoint 2013 Send email with attachments

I need to send Email with attachments in Office 365 SharePoint 2013. We cannot do this using the sharepoint designer workflow. Is there any way to call exchange web service from javascript and ...
2
votes
1answer
512 views

Get selected items from JavaScript in the document library view

I have a page in which I have placed XsltListView web part to show the view of the picture library. Above that view I have placed a link using Content Editor Web Part which redirects to other web ...
2
votes
1answer
54 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
1answer
73 views

SharePoint 2010: Create a compilation email from multiple items

First of all, the tools I have available to me are SharePoint Designer and InfoPath, and I am much more comfortable in the former than the latter. I have a request to create a solution to facilitate ...
2
votes
1answer
2k views

Launch SharePoint 2013 Workflow w/Javascript

Looking to launch a list workflow from script tied to a button on a form. I've been referencing this article, as well as the code from example 5, and even tried using SPServices, but have yet to come ...
2
votes
1answer
442 views

“Type SP.ULSTraceLevel has already been registered” error while applying javscript to NewForm.aspx

I have a custom list in which I want to apply the javascript in new form of that list. Javascript loads the user profile property of the entered user in the people picker control. I am getting ...
0
votes
0answers
49 views

How to interact with a SharePoint 2013 page in edit mode

I'm new to the SharePoint 2013 Javascript API, so I'm still bumbling in the dark, trying to figure out how to write some javascript code to interact with a Sharepoint 2013 page in Edit Mode. ...
0
votes
0answers
101 views

Hide Field Containing row when trying to hide sharepoint field

for some reason I can only hide the actual control and I am trying to hide the encapsulating row. I don't see where I am doing wrong.` <script ...
0
votes
0answers
43 views

finding individual list items and updating css

window.SFW = window.SFW || {}; window.SFW.urgentAlertsItem = { customItemHtml: function (ctx) { var urgentAlertsItemHtml = "<div class='urgent'><h2 class='name'>" + ...
0
votes
0answers
137 views

SharePoint 2013 Javascript-PopUp does not open on ImageButton, but on normal Link (with Project Download to test)

i have a SharePoint Webpart with an GridView. In this GridView there is an ImageButton and it should open a PopUp to edit data. I did this with RowCommandEvent in the CodeBehind File. This is the aspx ...
0
votes
0answers
32 views

Linking a js file into a blank page in sharepoint then count how many items in a list

I have created a new page on my sharepoint site. I have embedded some html using the embed code <!DOCTYPE html> <html> <body> hello </body> </html> I have a js file ...
0
votes
0answers
95 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
0answers
44 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
0answers
53 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
0answers
73 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
64 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 ...
0
votes
0answers
52 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
0answers
169 views

How to copy document from library to list attachment with SP Services?

I need to attach a document that is stored inside a document library to a list item on the same webpage. All needs to be done with javascript / jquery / spservices. Can you please help me and show ...
0
votes
0answers
133 views

Cookie blank in Safari and iOS

I have a modal dialog that launches when a user first visits the site. The user selects a particular item, in the form of a radio button, and then a database query is made and the resultant ...
0
votes
0answers
27 views

How to access another web, by name in client object model

Iam in site B . There is another site named A .I want to access a list A of site A from site B using client object model. Can I access it I am using below code. var context = new ...
0
votes
0answers
233 views

Bootstrap not working in Page Viewer Web Part - IE9

I have a web page, developed using bootstrap, hosted in my local server, and I am using a page viewer web part in SharePoint 2007 to display it. The web page works perfectly outside the SharePoint ...
0
votes
0answers
54 views

Add link to Icon in ChromeLoader

I'm using the following well documented Chromeloader.js on my client side 2013 app. i want to wrap a link around the "appIconUrl", can i do this for the JS or will it need to be done on the HTML page? ...
0
votes
0answers
67 views

Retrieve Profile Picture with REST

Hi i would like to show the profile pictures of the user that have created the item in a list, here is my code: <script type="text/javascript"> $(document).ready(function() { var ...
0
votes
0answers
110 views

How to Install App from sharepoint hosted app to sub sites

Here is my function, but it doesn't work: var context = new SP.ClientContext(appweburl); var factory = new SP.ProxyWebRequestExecutorFactory(appweburl); ...
0
votes
0answers
394 views

Get IP Address of client

I was wondering if it was possible to get the IP address of the client machine accessing a 2013 website. Is it possible to do this with an ajax call by utilizing one of the sharepoint RESTFUL ...
0
votes
0answers
32 views

How to get “Shared With” count of a list item or document using CSOM

Is there any way to get the count of "Shares" on a list item. I've a requirement to show "share" link along with the share count like "share(10)", Can I do it using javascript?
0
votes
0answers
133 views

Filter/compare two arrays from CAML query

I'm using JavaScript/Client Object Model to retreive some data by CAML query. I've 2 CAML queries. One retrieve all data from a specified column. The other query retrieve data from same column ...
0
votes
0answers
294 views

SharePoint Modal Dialog Box not launching when on live server

I have an aspx page, which contains a file upload control, which has an onClientClick method which triggers a javascript method to pop out a modal window informing the user to wait: <table ...
0
votes
0answers
124 views

Trying to get list of groups a user belongs to

I came across this post showing how to create a permissions management webPart using SPServices. I tried to do it in SP2010 but keep getting error " User not found". I think it has something to do ...
0
votes
0answers
261 views

javascript:OpenPopUpPage will close automatically on safari web browser

I have the following code to display a pop-up window:- <li class="ms-comm-adminLinksListItem" unselectable="on"> <a ...
0
votes
0answers
46 views

Add content to Web Part from Modal

I'm showing a button, when editing the web part, so the user can click and a modal popups up. This modal should have a couple of option, doesn't matter now, but then I want to save the content so that ...
0
votes
0answers
563 views

Modal dialog for document library

First of all, my question. How do I make a working modal dialog popup for a document library, that shows details about that document upon clicking the document name in the library list? Please note ...
0
votes
0answers
404 views

Update/Save list item edits without closing editform

I am working with a customised list 'editform' and would like to give my users the ability to save their edits without the editform closing, which is the default SP 'Save' behaviour. I have linked ...
0
votes
0answers
238 views

Modify list item field using javascript?

I'm trying to implement some Move Up and Move Down hyperlinks in a list so that, for example, pressing move up moves the item one place up in the list. I have tried giving the list an order column ...
0
votes
0answers
85 views

JavaScript tab control that works on SP 2010

I'm trying to use jQuery UI Tabs but it seems to conflict with SP2010 styles, do you know any alternative that Works with SP2010? Or maybe a way to fix this? The same issue occurs with Bootstrap ...
0
votes
0answers
43 views

display library items in content editor

I have a content editor webpart. There is a table and I would like to display the items of a spezial library in line 2, column 4. I have no idea how to realize this... maybe with javascript?
0
votes
0answers
105 views

print function is not working fine with the script code

` .styled-button-2 { -webkit-box-shadow: rgba(0, 0, 0, 0.0976562) 0px 1px 0px 0px; background-color: #EEE; border: 1px solid #999; color: #666; font-family: 'Lucida Grande', Tahoma, Verdana, ...
0
votes
0answers
38 views

Put a break in javascript function

Hi I have 10 sharepoint lists.structure,column name,data type all are same. I need to check whether a particular item is found in any list then do some action using ecmascript. var ...
0
votes
0answers
87 views

SP2007: Upload a file to data view of document library using JavaScript

I'm new to SharePoint 2007 and looking if someone can help me on this. I have a data view that displays basically documents in a library. I was asked to add an "upload file" functionality using ...
0
votes
0answers
476 views

sharepoint 2010 with Kendo UI, REST, autocomplete

User defined List in SP 2010, with Kendo UI code as below does not display any data in for my simple 'autocomplete example' . Here is the code <script> ...
0
votes
0answers
459 views

current user is always is administrator on a SharePoint App

I have tried following solution to check the current user's permissions on the current host web in a SharePoint hosted app, however the user is always administrator. function sharePointReady() { ...
0
votes
0answers
360 views

Created a layout page, but getting a parentElement null error

I've created a layout page, when I run the page and look at the JavaScript console, I get a 'parentElement' null error message like this: Uncaught TypeError: Cannot call method 'parentElement' of ...
0
votes
0answers
116 views

Update WebPart MenuItem/Verb from Client Side

Here is the scenario - I have a custom webpart where I added one custom menuitem with client side handler, now my requirement is when I click on the menuitem some text should be shown, for example ...
0
votes
0answers
243 views

injected javascript code in a basic webpart

I have a working solution according to below, but I want a dynamic link which is created in Createchildcontrols and included as an arguement in the function newitem but I get an JavaScript error on ...
0
votes
0answers
85 views

SharePoint 2010 Motools JavaScript incompatibility

I created a JavaScript Slideshow base on Slideshow2 using Mootools. It works great stand-alone. I decided to incorporate it into my SharePoint 2010 Master Page and at first glance it was working ...
0
votes
0answers
207 views

XSLTListViewWP: filter results based on javascript variable/other control on page?

I have some custom html/jquery form stuff on a page, and I would like to update a LVWP on another part of the page if a user adds something. So for example, the list view web part just shows items on ...
0
votes
0answers
65 views

How to extent the logout time when doc is opened for edit/view sharepoint site?

I have custom javascript to logout the sharepoint page after 30 minutes. Now the problem is, if i have opened any document from shared document to edit/view. then also sharepoint site got logged out ...