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

learn more… | top users | synonyms

0
votes
2answers
3k views

How can I retrieve list items from a subfolder using spservices?

I have a document library with subfolders containing images. I'd like to traverse the subfolders and grab the URLs of those images so that I can display them on my little js web app I'm whipping up. ...
0
votes
4answers
509 views

How to know if JS file has been registered in a visual web part?

Let me explain the situation: I have a Sharepoint 2010 solution in VS that contains: Some Model classes A LINQ-to-SQL data context A WCF REST service 3 Visual web parts The web parts calls some ...
3
votes
1answer
9k 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" ...
0
votes
1answer
1k views

Custom WCF service in Sharepoint 2010 returns 401 Unauthorized

I've followed this guide to create and deploy a custom WCF service in Sharepoint 2010 to be consumed in a Visual Web Part using jQuery. The WCF service's method does several things: Make use of ...
0
votes
1answer
541 views

Soap, Jquery, Ajax and an Error

Ok, here is what I am trying to do. I have a list on another site. I have successfully connected to the site and pulled in the list as a dropdown using soap, ajax and jquery. However, once I try ...
0
votes
3answers
2k views

Override Top Navigation Hover Effect

I would like to add some JQUERY effects to my top nav when a user hover overs the top link..specifically a delay and slideDown with easing effect. Is there a way to simply override the existing code? ...
2
votes
1answer
425 views

How do I trigger off of the ribbonbar being shown/hidden?

When the ribbon bar is visible (i.e., not in Browse mode), I want certain things to happen on my page (mostly involving changing styles of some items). How do I determine if it's visible or not or ...
0
votes
1answer
2k views

Using jQuery add cascading dropdown to newform.aspx page of list

How can I add cascading dropdown to newform.aspx page of list using jQuery. I tried SPServices from codeplex but it's not working. Can anybody please guide me. Thanks
0
votes
2answers
785 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 ...
0
votes
4answers
2k views

JQuery in a Visual WebPart won't load on the page with the webpart

Hey I have a bunch of JavaScript/Jquery code that works really well when I use a Content-Editor webpart, but does not execute when I add the same code to the VisualWebPart mark up. I am referencing ...
1
vote
1answer
2k views

How can I pass a Query String variable into the CAML of a jQuery script?

I'm using Marc's SPServices jQuery library - the SPFilterDropDown script - to filter the items in a Lookup multi-select field on a New Item DVWP. It works fine if I stick some static text in there - ...
0
votes
2answers
2k views

jQuery addclass and remove class not updating properly

I have a SharePoint ASPMenu in a MasterPage, I;m trying to change the selected style class using jQuery. Basically when user click a menu item it will cause postback so that the page will be directed ...
1
vote
1answer
753 views

Opening a webpart from a separate page in modal form

I am an IT schoolboy who is on an 8 month apprenticeship. I have been charged with creating a little sharepoint site for our tiny group in the company I am working at. I have site collection (is that ...
0
votes
1answer
767 views

On a SharePoint list view with filtering, I want to apply jQuery to the filter list, which isn't built until the user clicks the menu

This project is in MOSS, using jQuery 1.6.1. The basics of what I need: When the user filters on a date field, the value of the filter option needs to be "yyyy-M-d" while the text is "M/d/yyyy." ...
0
votes
1answer
2k views

Retrieving and displaying custom list column names (which have spaces in them)

I have been to Jan Tiernans blog, and figured out how to grab column names using Soap and jquery/jscript. I can't figure out how to grab custom columns with special chars though. I have read about ...
1
vote
2answers
645 views

What are some best practices when using jquery for Autocomplete with ashx?

After doing some research I saw some examples using jquery's .ajax function and webmethods for autocomplete with ashx in Sharepoint. ...
0
votes
3answers
664 views

Jquery/Javascript hyperlink Mouse over hyperlink

I have a hyperlink and whenever I do a mouse over it should show other www.abc.com page. Eg: <a href="www.xyz.com">Title</a>, on mouse over it should show www.abc.com page. ' I ...
8
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 ...
0
votes
1answer
149 views

Looking to add a cewp to bottom of welcome page that shows pictures from library - jquery

I have been asked to set up a SP site at work. I have site collection priv. with no access to SP designer. I have looked around on the internets for a way to make a cewp that would display 4 or 5 ...
0
votes
2answers
4k views

SharePoint Cross Domain Request with jQuery

I've been going around in circles for a couple hours now to no avail. I had thought that what I wanted to do was not possible but some threads that I was reading on SO were saying otherwise so I ...
1
vote
2answers
557 views

Referencing jQuery from Masterpage and WebPart

I am referencing jQUery from my MasterPage as follows: <SharePointWebControls:ScriptLink runat="server" Name="/_LAYOUTS/myprojIntranet/js/jquery-1.7.1.min.js" Localizable="false"/> And in my ...
1
vote
2answers
310 views

Content Rotator to display latest posts only

I am looking at AnythingSlider and a custom content slider and was wondering if these tools allow me to display most recent content only. For a news rotator I only want to display top five news from a ...
0
votes
1answer
2k views

How can I display checkbox or radio button choices in a Choice field vertically?

I have a list with SharePoint 2007 with a Choice column that I'd like the choices to be displayed vertically (every 2 or 3) instead of horizontally. Is there some JavaScript/jQuery I can utilize to ...
0
votes
1answer
9k views

Setting the value of a lookupfield(sharepoint dropdown formfield) in sharepoint 2010 list forms

How can i set the value of sharepoint form field dropdown box(lookupfield) in sharepoint list form when the form gets saved (using jquery) note: the lookupfield (dropdown formfield renders as input if ...
4
votes
6answers
5k 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}" ...
2
votes
1answer
4k 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 ...
1
vote
2answers
4k views

setting current date time in sharepoint form field (newform.aspx) sharepoint 2010

I am working on customizing the sharepoint list form (newform.aspx). So soon as the user opens the new form I want the Odate coloumn (date and time) to be filled automatically with the current date ...
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 ...
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" ...
1
vote
1answer
2k views

Refresh web part without refreshing page [duplicate]

Possible Duplicate: Refreshing custom developed web part I have a custom web part that displays items from a list. A user can select an item and edit the metadata on it. I want to refresh ...
3
votes
1answer
123 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 ...
0
votes
1answer
963 views

sharepoint 2010 search.asmx query Problem

I use below query for people search in sharepoint 2010 using jquery SELECT PREFERREDNAME,FirstName,LastName,JobTitle,Department,Email,WorkEmail,WorkPhone,Skills,PictureUrl,Path,Rank,MobilePhone FROM ...
0
votes
1answer
255 views

Toggling listview web part content source

I'm trying to construct the following user experience. There's a set of links, let's say are in the content editor web part, which control which document library is display below. How would you go ...
2
votes
3answers
17k views

How to get TD cell values using jquery from a Data Webpart

I would like to get the text from the first and second TD which has the class user and id <tr class="rowid"> <td class="user">A</td> <td class="id">B</td> ...
1
vote
2answers
973 views

sharepoint document library view to show actual images uploaded

Scenario : Sharepoint 2010 document library. Users click on 'add new document' and upload a picture (They always upload pictures or images only). The default view shows the 'Type' and the filename. ...
0
votes
1answer
1k views

How to load div like iframe with a url with parameters(Loading external data to a cell)

I would like to show a status in field but the result data is from an external link which means another sharepoint list. I'm using something similar below but not sure if this is the best way to do ...
3
votes
1answer
289 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 ...
2
votes
0answers
5k views

How to use SPServices jquery to add new item

I have a list and I would like to have a link on each item (dynamic) that I can click to insert some data to another list. What I'm after is to get some data when a user clicks an item. (Kind of to ...
0
votes
2answers
436 views

Add Timespan to DateTime Column via SPServices (jquery)

I want to increase and decrease a DateTime column from a specific list with jquery and SPServices. Normaly I should first receive the original datatime and then add the timespan and after that save ...
3
votes
3answers
2k 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 ...
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 ...
0
votes
1answer
239 views

Count Words For the SharePoint List Item

I need to count the words of SharePoint List Item. I have used code, but it shows me only 0 words though I type several words. When I used an alert for holdtextvalue it shows me blank value. Can ...
4
votes
1answer
595 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 ...
2
votes
1answer
181 views

Count Number of Words existed in Word Document

Hello Group members, I have a document,Where When I upload the document in document library or in List then I need to count the total number of words existed in Word Document ...
1
vote
0answers
2k views

Calling a WebMethod defined in a Publishing Page Layout

I'm trying to define a WebMethod in one of my Publishing page layouts. This WebMethod is intended to be called when a user takes a specific action in an Editor Part in a Visual Web Part, however, ...
1
vote
1answer
556 views

Add numbering to a standard list view

We're displaying a SharePoint 2010 list using a Standard View created via the browser. The items are shown in a table and the users would like a number shown for each row. The numbers column would be ...
1
vote
3answers
741 views

Open DispForm.aspx on selected list item in a SharePoint list

Is it possible in a SharePoint list to change the function behind the event 'select item' to open the modal dialog with DispForm.aspx? So in a list, when you click on a item -> the row gets darkblue, ...
1
vote
1answer
508 views

How to handle the ecb menu CSS?

I have hidden the ECB menu from the task/DocLib lists, and I am using jquery to truncate the title field into 50 char and remaining will be displayed in the jquery popup. Even though I have removed ...
2
votes
3answers
530 views

What is the best method to retrieve the value of “Sum = ####” from List View using jQuery?

Here's a little challenge for you SharePoint and jQuery experts. I have an out of the box list view in MOSS where I total one of the columns as a "Sum" so that at the very top of my list I have "Sum = ...
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 ...