An open-source, cross-platform JavaScript library, now endorsed by Microsoft

learn more… | top users | synonyms

2
votes
1answer
5k views

Dropdown lookupcoloumn in sharepoint list form (newform.aspx)2010

I have a dropdown lookupfield in newform.aspx sharepoint form...unlike choice dropdown the lookupdropdown is 'input' field and not 'select'.. so i raise an onchange event using jquery ...
6
votes
7answers
6k views

What is the proper way to add jQuery to a MasterPage?

Currently I am using this method in the header: <script src="/_layouts/MNCAssets/scripts/jquery-1.5.1.min.js"></script> But for some reason, my webparts that use jQuery don't appear to ...
0
votes
1answer
1k views

Unable to reference jQuery inside my master page

I am working with SharePoint server 2013, and inside my Style Library folder I have added the Jquery file. then under the custmJSUrl section inside my seatle.master page, I added a reference to the ...
2
votes
1answer
5k views

jQuery & SP2010 : Upload document to library using jQuery?

I built a custom form that saves the data to multiple lists with on click; it works pretty well for its intended use (keeping the data related). Thing is I am totally new at jQuery and SPServices, but ...
3
votes
1answer
10k views

Where to put javascript files, problem with _layouts

I'd like to add jQuery and SPServices. I added the following code: <SharePoint:ScriptLink runat="server" Name="/Style%20Library/Scripts/jquery-1.7.2.min.js" ...
2
votes
2answers
3k views

Scroll position in Sharepoint 2010?

Do you know a way to find out a scroll position in JS or jQuery on a page in Sharepoint 2010? I have a web part that is very big (high) so scroll on the page appears. But I cannot determine the scroll ...
7
votes
4answers
2k views

How to access a Web application/Farm level property bag via jQuery/Javascript/ClientContext

It it possible to access the Web application/Farm level property bag using jQuery/Javscript/ClientContext? If not, then what are the possible alternatives to access Web Application Farm level property ...
1
vote
1answer
2k views

Using REST call to retrieve SharePoint list items as an array of JSON objects

I found this great tutorial to use REST calls to retrieve SharePoint list items as an array of JSON objects posted by Mark.Rackley (Mark Rackley.). It is working, but I would like to add a new ...
8
votes
2answers
10k views

Adding jQuery to master page

I am trying to customize a Sharepoint 2013 team site. I created a copy of seattle.master and set it as default master page via context menu. I added my custom CSS within head tages like so: ...
0
votes
0answers
48 views

JQuery unconsistant behavior on sharepint display form depending on how i open the page

have a sharepoint calendar whose display form I have added a jquery script to using the CEWP. When I click on an item on the calendar for display I get different behaviors if I click the item within ...
0
votes
2answers
10k views

How to add jQuery script to a custom visual webpart?

Similar to some previous questions, I'm trying to use jQuery in a visual web part but I keep getting that jQuery is undefined. I've added the jQuery script to SiteAssets as well as a script folder ...
0
votes
2answers
2k views

how to add script to page

I am trying to add this script (Marc Anderson's blog) to AllItems.aspx. Please guide me where it needs to go and what needs to be done to make it work. Thank you. <script language="javascript" ...
9
votes
6answers
7k views

Risk of conflict between jQuery document ready and _spBodyOnLoadFunctionNames?

I recently read in the jQuery documentation that: The .ready() method is generally incompatible with the body onload attribute. If load must be used, either do not use .ready() or use jQuery's ...
3
votes
4answers
980 views

How to make Grouped View work with the $(document).ready event?

I have a list that is grouped by date: Normally the list is collapsed, when I open one date, items under it are shown, like: [+] 2010-01-01 [+] 2010-01-02 [-] 2010-01-03 item1 item2 ... I ...
6
votes
1answer
2k views

Fetch list of sites in site collection into jQuery

Is there a way to get the list of sites in the current site collection into jQuery as an array or other data structure? Thanks.
3
votes
2answers
806 views

How to get ClientPeoplePicker value using javascript

can anyone please tell me, How to get ClientPeoplePicker value using javascript.?
2
votes
2answers
544 views

Get List Item ID from NewForm.aspx

SharePoint 2010 Enterprise Version I have a Custom List and i have created a copy of NewForm.aspx and saved it as CustomNewForm.aspx. When I save the item i want to get the saved items ID and ...
2
votes
3answers
2k views

How to Create Piechart in sharepoint 2010 Based on the List item Values? Only using Javascript/jquery

I have a CustomList in Sharepoint 2010 as Mentioned Below.have two columns Team and Values of Team List A Team ValuesofTeam A 9 A 6 B 7 C ...
10
votes
3answers
3k views

Site Assets vs. Style Library

I usually store my JavaScript/jQuery files in the Site Assets library, but I see on forums that others are using the Style Library. What are the respective benefits of each?
3
votes
4answers
6k views

Loading jQuery in the Correct order

I wish to use a jQuery plugin in SharePoint. Currentley I have jQuery added to each page via a custom master page. <script src="/Style Library/js/jquery-1.6.4.min.js" ...
2
votes
2answers
206 views

How can I ScrollTop in SharePoint 2010 with JQuery

I try to scroll the SharePoint page after the page loaded. Using the following code: $(document).ready(function(){ $('html, body').animate({scrollTop: $('#WebPartWPQ1').offset().top}, 1000); }); ...
2
votes
1answer
785 views

Jquery is not working on IE10

The below script works properly on the firefox and hides the Page Rating & Last modified divs however it is not working on IE-10, am I missing anything? <script type="text/javascript" ...
2
votes
1answer
375 views

How to use aop.js with jQuery on Grouped Lists?

This question came from following up on an answer given here. I want to use jQuery to work css modifications on a list that has grouping. I discovered a jQuery script called aop.js that will allow ...
2
votes
3answers
488 views

How to change the href for a hyperlink using jQuery:Error href is null

I'm trying to get to the default home link(href) on my sharepoint site using jquery but i keep getting href is undefined. I would like to change it to another URL I have tried alert($(".static ...
2
votes
6answers
5k views

How to update multiple ListItems with a “Where Clause” using SPServices?

I've searched the jQuery SPServices code examples and MSDN references for an simple example how to update several ListItems using a Where-Clause. Code for updating a single ListItem with ID = 500, ...
1
vote
2answers
75 views

Can't get jquery to work

I can get this block of jquery to work on basic HTML in Codepen However, it doesn't seem to be working when I try this on a SharePoint 2013 Publishing site. I embedded the CSS and JQ in my master ...
1
vote
1answer
147 views

Disable drag and drop option for multiple file uploader

These are the screenshots of multiple file uploader from the same SharePoint 2010 site. Some users are seeing the first and some are seeing the second one. Is it possible to disable the second ...
1
vote
2answers
2k views

Retrieving a lookup Value from a List using jquery and REST

I would like to get the lookup Value from a List item depending on it's Title. My List is set up similar to the following example: ColumnA : a | b | c lookupB : 1 | 1 | 2 The jquery: function ...
1
vote
3answers
3k views

jquery and javascript : can i get the last ID from document library?

Is there a way to get the last ID from a Document Library with javascript/jquery?
1
vote
3answers
234 views

Any good books on SharePoint interact with JQuery?

Any good books on SharePoint that interact with JQuery?
5
votes
3answers
519 views

Updating a single list item based on relative URL

Is it possible, using SPServices, to update a specific list item when all I have is the file path? For example, I have a file located at /site/library/folder/file.txt and I want to update a single ...
2
votes
2answers
265 views

Format part of the column value in a ListView Web Part

I have a list containing a few items, some of which are marked as compliant. So I have a column for marking it as compliant, and another calculated column, where I have the calculated value as Title ...
2
votes
1answer
871 views

ECMA/js CSOM retrieving items from multiple lists with async processing? how?

I am struggling with javascript and learning callbacks, and applying this to SharePoint 2010 specific js/jquery methods of getting and savings values from lists. So I am recently getting into the ...
2
votes
3answers
703 views

Can a web part prevent master page jQuery from executing properly?

I'm including jQuery and a custom .js file into the master page of my SharePoint 2010 site. In the $(document).ready() function, I'm setting a live event handler on an element in the header of the ...
1
vote
1answer
90 views

Load list item to dispaly get_fieldValues?

I'm using SharePoint online and have a SharePoint-hosted app. I have a page with a question form that send data in to Sharepoint using listItem.set_item('GEN_1_blabla', $('#GEN_1').val()); Now in ...
1
vote
3answers
2k views

How to get the Login Name of user from people picker control using jquery?

I want to get the log-in name of user from people picker control using jquery. I have a code which displays the display name of the user but I am not able to get the login name. Code is as follows: ...
1
vote
2answers
99 views

How to hide particular SharePoint post use checkbox?

How can I hide my particular post in Sharpoint blogs, if I use checkbox field in post list by using javascript or jquery ? please if some have an idea ,please help me to resolve it. will great ...
1
vote
2answers
243 views

Re-executing JQuery Function on List Manipulation

I have the following JQuery code entered into a content editor web part which does some conditional formatting on the table cell of a list. The trouble with this is that it executes fine on document ...
1
vote
1answer
2k views

sharepoint 2010 upload file to document library using jquery

Hi all using jquery i want to upload file to solution gallery. so is that possible to upload file in solution gallery using jquery. how? another thing is it possible to upload file in document ...
1
vote
1answer
483 views

How can you add a script reference to a page from a custom webpart?

I'm developing a custom webpart and I'd like to leverage jQuery for some of my client side functionality. I found a few articles that lay out the following technique for adding a script reference to ...
0
votes
2answers
44 views

SP2013 Trigger People Picker Validation

This question is related to an earlier question I posted, but did not get an answer on, so I am attempting a different approach. To summarize: My goal is to set a people picker value to the current ...
0
votes
1answer
95 views

getEnumerator causing collection has not been initialized error inside of async call inside of a loop in a script editor web part

This is an issue I've been struggling with - What I am doing is using a script editor web part and when a user clicks the button, I check to see if a list exists inside of a loop (in this example, it ...
0
votes
2answers
50 views

Inconsistent ExecuteOrDelayUntilScriptLoaded(function () behaviour in my pages

My users are reporting some strange behaviour with some pages created with the same custom layout pages and custom master page in a sp2013 publishing site Essentially, I have function referenced in ...
0
votes
0answers
260 views

Quick launch Collapse / Expand sharepoint 2013

I need to custom Quick launch accordion menu, here is my code (from magali post : How to make an accordion menu for a subsite in SharePoint 2013): function accordionMe(selector, initalOpeningClass) { ...
0
votes
2answers
211 views

How to upload jQuery library into web parts without master page

I am in the process of migrating from SP2010 to SP2013. In SP2010 the Scriptlink feature was used to upload all of the jQuery libraries from the master page. Currently I want to test some web parts in ...
0
votes
3answers
495 views

Using REST call and Datatables plugin to retrieve SharePoint Date field

I'm having an issue with a REST call that's giving me some headaches. This is the code I'm using: function LoadAIP(state) { var call = $.ajax({ url: "https://xxxx/xxxx/_vti_bin/listdata.svc/AIPList? ...
0
votes
2answers
193 views

Access DVWP z:row with Javascript [duplicate]

I need to loop through the z:row of a Data View Web Part on the client using JavaScript to push to an array and then use the JavaScript CSOM to create a new list item in an existing list. var ...
0
votes
2answers
387 views

Problem with jQuery Function for Expanding Grouped Lists

In my portal, I have a custom list that is using grouping. Now, I want to automatically expand all the groups, so I have mustered this javascript/jQuery function. I use a delaying function to load ...
0
votes
2answers
542 views

How to send dynamic parameters in url of sharepoint modal dialog options

I have the following code for the javascript modal popup. function ShowSearchBox() { var options = { title: "Search Here", width: 760, height: 380, url: ...
0
votes
2answers
812 views

Remove Duplicates in DVWP using JQuery

I am using a linked datasource in MOSS to create a dynamic table of contents page based on a metadata associated with files in a document library. The library contains multilookup columns for the ...