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

Can't Design Content Query Web Part JavaScript News Ticker

I created a news list in SharePoint 2010 that shows news on the home page just like a news ticker with JavaScript. I used a content query web part to show news. This article is so useful, but doesn't ...
0
votes
2answers
69 views

CAML query multiple values javascript

When I run the following query I get an error: <View><Query><Where> <Or><Eq><FieldRef Name='ID'/><Value Type='Number'>164</Value></Eq> ...
1
vote
2answers
188 views

Autopopulate form fields based on selection in people picker column using JavaScript

I have a custom list where user fills out profiles of others. There is a People picker column for "Name of employee" and when the user selects the person(people picker) in the form, other details ...
0
votes
0answers
30 views

Permission Denied JavaScript Error

I am attempting to place page viewer web parts on one of my firm's intranet SharePoint sites. For some reason, the page that is loaded through the web part won't function properly. The page itself ...
1
vote
2answers
155 views

JS CSOM to redirect to another SharePoint URL

I have an application page which takes some inputs for list creation. Based on these inputs, i am using JavaScript Client Object model to create a new list. Once the list is created a notification ...
0
votes
2answers
77 views

How to display data from Excel file in a Webpart

I want to create a website on sharepoint 2010 which displays data from an Excel file in a Web part. Unfortunately, Excel Services is not available. Therefore, Excel REST cannot be used and due to ...
0
votes
1answer
16 views

buzzboost script on SharePoint page

l am trying to display a buzz boost script from feed burner into a Content Editor web part but it is not working. I noticed that when I activate the web part it removes part of the JavaScript. Any ...
0
votes
1answer
60 views

get properties from an List Item

I'm following a code sample from msdn to get properties of items from a list. My announcements list has 2 items. But for some reason I get an exception while getting the enumerator (TypeError: ...
1
vote
1answer
125 views

Display more fields in Discussion Board SP 2013

Can anyone tell me which function or part of the code I have to override from SP.UI.discussion.js to display extra fields in subject view of discussion board? Other than the fields it has OOTB.
0
votes
1answer
35 views

Some JS files are included at rendered page but I cannot find how

I am migrating a site from SP2010 to SP2013. The old site is not built by me so I am not familiar with the old design. After migrated to SP2013 (run in SP2013 mode already) In one of the page ...
0
votes
2answers
41 views

Get javascript code to run without direct interaction by the user

I have a SharePoint NewForm.aspx with some custom javascript/jquery to perform various tasks: <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" ...
0
votes
0answers
32 views

How to use the file data downloaded by REST API

how can I use the $value downloaded by the REST API? $.ajax ( { url : _spPageContextInfo.siteAbsoluteUrl + "/_api/web/getFileByServerRelativeUrl('" + selected + "')/$value", type : "GET", ...
0
votes
2answers
51 views

Get SP.ListTemplateType enum value using JSOM

I am trying to create a new list (based on a dropdown menu selection) using JavaScript Client Side Object Model. var typeList = "SP.ListTemplateType." +listTemplateType; ...
0
votes
2answers
72 views

Javascript Client Object Model Update List Items (only some items updating)

I am using a JavaScript button to set a Field-2 on each selected list item from "false" to "true". It first checks if Field-1 is empty, and if it is, sets Field-2 to true. The relevant code is as ...
0
votes
1answer
62 views

Copy a file from the RootSite to a SubSite

I'm trying to add a file from a Rootsite to a SubSite using REST API. There some code: $.ajax ( { url : _spPageContextInfo.siteAbsoluteUrl + "/_api/web/getFileByServerRelativeUrl('" + selected + ...
0
votes
2answers
44 views

Is it possible to fire a JavaScript function on a SharePoint Control in Application pages?

I am working on SharePoint Application pages. I have a SharePoint DropDownChoiceField control on the aspx page. The requirement is to auto populate this control at the time of page load. Is there a ...
1
vote
2answers
84 views

Updating list items by JSOM

I am currently trying to migrate a list from one sharepoint to another. I did this a few months ago allready and there it worked not bad. But now I run into problems. The list is a discussion list. I ...
0
votes
0answers
50 views

How to Remote Authentication to SharePoint Online using Javascript

I am trying to "Remote Authentication to SharePoint Online using Javascript" as given in the following link But have not been able to successfully authenticate against SP Online. Getting ...
0
votes
1answer
82 views

Create Next and Previous Paging Using Sharepoint List and SpServices

can anyone help me in Creating Next and Previous Paging for SharePoint List Using Sp-services With Client Side Template Binding . Below is the Code Which I was Using. $().SPServices({ operation: ...
1
vote
1answer
48 views

How to Print a table with Style

I cannot print a page with Style in SharePoint. Please take a look on two images below. I've added the media="all" or media="print" into <style type=text/css> but these didn't work. The screen ...
0
votes
1answer
46 views

Javascript/Ajax errors on custom master page

I have a custom master page using a few JS utilities like jQuery and skel.js that has been experiencing some errors whenever the page loads. The errors are transparent to the user, but show up in dev ...
0
votes
1answer
40 views

Unable to system.string to system. guid - CSOM

I have a picture slideshow webpart which displays images from a particular library with a particular view. I want to change the webpart property - view using jquery. I have used CSOM to get the ...
0
votes
3answers
46 views

IE6 user browse Sharepoint 2013 get the same Javascript error on everypage

I understand IE6 is no longer support in SP2010 and SP2013. My only requirement is hiding the Javascript error and let the user able to read the Sharepoint page only. In my test environment, IE6 user ...
-1
votes
1answer
54 views

Javascript files could not be referenced in my pages

I tried to reference the js files in my SharePoint pages but no way. I tried the follwing links: <script type="text/javascript" language="javascript" ...
2
votes
2answers
151 views

Add Ribbon Button via JavaScript

I have specific requirements from my client that he wants to add some additional Ribbon Button "but only" via JavaScript (including EnableScript reading value from some other list). They don't want to ...
0
votes
2answers
77 views

Compare current user login name with four custom sharepoint list 2010?

I have 4 custom list (test A, Test B, Test c,test D). I need to find current user login belongs to which list in sharepoint. if current user belongs to Test b list i need to show pop up "U belong to ...
0
votes
1answer
35 views

Image Click event inside content editor webpart

I want to add an image click event inside the content Editor web part using the JavaScript only. Here is the scenario which i want. I have 4 images in the main sharepoint page insides the content ...
2
votes
2answers
199 views

Why does “sp.js” load only when I am editing a web part page?

I have created a page and would like to use some functions that require sp.js to be loaded, but it never seems to load unless I am editid the page (Site Actions -> Edit Page). Trying to find the ...
0
votes
1answer
58 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 = ...
1
vote
1answer
62 views

Alternative to CSOM ListItem.get_item

The only way I know to load a sharepoint list via Javascript is to load it and on the current list item: var value = currentItem.get_item(columnTitle); I want to be able to load an item and on the ...
0
votes
1answer
54 views

'OpenCalloutAndSelectItem' is undefined / 'ShowMenuForTrOuter' is undefined

SP2013 Enterprise, custom master page using skel.js and jquery Recently users have started receiving an error when trying to access the item menu revealed by the ellipses next to an item in a list. ...
0
votes
1answer
55 views

Javascript fails in chrome, works fine in IE

I have this JavaScript code for my SharePoint forms which does not work in other browsers but works in Internet Explorer. By using jQuery, when you initially open the task, the Rejected button will ...
0
votes
0answers
20 views

how to use javascript variable in XSL

I need to use variable which is maintained in javascript in xsl value select. any idea.? thanks
0
votes
1answer
28 views

Catch link clicked on PDF in Page Viewer

Im displaying a PDF document in a Page Viewer with custom Links in it. When you click a link, the page viewer will show the specific url in the page viewer. In some cases i have a sharepoint site in a ...
2
votes
2answers
108 views

Add list item returning empty result

Hi Sharepoint experts, I'm trying to add list item using jsom and succeeded but my code keeps adding empty list item first. function repeat(pattern, count) { if (count < 1) return ''; ...
0
votes
0answers
22 views

Web part not showing up in custom list

I'm trying to add HTML to a content editor web part. When I'm editing in the browser it shows up. When I go to the list page the web part is hidden. Does this have to do with the type of page a ...
0
votes
0answers
33 views

JSRender modify dispform.aspx button

I want to modify the button, the display text and the url link. How can I do that with JS-Link?
0
votes
1answer
30 views

Using results of executeQueryAsync with JSGRID

I understand I can retrieve the list data using context.load(data) and later firing context.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, ...
0
votes
0answers
32 views

User or Group field SharePoint 2013

I have a field in a list that is a group or user field with multiple user choice. Now i want to check if there is 3 users in that field, i want to check if the current logged in user is equal to the ...
1
vote
1answer
92 views

Sharepoint 2013 search box press “Enter” refresh page and not trigger JS event

I am migrating a site from SP2010 to SP2013. One of JS is working on SP2010 mode and not in SP2013 evaluation page. <input id="SearchBox" value="Search…" ...
0
votes
1answer
55 views

Create a library when an item on the list is created

I want to create a document library in o365, when an item is created on the list, but i cant get rid of the error: Unable to get property "apply" of undefined or null reference. Here is my code: ...
4
votes
3answers
322 views

Retrieve All list items with AngularJS and ClientContext

I would like to ask you if there is a possibility to use ClientContext with AngularJS? In this way I want to take all items, sort them, filter, make some modification and etc. Later maybe I will add ...
0
votes
0answers
14 views

Open item dialog box just in standard view

Is it possible to open only items on standard view in a dialog box? I have a second view where i want to open the item as new window. I worked with some javascript in the sharepoint designer, but it ...
0
votes
1answer
29 views

JS execute before data loading

I don't understand something. I have a js code in the $(document).ready() function. I got: function functionTest() { var elem = document.getElementById("MSOZoneCell_WebPartWPQ2"); if (elem ...
0
votes
1answer
30 views

Pull data / Replicate list data form Moss 2007 version site to SharePoint Online version site

We have one requirement where we need to pull data / Replicate list data form Moss 2007 version site to SharePoint Online version site. Please can any one suggest what are the approaches are ...
1
vote
1answer
64 views

Can I add JavaScript to Rich Text Note Field?

I have a Note Field with RichTextMode=FullHtml. We can Set the Value of this field to a string. string aString = string.Format("<a href={0}>{1}</a>", url, name); listItem["field"] = ...
0
votes
0answers
32 views

Aspx page that create filtered view based on argument

I use Sharepoint 2013. I have two lists generated by PS everyday. List A Client Col2 Col3 1 aaa bbb 2 ccc ddd And List B : Client Col1 Col2 1 Info1 Info11 2 ...
0
votes
0answers
17 views

Hide Elements on topnavigation

I have a metadata navigation dropdown in SP 2013, How can I hide a specific element with a specific title?
0
votes
2answers
73 views

Include js file in Page Layout, after jQuery file in Master Page

I'm trying to include a javascript file in my page layout file. I already have it inside the "PlaceHolderAdditionalPageHead" Content Placeholder, and it includes the file, however I need it to be ...
0
votes
1answer
59 views

Add new button to a column with “single line of text data type” in SharePoint

I am trying to create a "Add new" button to a column called "other Passengers" which has a "Single line of text data type". Such that I can add up "0 to n" numbers of passengers not in our LDAP i.e ...