jquery

Change highlight color

jQuery's highlight method will highlight any div with a yellow background. How do I specify what color to use instead of yellow for highlight? ...

Issue with Google Gears and jQuery creating a managedStore

Hello! I'm trying to create a managedStore to cache all the js, img, swf and css from a web app I'm developing. Here is the code: $(document).ready(function() { var manifestName = 'cache_manifest.json'; var storeName = 'cache'; var localServer; var localStore; if (window.google && google.gears) { localReque...

properly sizing an iframe that holds images of unknown dimensions

Hi: I have a C# webbrowser that holds an html page that has several iframes. Each iframe holds an arbitrary html file, often with images. The img tags often don't have any width or height attributes (ie, it's often just <img src="someimage.jpg">). I've read about how to size iframes based on their content, and have gotten it to work ...

makeArray function in Sizzle (jQuery 1.3)

I've been having a lot of problems with jQuery 1.3.2 on only one of my sites. It's a Joomla site, so Mootools is included on the page as well (and it's too difficult to remove Mootools). Basically the problem is that calling the basic jQuery selector with one selector (eg: "a", ".myClass", not "html a", ".myClass td"), will only return t...

Jquery Ajax not failing after unauthorized post

i have a jquery .ajax post type Json and an MVC controller with an [Authorize] attribute. on the return Jquery carries out "success" if user is authorized, but never carries out the "fail". how to handle when user is not authorized? $.ajax({ type: "POST", url: "/index", dataType: "json", ...

How do I get the exception message from a failed jQuery request?

If I use jQuery ajax with an error handler and the ASP.NET MVC action that I'm invoking throws an exception, I'd like to be able to display the message in the exception to the user. Right now I'm using: $.ajax( { ... error: function(request,status,error) { var exp = new RegExp('<title>(.*)<\/title>','i'); if (e...

What are the pros and cons of these client options in C#? winforms, WPF, Jquery, ASP.NET AJAX, and Silverlight

just wanted to clarify the options for client presentation : 1) winforms - for windows client - older technology 2) wpf - for windows client - newer technology, uses xaml 3) jquery - for web client - uses javascript 4) asp.net ajax - for web client - older technology 5) silverlight - for web client - new...

html preloader

Hi, Are there any ways to do html preloader with jquery? Sorry, I can't find it. I mean show a small size image (loading image) when html is loading. Thanks for answers ...

Adding an anchor to generated URLs

Hi I have tried finding a simialr example and using that to answer my problem, but I can't seem to get it to work, so apologies if this sounds similar to other problems. Basically, I am using Terminal Four's Site Manager CMS system to build my websites. This tool allows you to generate navigation elements to use through out your site. ...

Add attributes to textbox using jquery

I am using asp.net MVC. I have control like <%= Html.TextBox("username") %> I want lost focus event to that control. So code like $(document).ready(function() { $("#username").Attributes.Add("onblur", "alert('losing focus');"); }) but it is not working, Ultimate goal is to check password & confirm password matches ...

jquery plugin not loading -- script failing

I've tried this with a couple of different plugins, so I'm sure it's not them. I also have one running on my personal machine and it works just fine. I'm loading jquery and then loading the plugin second. Then the next line of code is calling the plugin via: $("a[rel]").colorbox(...) or $("a[rel]").overlay(...) and I'm getting "...

How do I display only two decimals in a textbox and still read 5 decimals?

Hi, I am using an ASP.NET GridView control with a TemplateColumn which has a TextBox in the ItemTemplate. I am binding the Text of the TextBox with the values from database. The database holds these values with five decimal points, and for the interface I would like to display only two decimals. The user can make changes to this grid....

JQuery Autocomplete verify selected value

We are using the autocomplete jquery plugin written by Jörn Zaefferer, and are trying to verify a valid option is entered. The plugin has result() event which fires when a selection is made. This is OK, but I need to check the value in the textbox when a user clicks out too. So we have tried a .change() and .blur() events, but they bo...

jQuery validation field by range

How can I validate field by range? I use additional-methods, but i don't know how providing parametr with range to my validation method via HTML. Something of a <input type="text" class="rangeField" rel="[10, 20]" /> It's nice, if i can make a difference between integer and decimal in validation. ...

Logic behind drag and drop

I am wondering the "how it works" and "how it should be designed and implemented" side of the basic drag & drop functionality. I have never yet implemented such a functionality. I am planning to do so for one of my projects and I do have some ideas on how to implement it. I wanted to make sure I am on the right path and that you people...

What should i choose? jquery, mootools, yui, scriptaculous or prototype?

Duplicate: Which Javascript framework (jQuery vs Dojo vs … )? I am totally new to javascript, but i want to implement ajax features into my website. Which JS framework should i learn? Please recommend or which one you are using and why you use it? ...

Problem with IE6 css

I have a problem with IE6 and jquery slider. Please click on the following link than click on the button "dodaj u košaricu" on the right bottom side. After that click on the "košarica" tab and try to move slider up and down. Some of the elements stay like they have position fixed. link text In IE6 all of the elements except table and t...

AJAX and MVC (C#)

I've never used AJAX and am, quite frankly, not much versed in JS either. I have a page (Product Browser) that has the following breakdown: Navigation (First, Prev, 1, 2, 3 Next, Last) - full post back Items per Page drop down - I want to AJAX this Left Column - Filters - I want to AJAX this Product Display area - displays products ...

How do I select an html-select jquery

My html is such: <select id="slctDiv2" class="slct"><option value="0">Any</option> <option value="1">Administration</option><option value="2">Collections</option> <option value="3">Distribution</option><option value="4">Engineering</option> <option value="5">Treatment</option></select> How do I get the ID of the select item (in...

JQuery Table Filter on Multiple Criteria

Hi Everyone, I currently have a table with three drop down lists above it. As the user selects a value from each drop down to filter the results I'd like the table to hide the rows that do not fit ALL of the criteria selected so far. The closest I have gotten is this: $("#ReportControls #InventoryReports select").change(function(){...