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
8 views

How to run the JS with on() function with Javascript

In the Calendar with Add button, after the JS Calendar starts completely, the HTML below appears and I would like to run my JS with AsynchronousViewDefault_CalendarView attribute. However, it doesn't ...
0
votes
0answers
4 views

401 on /_api/web/sitegroups/getbyid(xx)/users call

Logged in users are getting prompted for user/pass when /_api/web/sitegroups/getbyid(xx)/users is called. I don't think that's supposed to happen (according to our vendor). What's my step in ...
0
votes
1answer
21 views

Iterate through List items in a view and manipulate column data using JavaScript

The short story is I want to open a custom filtered view created by the standard SP UI and click a button that will iterate through all the items in the view and change the status field to complete. ...
0
votes
2answers
29 views

WebParts with JavaScript don't work with managed path

I developed a SharePoint 2010 WebParts with JavaScript and CSS(inside a module). I haven't problem on development environment but in production environment. In production environment I have a ...
0
votes
1answer
25 views

Value of a parameter in the query string causes a new page to open instead a modal dialog

ListIDFromQueryString = '{08.....3-d...-....-....-........ce47}'; I want to use this value as the parameter (with a different name) in a link to open a modal dialog box. ...
1
vote
3answers
28 views

How to replace all href elements when mouseovers with Javascript

In the Calendar with Add button, I would like to replace all href="javascript:void(0)" to href="http://google.com" when mouseover the image caladd.gif with Javascript and jQuery. Summary: That means ...
2
votes
0answers
10 views

Mimic Target Audience in SharePoint Foundation

As a preface, I know Foundation does not have audience targeting. But, I do not have an option to upgrade to SharePoint Server. So, with that preface, here is my dillema. I have two SP groups, ...
0
votes
1answer
27 views

BoxShadow and BorderRadius do not appear in IE with Javascript and CSS?

I got into a trouble that in the SharePoint, the Box-shadow, Border-radius and the showToggle's div tag don't appear in IE, but it runs very well in FF and Chrome. Please let me know what is going ...
0
votes
1answer
16 views

How to Attach file to Outlook Application

I am trying to attach a file to outlook Application using java script.Its working fine in IE 10 and above but not in any other browsers. Here is my requirement. For Document Library a. When a user ...
0
votes
0answers
24 views

UpdatePanel not working inside Parent GridView ItemTemplate

There is a SharePoint 2013 Visual Web Part in our project. It has 4 nested GridViews together. On click of one Image button 3 grids will get expand. Population is also coded on click of that image ...
2
votes
1answer
37 views

SP.RequestExecutor on SharePoint online

I deployed an App SharePoint hosted. I am using SP.RequestExecutor and it is working fine on SharePoint premise. but on SharePoint online it is not working. I added the library using this: ...
2
votes
2answers
26 views

SharePoint 2013 get user groups by CSOM

I wrote some code to get the current user groups by CSOM. function getCurrentUser() { this.clientContext = new SP.ClientContext.get_current(); this.oWeb = clientContext.get_web(); ...
0
votes
0answers
25 views

JSLink: Getting item URL or identifier

I'm using a modified version of the Accordion Menu code sample (here). Inside the accordianTemplate function, I need to get the URL or some kind of identifier of the currentItem object so that I can ...
1
vote
1answer
52 views

Creating dynamic accordion from a custom list using jQuery and jQuery UI in SharePoint not displaying as should

I am trying to dynamically build accordion from list of items returned using JavaScript, jQuery and jQuery UI. Below is my code: <div> Search List <input type="text" ...
-1
votes
3answers
64 views

Get id of current inserted item by javascript

I'm currently trying to get the id of my currently iserted item. I'm making a timesheet which user is able to save and retrieve his own timesheet. The thing is that i put the ID of an item in the html ...
0
votes
1answer
33 views

Script in webpart freeze the whole site

I have a JavaScript in my script editor that on page load freezes the browser . I can't use SharePoint designer to remove it because the script is in a script editor. I have tried disabling JavaScript ...
0
votes
1answer
26 views

Recalculate Calculated Columns with Javascript

Has anyone some sample javascript code to recalculate a calculated column in SharePoint 2013 tasks? This should work on new and edit form and also with the AllItems view. Many thanks.
1
vote
4answers
115 views

Format Date (25 Jul) using Javascript Object Model

I am using sp2013 and building display templates. I would like to build a locig in javascript object model to get a date field back and display it on a page e.g. var itemDate = $getItemValue(ctx, ...
3
votes
1answer
48 views

How to set a List's Default Content Type (order) by using Javascript?

I've spent a lot of time Googling and MSDNing on this topic and then stopped at the set_uniqueContentTypeOrder method. This method will take an array of Content Type IDs and change the "New Item" ...
0
votes
0answers
12 views

Start Workflow with Initiation Form via Ribbon

I want to start a workflow for selected items using JavaScript and a custom button on the Ribbon. I was able to get this working with the help of SPServices. In essence I needed to get the item id, ...
0
votes
0answers
16 views

Discussion Board Best Reply Clost Thread

I am creating a discussion board app and want to know if I can amend the top button that has the text "Best Reply". I want users to be able to mark the discussion as complete. I am adding a choice ...
0
votes
1answer
52 views

Get ContentType name with select fields

I have a problem with getting the ContentType name for a item. when i use http://sp2013dev/sites/mms/_api/web/lists/GetByTitle('List')/items(1)/?$expand=ContentType I get as response all Fields ...
1
vote
1answer
30 views

Reindex search results (Content Search Web Part, 2013)

I will just leave this here, since it helped us a lot: We have a Content Search Web part with custom Display Templates with link to edit item. After user edit item, we want to refresh the search ...
0
votes
0answers
51 views

Use jQuery to make a “column” on the default view?

I am trying to append a value to the end of each row by selecting the number value in one column to do some sort of math with it and output the value on the other one. This code works for me on one ...
0
votes
0answers
24 views

How to change state (toggle on/off) of ToggleButton?

There is a ToggleButton: <Tab Id="Ribbon.Book" Title="Book editor" Description="" Sequence="2"> <Group Id="Ribbon.Book.TextFormatting" Description="" Title="Text ...
0
votes
2answers
53 views

How to make webEnumerator.moveNext wait until executeQueryAsync query executes

I want executeQueryAsync to complete before giving back control to webEnumerator.moveNext, anyway ? function onGetSubwebsSuccess(sender, args) { var webEnumerator = webCollection.getEnumerator(); ...
1
vote
2answers
92 views

How to get title and url using allproperties

How can I get title and url using allproperties? I can get custom proeprty but do not know how to get title and url. I am not able to know as why I get the alert twice in the following code, ...
1
vote
2answers
38 views

SharePoint - How to get field value using JSOM + JSLink without Async call

I'm fairly new to the JavaScript Object Model (JSOM) and I want to do a simple call to get a field value. Very easy in C#, but I can't seem to get a field value even though I have the ListItem: ...
0
votes
1answer
31 views

Retrieve list item information using path

Using: SharePoint 2010, JavaScript, jQuery 1.10.2, SPServices In SharePoint 2010 I have a custom (JavaScript-based) page where users may type in text and link to items in SharePoint lists. A recent ...
0
votes
2answers
33 views

How to insert record to sharepoint multi choice field via CSOM

I am trying to insert a Multichoice (checkbox) field to sharepoint via the SP namespace in javascript. Updatnig single choice is simple. For Multichoice I have tried: var itemCreateInfo = new ...
0
votes
1answer
34 views

Navigating to new page loses querystring

I have a on premise sharepointed 2013 application. On the home page, there are several links to different pages within the application itself...such as <a href="User.html">User</a> ...
0
votes
0answers
33 views

SharePoint 2010 Web Part that needs to call a dll and .js files

I am trying to create a SharePoint 2010 web part. The web part I am trying to create will contain, among other things, a custom asp.net server control as a dll. The dll refers to a number of files ...
0
votes
1answer
27 views

Javascript/jQuery - check language and replace word problem

I need to replace one word in my SharePoint site, depend in on that what language is used. I found this question: Get the current UI language with ECMAScript I tried to use that code and it works ...
0
votes
1answer
68 views

Get list items created by logged in user with REST api

How can I get all list items created or changed by the currently logged in user with this function? What's the correct query? // Getting list items based on ODATA Query function getListItems(url, ...
2
votes
1answer
146 views

How to add URL to list using JavaScript

I have a list with a title and a url. I'm trying to add a new url using this function function addListItem(url, listname, metadata, success, failure) { // Prepping our update var item = ...
1
vote
1answer
93 views

Custom Ribbon Action - Disabled with Selecting Document Set

The custom action enables/disables when a list item or folder is selected/deselected. The issue I'm running into is when a document set is selected, the custom action remains disabled. The logic: ...
0
votes
0answers
18 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
10 views

Fix Required Field Titles broken by December 2013 CU [duplicate]

So I deployed SP2010 SP2 A couple of weeks ago to fix the XSLT Compile Time-outs that were introduced in SP2010 SP1. Things seemed fine but then we noticed our automatically started Workflows on ...
0
votes
2answers
68 views

ExecuteOrDelayUntillScriptLoaded(codetorun,SP.js) for entire script function

If you look at below code, I have used executeordelayuntillscriptloaded at start of my script so that it will run only after that file is loaded. But this breaks some functionality. Can you check this ...
0
votes
1answer
41 views

Javascript on masterpage returns undefined

_spBodyOnLoadFunctionNames.push("FetchURL"); function FetchURL() { // Custom JavaScript methods var ctx = new SP.ClientContext(); ...
0
votes
1answer
40 views

Get Context through REST call

I know that in SharePoint 2013 with JavaScript, you can load the current context like so... var context = SP.ClientContext.get_current(); var user = context.get_web().get_currentUser(); ...
0
votes
1answer
40 views

Sharepoint Hosted Permission (SP 2013)

I am developing a test REST app currently, the app is sharepoint hosted and is being developed and deployed to the SP site without Sharepoint installed on my Machine. The app is meant to take in a ...
1
vote
1answer
88 views

Retrieving list items using Javascript and Caml query

Hi guys I'm new to SharePoint dev and working on a project to retrieve list items. I have followed the instructions from http://msdn.microsoft.com/en-us/library/office/ee539350(v=office.14).aspx and ...
0
votes
0answers
16 views

Required Field Issue with SharePoint 2010 December 2013 CU

I installed SP2 a couple of weeks ago to fix the issues with my XSLT Compiles timing oot (Which was a Bug introduced in SP1). Things seemed fine, but then a few days later we noticed that workflows ...
0
votes
0answers
49 views

Custom Ribbon Sharepoint 2013 Custom Action with javascript

I would create a custom ribbon in Sharepoint 2013. I created my APP-Sharepoint Hosted APP and I have added my Custom Ribbon . This Custom Ribbon, with a click under it, must open a dialog box or ...
2
votes
0answers
29 views

Get distinct values via mechanism used when clicking “Show Filter Choices” on a Sharepoint list using Javascript

As many other people on this site seem to need, I'd like to get an array (or equivalent) of the distinct values in a field for a list. The canonical way of doing this is to retrieve the entire field ...
1
vote
1answer
43 views

Sharepoint 2013 delete AttachmentFiles by JS

how can I delete an AttachmentFiles of a list item by Javascript? (with REST or using SP.RequestExecutor) Thank,Nk
0
votes
1answer
61 views

Add item to list using button

I try to create button that will be add item to the list. Unfortunately I do somethings wrong. My programming skill's are at beginner level. I have list "List" with only one field Title (for test) - ...
0
votes
1answer
59 views

How to Get User Active Directory Groups in Sharepoint Online

I can't find any documentation or a way to find if a user belongs to an AD group with Javascript neither with the REST API or with the client model JSOM. I have a page in a Sharepoint site and I want ...
0
votes
1answer
27 views

Add icon hyperlinks to grouped SP2013 list view

In SharePoint 2013, I want to take the grouped view of a list and add 3 buttons to the left of each item. In previous versions of SharePoint, I would have duplicated the list view using a DVWP but ...