jquery

Is there a way to highlight the target of a bookmark? (www.site.com/page.htm#bookmark) ?

I want to link to bookmark on a page (mysite.com/mypage.htm#bookmark) AND visually highlight the item that was bookmarked (maybe having a red border). Naturally, there would be multiple items bookmarked. So that if someone clicked on #bookmark2 then that other area would be highlighted). I can see how to do that with .asp or .aspx b...

jQuery "after" selector question

I can't seem to figure out a good way to do this, but it seems like it should be simple. I have an element that I want to append a div to. Then I have another element that I want to clone and shove into that intermediate div. Here's what I was hoping to do: $("#somediv > ul").after("<div id='xxx'></div>").append($("#someotherdiv").cl...

asp.net mvc, ajax and progressive enhancement

I am looking for a reliable technique for adding Ajax to a working ASP.NET MVC application. I want to use jQuery, and understand how to use the ajax functionality from jQuery. What I need to know is how I should write my controller so that I can run the site without javascript, but at the same time make ajax calls possible without the ne...

jQuery and Java applets

I'm working on a project where we're using a Java applet for part of the UI (a map, specifically), but building the rest of the UI around the applet in HTML/JavaScript, communicating with the applet through LiveConnect/NPAPI. A little bizarre, I know, but let's presume that setup is not under discussion. I started out planning on using j...

Looking for in-depth comparison of selectors and events for jQuery and Prototype

A few of the third-party applications we use are written in Prototype, and I'm really having trouble with selectors and events. I know how to accomplish it all in jQuery quickly, but I'm not about to load both libraries. Can you provide a few links that do a top-down comparison of selectors and/or events for jQuery and Prototype, so I ca...

AJAX Dropdowns (HTML Select) in Firefox with JQuery

Help! I am using JQuery to make an AJAX call to fill in a drop-down dynamically given the user's previous input (from another drop-down, that is filled server-side). In all other browsers aside from Firefox (IE6/7, Opera, Safari), my append call actually appends the information below my existing option - "Select An ". But in Firefox, it ...

Javascript array with a mix of literals and arrays

I can create the following and reference it using area[0].states[0] area[0].cities[0] var area = [ { "State" : "Texas", "Cities" : ['Austin','Dallas','San Antonio'] }, { "State" :"Arkansas", "Cities" : ['Little Rock','Texarkana','Hot Springs'] } ] ; How...

jQuery ajax $.post successfull ?

I'm trying to figure the result of this call if it was successful or not. The successFunction doesn't get called so i'm assuming it was not. How do i know what went wrong? xmlRequest = $.post("/url/file/", { 'id' : object.id }, successFunction, 'json'); Do i use the xmlRequest object? ...

jQuery: Remove all classes that begin with a certain string

I have a div with id="a" that may have any number of classes attached to it, from several groups. Each group has a specific prefix. In the javascript, I don't know which class from the group is on the div. I want to be able to clear all classes with a given prefix and then add a new one. If I want to remove all of the classes that begin ...

How do you get JavaScript/jQuery Intellisense Working in VS 2008?

I thought JQuery Intellisense was supposed to be improved with SP1. I even downloaded an annotated version of jquery 1.2.6, but intellisense will not work in a separate jscript file. I have the jquery library referenced first on my web page in the tag. Am I doing anything wrong? ...

How do I stop an effect in jQuery

I have a page that uses $(id).show("highlight", {}, 2000); to highlight an element when I start a ajax request, that might fail so that I want to use something like $(id).show("highlight", {color: "#FF0000"}, 2000); in the error handler. The problem is that if the first highlight haven't finished, the second is placed in a queue a...

What are the best strategies for using multiple AJAX libraries?

What experience can you share about using multiple AJAX libraries? There are useful features in Prototype, some in jQuery, the Yahoo library, etc. Is it possible to include all libraries and use what you want from each, do they generally all play nicely together with name spaces, etc. For the sake of speed is there a practical limit to ...

access $(this) with href="javascript:..." in JQuery

I am using JQuery. I call a javascript function with next html: <li><span><a href="javascript:uncheckEl('tagVO-$id')">$tagname</a></span></li> I would like to remove the li element and i thought this would be easy with the $(this) object. This is my javascript function: function uncheckEl(id) { $("#"+id+"").attr("checked",""); ...

Which jQuery plugin should be used to fix the IE6 PNG transparency issue?

Is there an IE6/PNG fix that is officially developed by the jQuery team? If not which of the available plugins should I use? ...

jQuery book recommendation

Are there any good books for jQuery out there? The target audience is someone who is just getting started with javascript and related web client concepts, but finds it fairly easy to pick up as they go along. ...

MVC.net JQuery Validation

After trying to avoid JavaScript for years, Iv started using JQuery for validation in MVC asp.net, as there does not seem to be an official way of doing validation, Iv been surprised how good JQuery is. Firstly is there a way to get intellisense working for JQuery and its validation plugin, so that i don have to learn the api? Secondl...

Figure out div that is visible out of four divs.

I need to figure out what div is visible out of four possible divs using jQuery. Only one of those div's will be visible at any given time. This is what I have that works so far: $("#FeatureImage1:visible, #FeatureImage2:visible, #FeatureImage3:visible, #FeatureImage4:visible").attr("id"); Is there a way to refactor this? Is there ...

using load() to load page that also uses jQuery

I'm trying to load a page that is basically an edit form inside a dialog (ui.dialog). I can load this page fine from an external (I'm using asp.net) page. The problem is that inside of my "popup" form, I need to $(function() {my function here}); syntax to do some stuff when the page loads, along with registering some .fn extensions for...

jquery: JFrame plugin fails in IE 7

hey all, I'm using the JFrame plugin with jquery 1.2.6. It works fine in FF3, however it won't display the requested pages in IE 7 the jquery library and the JFrame plugin are called in the included header.cfm page code is here (note: ignore the ColdFusion calls, I don't think they're generating the problem) http://cfm.pastebin.com/...

Any downsides to using ASP.Net AJAX and JQuery together

We are planning to use the JQuery library to augment our client side JavaScript needs. Are there any major issues in trying to use both ASP.Net AJAX and JQuery? Both libraries seem to use $ for special purposes. Are there any conflicts that we need to be aware of? We also use Telerik controls that use ASP.Net AJAX. TIA ...