jquery

Sticky Footer doesn't work well on Safari and Chrome

What can be happening in this case ? It's a very nice .NET website, but when I check the website in Safari or chrome, sometimes the footer doesnt work well, and I have to scroll the page (move the scroll bar) so it fits in it's rigth place. It's a very weird thing. This is the sticky footer plugin I'm using , the best I've used so far,...

jQuery Now Playing Location

I currently have the jQuery plugin running on my site that shows my latest played tracks from Last.fm, how would i could it so that the artwork shows and the text shows for my new website theme. Currently this is how it looks (awful!) www.ibett.co.uk Here is my new design and I want it to show bottom right so album art is in the cover...

How to get width in specified units (pt, ex, etc.)

Hi, In my script, i need to get width of an element in "ex" units (font width) Is there any way to do this using JavaScript, jQuery ? ...

Why does Jquery .attr() not work on my object in IE 7 / 8 ?

I have this very peculiar IE issue where the .attr() function will not select anything. var tabID = $(selectedTab).attr('id'); selectedTab is a variable passed from an onclick method of a div like below: <div id="WhatisaDog" onclick="handleSelectedTab(this);" class="tab tabPassive"></div> The issue I am seeing in the IE developer t...

Jquery dialog "cache" variable. How avoid it?

I have a dialog confirmation that must be reused for several controls in a html page. Each change in a select, fire this dialog. This is my code: console.info("before:" + select[0].id); dialog = $('#dialogReject').dialog( { autoOpen:false, height:300, width:400, modal:true, buttons: { "Ok": function...

Disable a form 'action' if jquery validation fails

I'm trying to finalize my webpage's shopping cart and I'm running into one final problem. There is a text box next to my 'add to cart' button that requires a specific hardware key (Fingerprint) to be entered before completing the purchase. I need to set it up so that the end-user cannot click "add to cart" until that field is validated. ...

Send a simple GET request

I want to send a server simple GET request but as I see the .ajax sends x-requested-with header which my server doesn't understand. $.ajax({ type: 'GET', url: 'coord-' + x + '-' + y + '-' + iname, success: function(data) { ...

IE 6 JQuery Selector

Hi, I have a simple HTML layout like so: <html> <head> <title>HTML Page</title> </head> <body> <table> <tr> <td> <a href="some.html">Text</a> </td> </tr> </table> </body> </html> I am trying to select the first td with a selector like this: html > body > table > tr:nth(0) > t...

Is it a good idea to create new XHTML markup for speed and readability reasons?

Hi folks, I develop for a web app startup and I come across the following code quite often. <div class="items container"> <div class="item"> <div class="property propertyA">Some stuff</div> </div> </div> Our typical jQuery selector looks pretty much similar to: $("div.items.container > div.item > div.property.propert...

jQuery UI Dialog does not display after page scrolled in Firefox

I have a link: <a class="fg-button ui-state-default fg-button-icon-left assistButton" pbcType="download" title="Click for download information"><span class="ui-icon ui-icon-document"></span>File</a> And I have some jQuery: $(".assistButton").click(function(){ $('#dialog').css('color', '#000000'); $("#dialog").dialog({...

jQuery - watch for element height change

Hi I have a element, which is absolute positioned and has a fixed height. This element has a lot of child elements, which could change their contents, and in consequence their height. The problem is that the container element doesn't auto expand to fit its children (because of it's fixed height and absolute position). How can I can re...

jQuery function call issue

I have a plugin that I can set settings and call it when document ready. However, I want to change it to an "onclick" of a button instead of DOM ready. the plugin goes like (function($) { $.fn.addressSearch = function(settings) { settings = jQuery.extend({ searchClass: "quickSearch", c...

Jquery Closest From Element Value

Hey All Im trying to get a form element value using closest. Here some example code. <table> <tr> <td>Hour <input type="input" value="12" name="data[hour]" class="hour" /></td> <td>Minute <input type="input" value="12" name="data[minute]" class="minute" /></td> <td><a href="#" class="add-data">Add Row</a></td> </tr> </t...

jQuery .load() call doesn't work in Firefox - why?

I'm a newbie programmer working with jQuery and wonder if anyone can help me out. Essentially, I've created some html for a social button's section on our articles. I've uploaded that with the aim of using jQuery's .load() function to pull it into every article. It works in IE7, but not in Firefox or Chrome. Can anyone help fix it? <...

Is there a jQuery plug-in that makes thumbnails of an image dynamically?

Does anyone know of a jquery plugin that can make a thumbnail of an image hosted at another site (Flickr/Picasa/SmugMug/etc.)? I was trying to use Galleria, but didn't like it very much. It had the capability to make thumbnails dynamically, so I know it is possible. What I'd like to do is use a Colorbox slideshow for my gallery, but I'...

jqGrid with JSON showing up empty.

I'm trying to load a jqGrid from json data made via a REST call. But my grid is just a blank rectangle on the page. Here is my code: <body> <div id="tabs"> <ul> <li><a href="#panel-users">Users</a></li> <li><a href="#panel-clients">Clients</a></li> </ul> <div id="panel-users"> <table id="list"></tab...

jQuery Validator 'form' is null or not an object from $(document).ready

This question is in relation to A Previous Question, however, since it was a completely different I decided to start a new question. In my code, i have a $(document).ready that calls a function addChild. It works just fine, unless I call the function more then once. If I call 2+ times in the $(document).ready, it will give the error: ...

jquery remove plugin from element

Hi, I've got something similar to the following code: $(a).click(function() { $(element).plugin(); }); Is there a way to remove a plugin from an element other than using $($.plugin).remove()? Not sure if I have the terminology correct but basically I want to reset the element to it's original state. Thanks ...

jQuery to trigger event through query string

I have two separate jQuery functions that allow a user to toggle a div's visibility. By defualt, the divs will be in their closed state. I'm trying to figure out a way to set up links to this page that will open a specific div based on an ID passed to the query string. My jQuery looks like this: jQuery(document).ready(function(){ ...

Do I need another JQuery plugin for Draggable to work?

Hi all, I am doing some self-learning about JQuery. Here is the code for my very simple HTML form: <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"&gt;&lt;/script&gt; </head> <body> <script type="text/javascript"> ...