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

learn more… | top users | synonyms

12
votes
4answers
7k views

jQuery accordion for the Quick Launch menu?

Is it possible to turn the left side menu (I think it's the Quick Launch area) into a jQuery Accordion style menu in SharePoint 2010? The jQuery UI Accordion control uses DIV tags, so wasn't sure if ...
9
votes
1answer
480 views

Detecting browser and replacing web part?

I have a video I want to display on my SharePoint 2010 public facing site and at the moment I am using Silverlight, however, I would like to replace this with flash (youtube actually) if the users are ...
9
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?
8
votes
6answers
6k 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 ...
8
votes
1answer
541 views

Opening and closing AssetPortalBrowser.aspx in SharePoint modal popup

I am trying to open the "OOB" AssetPortalBrowser.aspx from a page within a SharePoint native modal popup. My aim is to get the selected filename back to the script. So far I was able to open the ...
7
votes
2answers
5k 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: ...
7
votes
5answers
2k views

Add jQuery in Sandbox mode (Office 365)

What would be the best approach in using/including jQuery in Office 365? Should I just use google CDN or is it possible to deploy the jQuery file to the server? Is there any good articles/resources ...
7
votes
4answers
1k 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 ...
7
votes
2answers
7k views

Adding ScriptLink for js file to my Visual Webpart causes error: “Cannot make a cache safe URL for…”

Full error: Cannot make a cache safe URL for "sprocketcomplete/layouts/sprocketcomplete/js/sprocketcomplete.js", file not found. Please verify that the file exists under the layouts ...
6
votes
7answers
5k 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 ...
6
votes
2answers
3k views

Phone-Gap Claims Authentication against SharePoint in Office365 fails, probably because of HTTPOnly flag in cookie

I am coding an application using Phone Gap to connect to a Sharepoint in Office365. I need to use the REST services in Sharepoint Office 365 to add items to a list, but before that I need to ...
5
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.
5
votes
4answers
712 views

Can jQuery intellisense also be installed / used in SharePoint Designer?

There are some references on how to install intellisense for jQuery in VS2008SP1, is it also possible for SharePoint Designer ?
5
votes
8answers
4k views

REST ListData service and anonymous authentication

I’ve been trying to use ListData.svc to get a REST feed from a list (actually a pages library) using something like: ...
5
votes
2answers
2k views

Sharepoint 2010 Webpart Ajax not working

I have a custom webpart within Sharepoint and am trying to apply some ajax to the webpart. The same code works within a .net web application but not within a sharepoint web part. The code from the ...
4
votes
5answers
773 views

How can I include jQuery and JavaScript code without straying from the site template?

I've added my JavaScript code by including the script links in the PlaceHolderAdditionalPageHead <asp:Content> tag. Including this has caused a yellow warning stating The current page has ...
4
votes
1answer
8k views

How to add jQuery to a single page?

I'm new to SharePoint. We have 2010. I want to use jQuery on a single page, not the entire site. What's the best way to do this? Can it be done without modifying the master page? Thanks!
4
votes
1answer
2k views

how to get users from SharePoint user profile db using jquery

I just want to know, is there any way to get a SharePoint user using javascript / jquery from default SharePoint 2010 user profile db? My requirement is to form an array of all SharePoint site users ...
4
votes
2answers
3k views

JQuery Accordion with SharePoint 2010 Custom List

I have a FAQ custom list in Sharepoint 2010 with two columns: Question (title column renamed) and Answer. I want to display the questions and answers from the sharepoint list in JQuery Accordion. ...
4
votes
3answers
2k views

Remove “Download a Copy” from Sub Menu

I am not allow to modify the core.js so that's not my option. I am allow to add a content editor. I just need to remove the "Download a Copy" from submenu. (this is just for a particular library). The ...
4
votes
2answers
4k views

How to display a popup message after an item is saved from a custom new form

I have a custome form i built from a list using SharePoint Designer. I would like a message to popup after the user has clicked the save button. I have played arounf with presaveaction but no luck. I ...
4
votes
6answers
4k views

Setting the value of the textfield in sharepoint list form 2010

I have a textfield in sharepoint list form and I want to set the value using jquery or javascript below is the tag: <asp:TextBox runat="server" id="ff47{$Pos}" text="{@Name}" ...
4
votes
1answer
1k views

Disable drag and drop events in SharePoint calendars

Is it possible to disable drag and drop event in SharePoint calendar? I looked all available properties in SPCalendar control but I didn't find any. Rendered Javascript has a parameter in factory ...
4
votes
1answer
2k views

How to find the Author Name using SP Client Context in SharePoint 2010?

I am trying to find the Author Name(created by) for a given Item Id using the SP Client context in SharePoint 2010. Below the code snippet var ctx = new SP.ClientContext.get_current(); ...
4
votes
1answer
73 views

SharePoint 2010 - Using REST to validate unique list item

I'm attempting to validate that a duplicate combination of staff (person/group field) + parent ID (lookup field) does not already exist in a list. Below you can see that I've added an ajax call to the ...
4
votes
2answers
49 views

Dynamic order Numbering based on the view in sharepoint library 2010?

We are trying to do in this library, is create a column that will provide the “order” number of the listed item, per view. So in one view there may be five items that show and they need to be ...
4
votes
1answer
575 views

How to call jquery method in different page event like pageload, ispostback, page refresh, onsubmit

In my master page I am calling the jquery method on pageload event. It will do some truncation operation in a SharePoint page. The problem is, if I have add new item to the SharePoint form and if I ...
4
votes
1answer
68 views

How can I provide option 'Select' in dropdown and lookup column of Sharepoint

I have a mandatory drop down column, I want a select option as the standard drop down I have a non-mandatory lookup column , which contains (None) as default value , How can that be changed to Select ...
4
votes
1answer
134 views

sharepoint 2010: javascript rest api not returning full decimal values, truncating to tenth

I have a list with a several columns that have number values to fourth decimal place, and I am using javascript com to get data via rest GET request and following simple callback function ...
4
votes
2answers
678 views

Having error when using jquery.corner.js with jquery-1.6.2.min.js

I'm trying to use jquery corner to get curvy quicklaunch in my sharepoint 2010. But i geting eeor "object doesn't support this property or method. Any ideas if this version are compatible. Thanks in ...
4
votes
2answers
609 views

Object #<Object> has no method 'showModalDialog'

Consider the following code: var options = { title: 'Create a new Post' autoSize: true, url: url } SP.UI.ModalDialog.showModalDialog(options); The code is executed from a ECB custom ...
3
votes
3answers
2k views

Is it possible to launch a modal that doesn't have the IsDlg property?

I need to open an external web page, say, http://google.com in a modal dialog. So if I were to do SP.UI.ModalDialog.showModalDialog(options); I get a modal window, however, it adds the IsDlg=1 ...
3
votes
5answers
14k views

How do I integrate jQuery into SharePoint 2010?

I've been doing lots of reading about all the nifty things that can be done using jQuery on a SharePoint site. I decided it was time to dive in! Unfortunately, I seem to have hit my first stumbling ...
3
votes
2answers
721 views

How to get Id of the selected listitem of dropdown field

I have a dropdown field which is a lookup containing values. I need to get the ID of the selected value whenever we change. I tried using the following. I didnt get any response $ ...
3
votes
2answers
2k views

How to show twitter feed using Jquery?

I want to show My Twitter Feed horizontally using Jquery in my web page. How can i do it?
3
votes
2answers
2k views

How to set Taxonomy Control using jQuery

I have a list with managed metadata column. In the new and edit form, I would like to set the value of that field using javascript. Is it possible to set the Taxonomy Control ...
3
votes
2answers
4k views

Path to jQuery file for SharePointWebControls:ScriptLink

I'm working in SharePoint 2010 Designer to create a custom page layout. I've added a SharePointWebControls:ScriptLink control but am not sure what the path is to my jQuery library. It's uploaded to ...
3
votes
4answers
2k views

Scrolling through list items one by one

I have an announcements list and instead of displaying all announcements at the same time, there may be quite a few, I want to scroll through them one by one. Outside of SharePoint there are quite a ...
3
votes
2answers
4k views

Calling Javascript within XSL after transformation in RSS Web Part

Hey all, got a tricky one for you. I have an RSS web part which uses a custom ItemStyle.xsl stylesheet to transform the results of the RSS feed into a UL list. I have some jQuery I want to inject ...
3
votes
4answers
4k views

jQuery and SharePoint 2010 - How can I tell is the page is in edit mode, using javascript?

I have some javascript in a CEWP that I want to execute only when the page is in display mode. I've used firebug to scour the page for some "msEditMode" type of variable or something I can rely on. ...
3
votes
1answer
670 views

Help with getting the value of a look up field

Currently, I am using an ajax request to access the list items. The fields that are not lookups come as expected but the lookup fields come across as an ID of the object that corresponds to its ...
3
votes
3answers
2k views

Prevent/override standard Modal Dialog close button(X) from closing

I want to validate custom modal dialog form and if its not ok, prevent form from closing. For this purpose, I attached to X-close-dialog-button. Problem is to prevent it's default behavior. function ...
3
votes
1answer
795 views

Hide upload Button on Asset Selector Dialog (AssetPortalBrowser.aspx)

I am looking to hide the "Upload" button in Asset Selector Dialog and I know Asset Selector Dialog uses Dialog.master in SharePoint. Is there a possibility to attach some custom jQuery/Javascript ...
3
votes
3answers
1k views

using jquery and search.asmx service search People in sharepoint 2010

Hi i use below code for Getting people Search. Using below code I am able to search but getting only user name and User my site url. I want all user profile Property.How I get all user Property using ...
3
votes
2answers
1k views

Include jQuery and plugin script in MOSS site master page

I was looking at potential ways to include jQuery and Paul Grenier's Accordeon Quick launch ...
3
votes
1answer
770 views

jQuery autocomplete dissapears on postback

I'm using the jQuery autocomplete and this works perfect. But when I do a postback, it looks like the page "forgets" that there is an autocomplete on the textbox. Important to know: this textbox is ...
3
votes
3answers
489 views

jquery projects and visual studio best practices?

Just curious how others are handling their jquery related solutions. It's obviously very easy to add a Content Editor web part with a content link to a source file. That file could have your ...
3
votes
1answer
187 views

How can I get rid of the columns header when the style 'Boxed' was selected?

I created a new list view with style = 'Boxed' in SP2013. The problem is that this view is showing the columns header in the top when there's no need to do it. So, how can I remove or hide it? I tried ...
3
votes
1answer
122 views

Activating programmatically custom script on page load

I have small problem. The thing is I need to have a method on page load that will execute one script only if web.allProperties has one property, but I dont know how to call that script? So this is ...
3
votes
4answers
889 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 ...