jquery

Changing Radio Buttons image, help.

Hey guys. I'm not much of a programmer, but still need to do some coding. Now I have a problem with changing Radio Button Image with jQuery. I've got this code of the web but it still doesn't work. It changes the Radio button images, but when I try to select, it changes only the picture of the first radio box.(every time) Here's my HTM...

Waiting on JQuery to finish .live() or .bind() bindings?

Hi, I have a script which adds click event handlers to about 500 elements in the page via JQuery .live or .bind (not decided which yet), and I am having a JQuery performance issue. With a small dataset, I can load the page and as soon as the page has finished loading according to the browser, I can click on something and off we go. ...

How do I get a link to open a specific tab on a page?

I am working on a site for a client that has jquery driven tabbed content. Linking to the correct page is easy enough, but the challenge is to open to the correct tab when you get there. On the about page scroll to the bottom and click on the Move it icon (the one with the truck). This takes you to the move it page. This works fine, but...

How can I stop text from being selected?

In my web app the user can sometimes click the same button a number of times, skipping through messages and things, causing the </a> to be selected. So how can I prevent this using Javascript (jQuery) ...

jQuery ajax filters on a sortable table in a Ruby on Rails application

I am looking for a tutorial or documentation on how to create sortable table with filters in Rails application without using any jQuery or rails plugins. I want to use jQuery as javascript library and not prototype. All what I found in the internet is using one or the other jQuery plugin. ...

jQuery/javascript - Center a div within an iframe view area. scrollTop not accurate with iframe height adjusted

ok normally this would be easy but for visual reasons I force my iframe to be the same height as the content it contains. What this does is gives me only one scroll bar, the scroll bar on the parent window. The iframe document never scrolls. The problem comes when i try to center a div within the iframe. When the page is scrolled a c...

Strut2 Jquery plugin Autocompleter and Select tag not working........

I actually tried this example: $(document).ready( function() { $.subscribe('handleJsonResult', function(event,data) { $('#result100').html(""); var list = $('#countryList'); $.each(event.originalEvent.data, function(index, value) { list.append(''+value.name+'\n'); ...

Jquery .load function doesn't work under IE when loading to same page and same div. Works absolutely fine under FF & Safari!

This is my 1st post here and I'm entirely new to jquery. With that being said, I'm having issues with jquery .load function in IE when FF & Safari are working perfect. Right now, I'm creating an Inbox utility, so when user delete an email message, the messages will be move to trash folder, and deleted messages from trash folder may be mo...

Jquery: Tab Content outside the tab div

Hi All, I'm having problem when using JQGrid / some div content inside jquery tab. if the grid / div is big, it gets outside the tab and no scroll bar appears. Any ideas? Thanks, Lior ...

.slideDown() content below jumps (isn't fluid)

So I'm writing a simple page that I want to be able to slide some content down when a button is clicked. Unfortunately this also causes some issues with the button I have underneath the sliding content. When I click the first button to slide content down, it works fine. As soon as I click the 2nd button, it slides the first content up, a...

How to "hold" the page till submit responses with jquery

Hello, I was wondering if there's a simple way with Jquery to do something while the PHP process called by the forms gives a respond. PS: I'm well aware of the ajax functions to send POST data and on success do something. I'll explain I have a form on 1.php page that points to 2.php (just a script) that either redirects to the 1.php if...

Frustrating loop in Internet Explorer with jQuery live method

Hello all: Long time reader, first time poster. Working on a web site at http://www.howardpitch.com/, and I'm having a really frustrating time with the quiz on the front page. You select one of four answers and click the "Check My Answer" button. This will tell you if you were right or wrong and present you with a button for the next...

Keep focus on input when tab-selecting a jQuery autocomplete entry

http://jqueryui.com/demos/autocomplete/ Basically my issue is that when the user uses the tab key to select an item, the next form field gets the focus, but unless the input is empty, I want the focus to stay on the input. $('.ui-autocomplete').keypress(function(event) { if(event.keyCode == '9') { // Tab console.log('test')...

Why does IE8 freeze when running this jQuery--IE7, FF, etc. are fine?

I have a form with a select field. Depending upon the selection, an optional second field (different for each selection) should appear to gather further information. I had a script I wrote in jQuery to do this and I converted it quickly to a plugin (with the intent to add more of my commonly used form related code to the plugin at a la...

How to make image load when FULL image is loaded? Jquery

I have tried using .load() and .ready() My image is pretty big and when it loads, it loads in sections from top to bottom. Is there any way to make the image show up all at once when it is fully loaded and ready to be FULLY seen? $('img.touch').hide(); $('img.touch').ready(function() { $('img.touch').show(); }); The last thing I trie...

jQuery UI datepicker range

Check out this datepicker here: http://destinationtravel.com/sunriver/ Basically you can select the start date and end date right after each other. I want to mimic this using the jQuery UI date picker. I've seen this, but that has 2 separate datepickers that simple select a start and end date not combining it into one date picker show...

footer height 100% on vertically centered page.

http://www.stuartflake.com is the site that I am working on. The footer element contains the menu, the background is gray. The content of the page is centered vertically by div#position the css for this is #position { text-align:center; position:absolute; top:50%; left:0; width:100%; height:1px; display:block; } My problem is that I ...

jQuery Autocomplete: 2 autocomplete, 1 textbox

I have a requirement that needs two separate autocomplete actions on a single textbox, the autocomplete in use is determined by a dropdownlist. My initial thought was calling dispose on the previous autocomplete before loading the next one would work, however it doesn't. Has anyone gotten this to work? The other alternative would be t...

jQuery $.ajax only working on first click inside of $.click

So heres my problem. On the first fire of my code it works perfect but I reload the submit button using javascript (rather then refreshing the page). Everything that doesn't have to do with ajax runs fine on the second click but I can not for the life of me get the ajax to run the next time the button is clicked. Here is my code: $("...

Jquery - select immediate li text without selecting children ul's text

Hi, I'm trying to take a structure of nested html unordered lists as a database for some information a need to organize and analyze. I'm trying to filter, count and present the information using jQuery. I'm striving for the lists not to have any class or id attribute, so that they are very clean. Only the root would have a class or id li...