Framework for working with JavaScript.
12
votes
4answers
5k 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
375 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 ...
8
votes
6answers
3k 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 ...
7
votes
4answers
926 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 ...
6
votes
2answers
1k 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
4answers
786 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 ...
5
votes
1answer
1k 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
598 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
2answers
5k 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
...
5
votes
6answers
3k 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
3answers
2k 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?
4
votes
4answers
2k 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 ...
4
votes
1answer
1k 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
1k 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
1k 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
1answer
1k 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
480 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
2answers
668 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
2answers
535 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 ...
3
votes
5answers
649 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 ...
3
votes
3answers
1k 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
10k 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
1k 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
3k 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
1k 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
1answer
523 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
1answer
395 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
377 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
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
108 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
3answers
907 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
1answer
838 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 ...
3
votes
4answers
539 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 ...
3
votes
1answer
207 views
Compressing or stop rendering of JS files from SharePoint on mobile devices
I have costumer who is complaining about massive data traffic on their mobile devices when they enter their website from their cellphones or tablets.
When we made the site in the beginning, we made ...
3
votes
2answers
556 views
PreSaveAction on edit mode
I'm working on a custom list.
Two DWP webparts the first one insert data(save button only but some fields are pre filled) and the other one shows the data(This has got edit and delete enabled)
I'm of ...
3
votes
3answers
3k views
Posting JSON to a REST WCF endpoint in Sharepoint using cksdev
http://ranaictiu-technicalblog.blogspot.com/2011/09/sharepoint-2010-access-wcf-service-with.html?showComment=1323864446083#c4340503928745769810 has an example of using JQuery Ajax to GET or POST to ...
2
votes
3answers
553 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 ...
2
votes
3answers
3k views
How do I get the username from a PeoplePicker control using jQuery?
I have a form where I used a People Picker control. I would like to get the username entered into a people picker control using jQuery.
Please suggest?
2
votes
4answers
799 views
Possible to make a self contained web part that uses jQuery?
Basically I would like to create a WebPart that uses jQuery but I don't want to have to add jQuery to my masterpages (or anywhere else) manually. I would like to have one WSP that I could email to ...
2
votes
1answer
4k 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
4answers
2k views
How can I hide allitems.aspx from curious people?
I have a custom ASPX page in WSS 3.0 which I use to capture email addresses. These emails are stored in a list called Notificiations using nothing but jQuery and SPServices. Because I'm using jQuery ...
2
votes
4answers
290 views
Why does jquery's document.ready not fire?
In my master page, I have attached jQuery along with my own custom.js. I use the javascript in that file to run fixes on my pages such as style adjustments.
Now, when I run simple functions on my ...
2
votes
1answer
243 views
Using an ID to remove a class using jQuery
I'm trying to remove the classstatic selected menu-item
using
$("#slink").removeClass("static selected menu-item");
Thanks guys.I'm sure the Jquery script is running as i have other stuff there.
...
2
votes
2answers
1k views
Get a pop up box to show the user details?
I have a list called Contact, where I have three fields ,
1. Name
2. Mobile
3. Email.
Now I created a Content Editor, Where I will display all the names of the employees. Now how can I create a pop ...
2
votes
1answer
4k 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!
2
votes
1answer
201 views
How can I get specific SharePoint site GUID using javascript/jquery
For example:
I have a site under this url: http://intranet.contoso.com/news
When I open it i would like to read it's GUID for future use in my custom AssetPortalBrowser.aspx url picker.
Thanks!
2
votes
1answer
2k 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 ...
2
votes
2answers
53 views
Get Modal Dialog Close button
I have override new item form for list, opening myPage.aspx where this javascript is in the "PlaceHolderAdditionalPageHead":
function fGetCloseBtn() {
var closeButton = ...
2
votes
3answers
205 views
Detect Modal Dialog Close with JQuery
In my application, I am trying to hide scrollbars in the parent window when a modal dialog is opened...
I've added this to my Master Page:
$(function(){
if(window.frameElement != null)
{
...
2
votes
2answers
587 views
Can't get a basic Modal to work on 2010
I'm migrating a project from SP2007 to SP2010. I want to get a modal popup to work, to open up the New Item window of a list from an aspx page. I can't get the modal to work in the most basic example, ...

