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.
0
votes
1answer
14 views
CSOM Javascript - when executing query on multiple lists getting error - SharePoint 2010
Is here any SharePoint expert, who can help me find out, why I am getting error on lists queries?
I am trying to fetch data from multiple list asynchronously, but I am getting following error: The ...
0
votes
0answers
11 views
Error: The value of the property 'Menu_Unhover' is null or undefined, not a Function object
I would appreciate it if someone could help me out here.
I have a SharePoint global navigation bar that I'm using in SharePoint 2010. Every time I apply this script, I get the following error ...
1
vote
3answers
38 views
Use list or doclib?
I've got a list with a few thousands items.
(It is a list of users that have completed some course.)
Sometimes a user would like to have a course diploma printed. How could we achieve this?
...
1
vote
2answers
30 views
Populate User Properties in list form using JavaScript in Sharepoint 2013
I have a list where Administrator adds users and it contains information of the users(Employee Name, First Name, Last Name, Email etc). Employee Name is a people picker control and I need to populate ...
-1
votes
3answers
49 views
Disable Text Entry Into Rich Text Area Using Javascript
I'm trying to make specific rich text areas within a list edit form 'read only' based upon the overall status of the list item.
In order to do this I've tried to use the following:
...
0
votes
0answers
18 views
SP.SOD.executeFunc not calling function
Compa've added following script to JSLink property of a custom content type ( JSLink="~sitelayouts/ProjectFolder/script1.js" ):
window.alert("started");
SP.SOD.executeFunc("sp.js", ...
0
votes
1answer
43 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
42 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
55 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
19 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
101 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
34 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
14 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
34 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
37 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
30 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
29 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
16 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
33 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
55 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
43 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
32 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
48 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
36 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
39 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
33 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
25 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
32 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
39 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
2answers
44 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
73 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
45 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
25 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
144 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
33 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
37 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
34 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
42 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
15 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
0answers
16 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
83 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
14 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
18 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
17 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
19 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
39 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
40 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
130 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
13 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
23 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 ...