jquery

jQuery trigger not working in IE. Why?

$('#XynBp0').find('input').each(function(){ if ($(this).attr('value') == 'Cancel'){ $(this).trigger('click'); } }); doesn't work in IE7 ...

lite weight and SIMPLE jquery auto suggest/autocomplete?

all i need is a very simple auto complete that suggests words that have the letters the user is typing in them, very simple, nothing fancy, either inline or from an external file, i only need about 20 or so results to be suggested total. I saw this one: http://jquery.bassistance.de/autocomplete/demo/? but it's 8kb, which is pretty big ...

Good resources for learning jQuery

Can anyone recommend some resources for learning jQuery (not just about using other people's jQuery code, but how to say, add some effects to a grid of images etc) I've been looking through a few books but the examples seem way more simple than anything that's online... ...

How do I change an elements class in jquery?

Assuming I have <ul class="myList verticalList"> how can I change the value of verticalList using jquery? ...

Lightweight jQuery (or non-jQuery) slider control?

I need something like the slider control from jQueryUI, but I don't want to use the whole framework for only one control. I tried searching Google but I get results for image sliders rather than the type of control I'm after. Perhaps there is another name for this kind of control? I found only this Which is exactly what I want, but it...

Background Image Flickers on WebKit-based browsers (Safari/Chrome)

I have a image frame which constantly and quickly changes images when users drag over the frame. These images are Real-Time generated based on user's interaction so every image generated should be downloaded as soon as it become available. The highest speed could be 5 images per seconds. However, I have a image flickering problem when us...

Text Resize as the user types

So I've searched a ton of sites, and what I am looking for is, as the user types, the text automatically resizezs smaller (or larger, if they delete something). For an example, as well as the other code I'm using, you can visit http://twmorton.com/magicpreviewjquery/ Thanks! ...

jQuery search results ... hover and click no longer working?

So I created a couple of functions for my search autocomplete results (custom autocomplete) and while the results were static, the hover and click events worked fine... but now that the results are dynamically being generated, my divs no longer respond to their hover and click events. Is jQuery not seeing the divs anymore because they'...

Using Google's Visualization API and Closure to generate a BarChart.

I have a web page that uses Google's Visualization API to generate a timeline but now that I'm trying to add some jQuery stuff to it, things are falling over. So, I'm trying to do it with Closure. However I can't seem to find any examples of how to use the Visualization API under Closure. Does anyone know where I can find any examples? ...

jQuery (maybe) horizontally fix element, but vertically scroll it

I know I've seen this done somewhere, but I can't find it anywhere. Basically, I have a side scroller (here: http://www.allisonnavon.com) that I'm putting together. The main problem is if the browser window is just a bit too short on height, the site will scroll vertically and cover up the title that is supposed to be fixed. I guess t...

javascript code that scrolls to top when a button is clicked

If you click on the navigation links on Hardly Code's website the browser scrolls to another section of the page. Can anyone point me to some good reading materials for recreating this effect? I am using jquery, and want the animation to be as smooth as is it on hardlycode.com ...

[javascript] how to check 01 02 number

var val= $('#num').val(); // 01 if(isNaN(val) || val > 59 || val== ''){ alert("error"); } In this case, has not alert error var val= $('#num').val(); // 01 val = parseInt(val); ...

how to make sure everything is loaded in ajax using jquery

Hello everyone I got trapped when Im using jquery loading some content into my page. The code is like this: $("#holder").fadeout(); $("#holder").load("test.html", callbackfn); function callbackfn(){ $("#holder").fadein(); } test.html <div style="background-image:url(1.jpg);">test</div> That's the main idea, and actually it wor...

How to Auto slide with jQuery...

how can i auto slide this slider link text i have little knowledge on jQuery and less on how to do this. the thing is that this slider slides when i click on an image but i also want this to start sliding automatic and when i hover on it it stops / pause sliding and then when i point my mouse out it continues sliding... here is wat im...

javascript function to remove diacritics

Hi, I'm searching for javascript function to replace French diacritics and came accross this code: String.prototype.removeDiacritics = function() { var diacritics = [ [/[\300-\306]/g, 'A'], [/[\340-\346]/g, 'a'], [/[\310-\313]/g, 'E'], [/[\350-\353]/g, 'e'], [/[\314-\317]/g, 'I'], [/[\354-\357]/g, 'i'], [/[\...

Noob JQuery question

I'm trying to download JQuery. When I click the minified version, I just get a bunch of code displayed in the browser. I don't actually download anything. What am I supposed to do? How do I download JQuery and do I need to put it where my other files are? ...

JQuery Animated Boxes

Hi I'm trying to get use of the following JQuery example: animated boxes The boxes are not hidden outside the wrapper box (The Div which contains the animated boxes) as they should be to show a cool scroller.I tried overflow:hidden but it didn't work in that example as it does in other examples. Could any one help me to find a solutio...

Jquery autocomplete mouse selection problem

Hi If I select data with mouse not updating id associated with the data. Ex: I'm passing a call back function to $("#" + elementId).result(function (event, data, value) { if (data) { $("#userId").val(data.id); }else { alert("userId is not selected"); } }); I'm getting an alert message when I select data ...

jQuery Position() not run on $(document).ready() ?

i am using the jQueryUI Position Utilities, but i don't know why it not run on $(document).ready(), if i use firebug and execute the position(); again manually, it work fine. Update: I try that code only not work on IE8, it work on firefox and chrome. The code on : http://jsbin.com/owoya3/edit <!DOCTYPE html> <html> <head> <script...

trying to hide/show div with jquery by clicking one link

here's my js: $(document).ready(function() { $('.LoginContainer').hide(); $('.list li a').click(function(){ $('.LoginContainer').toggle(); }); }); This only makes the div with class="loginContainer" appear for a split second and then dissapear. I want for the div to appear when I click the link, and then dissapear w...