jquery

jQuery: Event, when User stops scrolling

Hi, I'd like to do some fancy jQuery stuff when the user scrolled the page. But I have no idea how to tackle this problem, since there is online the scroll() method. Any ideas? ...

Jquery: Hide all images except recaptcha image

Hi to all, i need a code in Jquery for hide all images on all pages except the 'reCaptcha' thing. The images of reCaptcha start with the link: 'google.com/recaptcha' or 'recaptcha.net' ... My idea is to make the script that hide all images but not touch the images that contains the part 'recaptcha'. Is possible to make in Jquery? Thanks...

IE and document.innerhtml()

This works in firefox but not in IE7/8: <script type="text/javascript"> //<![CDATA[ $(document).ready(function() { $.get('page.php', function(data){ document.innerHTML = data; }); }); //]]> </script> This also works in Firefox but not in IE7/8: <script type="text/javascript"> //<![CDATA[ $(document).rea...

Disable drop down box on radio button click

Hi, I have two radio buttons and a drop down box as you can see below. What I want to do is: 1. While no is checked, either hide, or grey out the drop down box, and 2. While yes is checked, show the drop down box. Any pointers would be appreciated! <td colspan="4"> <input name="discount" type="radio" id="Yes" value="Yes" />Yes <input ...

jQuery startswith selector

function test() { var foo = []; $('#tree table').each(function(i, table) { foo[i] = $(table).text().trim(); }); var ch = 'G'; for (j = 0; j <= 12; j++) { if (foo[j] ^= ch) { alert(foo[j]); } } } [foo[j] ^= ch] startsWith selector isn't working in the above code. Help needed...

Using Jquery Fancybox resize() function within an Iframe?

Hi, I am a beginner with Jquery and I am using Fancybox (type: iframe) within my PHP application. Within the iframe, there is a form, once the user has filled & submitted the form, the Fancybox should resize so as to accomodate the data which will be relayed back once the formdata has been processed. And I would also like the main pag...

Get selected text outside textbox with jquery

Is it possible to retrive selected text outside textbox? I had seen solutions to get text from input forms and textareas, similar to this: http://laboratorium.0xab.cd/jquery/fieldselection/0.2.3-test/test.html but can this aplied on HTML text (inside div element)? For example, I want user to be able to bold selected text which is not in...

jQuery this() for textarea?

Hey! Another small problem (isn't it a bug in jQuery?). I've got a textarea like this: <textarea>Something</textarea> I want to erase "Something" after clicking, so: $("textarea").click(function() { $(this).text(""); }); Ok so far. There are problems when I want to change the "Something" text ONLY when there's "Something" in ...

Nothing is wrong with my JSON but jQuery doesn't likey like. Please help

I've built some JSON { "News": { "Article": {"title": "test"}, "Article": { "title": "test" }, /*Snipped*/ "Article": { "title": "test" }, "Article": { "title": "test" } }, "count": "20" } which validates in a JSON formatter http://jsonformatter.curiousconcept.com/. But when I ...

jQuery later than window load

I am using Cufon.replace to font replace some text on the site. Currently in IE8 standards mode when this is run outside a $(document).ready it is only happening ~50% of the time the rest of the time the DOM changes have occurred (viewing with IE8 built in dev toolbar) but no text is displayed. Disabling the replace, and applying it man...

jQuery - How to display a simple tooltip when the user's mouse hovers on top of a hyper-link?

Hello all, I have designed a website navigation as follows: Home | Login | Help When the user's mouse hovers on top of the item (i.e. Home or Login or Help), I would like to show a simple tooltip such as (Go to Homepage, or Please Login in, etc.) How can I do this in jQuery without any plugin? Thank you ...

Update text of DIV with input value

I'm trying to update the text of a div which has several input buttons. When an input button gets clicked, the value of the button should be passed to the div and replace the text in the div. It's basically a drop down menu which gets closed when the user clicks on an option. For obvious reasons I'd like the name of the button to replac...

IE png fix not calling from static domin when using relative path

All my static media is on a subdomain static.domain.com while the rest of the code is on www.domain.com. I am trying to apply the pngfix for IE and i noticed via fiddler that there are serveral requests to www.domain.com rather than static and these are all getting 404 and causing insane page load times. I swapped out the relative path ...

How do I use jQuery to load my advertisements?

Some ads on my website are slowing down load time. How can I use jquery to load the ad code while the page is loading? I tried something like this: $(document).ready(function () { advertisement(); function advertisement() { $.ajax({ type: "GET", url: "/advertisement.php", data: "type...

Problem calling each element with Jquery

I am trying to create new div element and then change it`s position with Jquery.But J query effects only first element.I want to change all elements position with different number. <div class="userList"> <?php $categories = find_category(); foreach($categories as $category): ?> <div id="user"> <img id="<?php echo $category['cat_id...

help with PHP, POST, COOKIE, JQUERY

Hello, I'm developing an application for a client's website. Here's the story, this company uses an application/HDD called synology that is basically an HDD box connected to the internet and gives access to files to clients with pre-created accounts. This interface is written in CGI and I have no access to the box (different network and ...

How do I hide a adjacent div when I mouseout of a menu item, using JQuery?

Hi All, I was wondering how I could reverse the click triggered in this function on 'mouseout' of 'a.menu-arrow'? See code below: $(".menu-arrow").hover(function() { $.data(this, "timer", setTimeout($.proxy(function() { $(this).click(); }, this), 500)); }, function() { clearTimeout($.data(this, "timer")); }); What happens i...

jQuery animation unwanted repeats :)

And some question once again. I have a set of inputs and I want to change their background color after hovering and then come back to the original color after mouse out. It works fine, with one glitch - when I hover those inputs, then take mouse back, then hover them again and take mouse back etc. rapidly - they're blinking some time a...

asp.net ajax toolkit list search type of plugin in Jquery

Am looking for asp.net Ajax control toolkit List Search type of plugin in JQuery. Ref. http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/ListSearch/ListSearch.aspx ...

Can I send a variable to my flash movie after it has been loaded on the page?

Like the title say's, is it possible to send data to my flash movie after it has been loaded? More specific: I have a flash-movie with an image in it, and from the outside I would like to be able to alter it by sending fe. '?color=FF00FF' to the movie. Is there a way to catch this variable in flash? ...