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
2answers
53 views

Loading image freezing with Javascript Object Model and jQuery Promises

I have some code using the javascript object model to get items for several dropdown boxes on a form. I also heard that using Promises was the way to go for speeding up things and created 2 wrapper ...
1
vote
0answers
8 views

JavaScript error with paging in community discussion SP 2013

I have a community site with many discusssions. One of them is a discussion divided into 3 pages (each answer has text and animated gif). When I try to go to page 2, in default (Flat) view mode, I ...
0
votes
3answers
18 views

Issue in calling the function using ExecuteOrDelayUntilScriptLoaded()

I am facing issue while calling the function using ExecuteOrDelayUntilScriptLoaded() I am writing like: <script language="javascript" type="text/javascript"> ...
1
vote
2answers
633 views

How to use SPServices search sql query - getting malformed query

I am using the SPServices javascript library to make a search request to sharepoint 2010 search. I am trying this query: queryText = "<QueryPacket xmlns='urn:Microsoft.Search.Query' ...
2
votes
1answer
591 views

Create Multiple List Items with One Function

Is it possible to create multiple list items with one function in JavaScript / ECMAScript? I know that a single item can be created with the code below, but would like to know if it is possible to ...
1
vote
1answer
420 views

A script on this page may be busy, or It may have stopped responding

there is one webpart on page that rotate the images so i added a jquery to rotate images and its working fine but after sometime it gives error like A script on this page may be busy, or It may have ...
0
votes
1answer
11 views

adding more than one list item into List at a time when the items are generated dynamically (using NAPA)

I am using the below code to insert an item into the list. function createitem() { var selectListBox = document.getElementById("txtFormName"); var selectedListTitle = selectListBox.value; var ...
2
votes
1answer
93 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 ...
1
vote
2answers
51 views

How to send a document from a document library as an attachment in an email?

I need to add a column to a document library that will have the text "Send in email" for each document in the library. If a user clicks on it, it should open a new Outlook email and automatically add ...
0
votes
0answers
3 views

SP 2013 cross-platform Mobile App | HTML5 based | How to authenticate? OAuth?

I have a mobile app which will be cross-platform capable using cordova. So it is based on HTML5, CSS3 and JavaScript. My Problem is, that I don't know how to authenticate the App to Sharepoint to ...
0
votes
2answers
2k views

Jquery is not working on sharepoint date time control

Hi In my application page i have a sharepoint datetime control. I am using jquery on text changed event to calculate the number of days and displaying in a text box. Now i want to fire the same event ...
2
votes
2answers
635 views

Run JavaScript after “group by” in list has been clicked on and list data loaded

I have created a JavaScript function to take a url from a list item and turn it into an image. This function works great on a list that doesn't have group by setup. With this script the images will ...
1
vote
2answers
306 views

SharePoint Online REST API Image upload AJAX

I'm trying to upload an image to SharePoint using native JavaScript/jQuery - NOT SP.RequestExecutor. I've cracked the authentication issue, nice and easy, so now it's just a case of working out how ...
0
votes
1answer
23 views

Multiple Asynchronous query chaining

I have a Sharepoint 2013 application that has multiple (3) ExecuteQueryAsync calls in 3 different functions. Two of them are referring to the Project Server project context, and one is referring to ...
1
vote
1answer
154 views

Can I change the display name of column in a listview using JSlink

I've a requirement to change the display name of a column in only one view, I've to show 'Responsible' instead of 'Responsible Person'. Is this possible by JSlink ?
1
vote
2answers
572 views

Removing Fellow & Sync buttons using javaScript worked well, while it will fail to hide the share Button

I have wrote the following three scripts at the end of my master page, to remove the Fellow,Sync and Share buttons:- <script type= "text/javascript"> ...
0
votes
1answer
27 views

SharePoint 2013 lookups with more than 20 items as select or input?

So I was reading about doing some JavaScript to manipulate the default forms for our lists and came across this: ...
0
votes
1answer
18 views

JSLink Client-side rendering

I need to render some fields client-side, I followed this guide: Client-side rendering but this code is not working: (function () { // Create object that have the context information about the ...
2
votes
4answers
3k views

Unable to get property 'get_current' of undefined or null reference

$(document).ready(function () { var count = 0; retrieveCurrentListProperties(); function retrieveCurrentListProperties() { clientContext = new ...
0
votes
1answer
38 views

Creating folder is not possible in app web in sharepoint?

I am creating sharepoint hosted app. In that I created one list. Now I want to create folder in that list when I click on the button. Since it is in the same domain I am not using any cross domain ...
0
votes
1answer
1k views

Add new item to child list and refresh the parent form - multiple lookup

I've created a parent list (Vendors) and a child list (software list). There can be multiple vendors for one piece of software. I've created a custom new form with a link which opens up a modal to add ...
0
votes
1answer
381 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
1answer
302 views

Hover effect over an image in SharePoint 2010

I would like to add a kind of hover effect over an image. My source code in JavaScript looks like the following: _spBodyOnLoadFunctionNames.push("color"); function color(){ var $th = ...
0
votes
1answer
458 views

Set value of choice field based on input from people picker

I have Choice Field which i use to filter items within a list. I'm trying to figure out a way to set value of this choice field within my edit form is there is a name in the people picker field. ...
2
votes
4answers
2k views

Set default value in people picker javascript/jquery

I want to set current logged in user to people picker by javascript. I can retrieve the value of user(lets say in var user).But how to set it to people control. Any help is much appreciated.
0
votes
1answer
27 views

Button/Workflow to open New Email Form in List (EDIT: CSR & JS Link)

Right now in SharePoint (2013) if a column contains an email address by clicking on it an Outlook window pops up with the To: autofilled with that email address. Maybe the other way round is possible? ...
0
votes
3answers
28 views

Get value of lookup

In js, i retrieve some items and inside there are lookup column and people column. When i print them, it's [object Object] Are there a way to determine if it's a lookup column? This one doesn't work ...
0
votes
1answer
36 views

Get the current view name

In javascript, i need to know the current view. I found this post but in 2010 it doesn't work: How to get the current custom view name of my SharePoint List When i do context.view, it's undefined. ...
0
votes
0answers
15 views

How to hide SP.UI.ModalDialog.showWaitScreenSize?

While loading a SP.UI.ModalDialog window, I implemented a Waitscreen as proposed by MdMazzotti. Now, I seem unable to close that waitscreen from the dialog window. apparently, this fails because the ...
0
votes
3answers
23 views

How to load multiple item

I'm using SharePoint 2010. I'm trying to load mutliple selected item from a view in a ribbon on a custom list. I can have the selecteditems but when i try to display a value for an item, i've an ...
0
votes
0answers
9 views

Multiple select tag in HTML using jquery autocomplete [closed]

I have a Sharepoint Form that has 15 comboboxes that are linked to another list with hundreds of values. I used JQuery autocomplete to filter user input to specific values. My question is, how can ...
0
votes
1answer
419 views

Grabbing a filter value via CEWP code behind

I have employed a Query String Filter to parse a value and send it to a chart web part. now I would like to use this value in a CEWP to provide an explaination/clarification for the chart, but the ...
6
votes
2answers
5k views

Check if user is in a specified group

I would like to check with JavaScript if the current logged user is in a specified and specific group (for example called "Admins Group"). How can I do? Thanks
0
votes
0answers
18 views

Help Updating Image Url of recently modified Sharepoint List items

I'm working on a project for my group where we want to display a different stage progress image whenever the current status field of a list item (Req Status) is changed in the Edit Properties window. ...
3
votes
4answers
87 views

How to update the name of an attachment from a list item (if possible, with SPServices)?

Like the title says, I'd like to know how to update the name of an attachment from a list item. The document name.I've figured out how to get the attachment from a list item (see code below), on the ...
0
votes
0answers
6 views

getTimezoneOffset(); using returns -60

The listItemToTime before making it to getTimeZoneOffset displays in UTC format, Like this 2014-10-15T10:00:00Z var toTime = new Date(listItemToTime).getTimezoneOffset(); But after using ...
5
votes
3answers
5k views

How to Use ECMA CSOM to Set a Field of Type SPFieldUserValue

I have a JavaScript array containing the string representation of some usernames (domain\username format). Using the JavaScript CSOM, what is the best way to create a new item and add those usernames ...
0
votes
0answers
24 views

How to get Sugested People, Documents and Sites to follow in Sharepoint online using REST

I know we can use http://<siteCollection>/<site>/_api/sp.userprofiles.peoplemanager/getmysuggestions API but I am unable to get the Data
0
votes
1answer
44 views

sharepoint designer - get current server datetime through javascript REST

Is it possible to get current date time of sharepoint teamsite hosted server through javascript REST api?
0
votes
0answers
24 views

Document Set created using SPServices shown as folder in WelcomePageView

After creating Document Set programatically using jQuery SPServices, if i click on Document Set Name it showing AllItems.aspx page instead of default docsethomepage. I checked in the Welcomepage view ...
0
votes
1answer
22 views

Copy a list item with all field entries

I try to find an easy solution for copying a list items with all field values (duplicate a list item) and edit some specific lines at the end. The script I'm using right now isn't perfect for my ...
0
votes
2answers
35 views

how to get people picker text using javascript

I want to compare text of 2 people picker which are on same form.how to do it using JavaScript or Jquery. I have already gone through so many blogs but they are not providing the exact solution that i ...
0
votes
1answer
966 views

Upload a document in a specific folder

I would like to set a specific folder when I open the upload.aspx page to help. I tryed to look in the dll but the license of reflector is expired. UPDATED Maybe this post can help ...
0
votes
0answers
14 views

Hide empty columns in PerformancePoint Scorecard dynamically

I have a scorecard with several empty columns which I want to hide dynamically. In the illustration above, I want to hide three empty columns, viz. MidYear Income, MidYear % and MidYear Status. ...
9
votes
4answers
6k views

How to avoid caching issue when using custom JavaScript and CSS deployed under _layouts?

On our farm, I'm deploying some JavaScript and CSS files under the _layouts folder. I'm then referencing them, where it's required using a <SharePoint:ScriptLink> or a ...
0
votes
1answer
31 views

SharePoint 2010 Modal Window - Detect when content has fully loaded

I have a SP 2010 page, where I have several links that open modal windows with the following code: function OpenModalPage(url, title) { var myModalPageOptions = SP.UI.$create_DialogOptions(); ...
0
votes
1answer
21 views

How Can I Incluse a js file in a Sharepoint MasterPage

I am newbie about developing with sharepoint and recently, my boss has assigned me a task, so I had to create a list in sharepoint and that list should be accessed by anonymous users. So far ...
0
votes
2answers
267 views

SP2013 online : set_formDigestHandlingEnabled Error

I get the error : Object doesn't support property or method 'set_formDigestHandlingEnabled' when I try to get the current SPContext object from javascript code in an Office 365 site. I am ...
2
votes
1answer
705 views

How to open file in adobe reader using command line without checkout from Javascript?

I am working on print functionality. I am printing the PDF files (uploaded in SharePoint Library) using Adobe Reader command line from javascript. I am using ActiveX object to call the cmd. refer ...
0
votes
0answers
15 views

Remote access development

I'm relatively new and have tried to search posts regarding this problem but I'm not sure whether I'm hitting the right sites. The scenario is this. I have a sharepoint 2013 installed on ...