jquery

Adding an input name upon creation of new table row [jQuery]

I have an order form I had put together for a client, you can view it here. As you can see it creates a new row with 5 input fields (per row). Here's my problem, I have this form outputting the form in html format to the clients email for office use. I need to add a "unique name" for each input in the newly created row in order to pass ...

How to tell if an image is loaded or cached in JQuery?

Seems the .load() function doesn't fire if the image has been cached before. So if you want to make sure one images has loaded before you load and show another (i.e. Magnifier) you can't do something like: $(img_to_load_first) .load( $(img_to_load_last) .src("2nd.png"); ) .src("1st.png"); So how does on...

JQUERY tableFilter Plugin doesn't work in IE.

I'm using the JQUERY plugin called tableFilter. It works beautifully in Firefox but in IE, any table on the page gets hidden but there is nothing in the View Source that shows it hidden. Anyone using this plugin got it to work in IE? I can't get the plugin developers example to work in IE either. ...

jQuery Cycle Plugin - Dictate locaton of thumbnails

What I would like to do is dictate where my thumbnails are instead of using the main images as the thumbnail. I'm pretty sure this can be done, I just need a little push in the right direction. Here is my Code: <script type="text/javascript"> $('#imageContainer').before('').cycle({ fx: 'fade', speed: 2000, timeou...

Center float except last row

I need to center some floated divs inside a container. The code I'm using works but I need the last row of floated elements to be aligned to the left and not centered. It's a photo album and all the thumbnails are automatically generated by a gallery script. This is what the code produces This is what I need I don't think this is pos...

How-to Make a JS Confirm Below leaving the page function

Hello, Google Docs, Gmail etc have this feature where if you try to leave a page that hasn't been saved it pops a dialog box with "confirm, Are you sure you want to navigate away from this page?" Is there a JQUERY plugin that will allow me to implement this kind of functionality? Thanks ...

Insert "t" into an images path using JQuery

What I would like to do is insert a "t" into the path of the image like so: <img src="../images/elements/slideshow/1t.jpg" width="378" height="210" /> A little look at my script: var thumb_prefix = "t"; return '<li><a href="#"><img src="' + slide.src + thumb_prefix + '" width="121" height="67" /></a></li>'; This is just adding...

Document.domain and <iframe>s breaks the "Back" button in Internet Explorer

This is a very urgent problem and I'd be forever indebted to anyone who can lend some insight. I'm going to be deploying a widget (called the "ISM") to a third-party site. That site uses the document.domain JavaScript property to relax cross-domain restrictions (e.g., setting document.domain in "a.example.com" and "b.example.com" to bot...

jQuery datepicker not appearing, race condition?

Hello everyone, I formerly had my datepicker appearing when I was applying it to a static element, but for some reason I can't get it to work dynamically. Under certain configurations, it works if I pop up an alert box first. What is wrong? div.load(url, function() { div.children().each( function(){this.datepicker({dateFormat:"yy-m-d"...

jquery $.post won't disable a form

$('#com_form').submit(function(){ var ele = $(this); $.post("includes/agenda_com.php", { texte : ele.find('textarea').val(), id : ele.find('#agenda_id').val(); }, function(data){ if(data=='foo') { alert("Erreur ! votre commentaire n'a p...

jQuery - Fire event if CSS class changed

Hello, how could I fire a event if the a css class was added or changed qith jQuery? Does changing of css class fire the jQuery change() event? ...

jQuery cluetip('destroy') does not destroy/remove cluetip?

Hi all: I'm trying to make sense of how cluetip actually works. I have a dummy DOM structure which I did some alerts on to check if the cluetip has been removed after the cluetip('destroy') was called on the anchor element. However, the cluetip div still appears to be alive and well. This really confuses me... Correct me if I'm wron...

jQuery - How to Prevent Animation Queue Buildup with Double Animations?

Hello, I was taking a look at this tutorial here to prevent animation buildups: http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup My situation: I am doing a double animation like this below, and would like the prevent the animation build up. Since I have 2 animations going, it seems it ignores the .stop...

Tell jQuery to execute certain code only once.

Is there any way to tell jQuery to do something only once? E.g. right now, I need jQuery to on click of div, append some HTML. Then, every time someone clicks that div again it toggles hide/show. Is there a way to do this? I'm trying not to be too confusing. EDIT: Solved! ...

JQUERY BInding to an iFRAME

Hello, I'm trying to build a "JS Confirm Below leaving the page function" The issue I'm having is that on the page I need this confirmation func I'm using CKEDITOR which creates an iframe for the text editor. // Javascript code that controls the onbeforeunload event function setConfirmUnload(on) { window.onbeforeunload = (on) ? un...

Thumbnail effect like google chrome website screenshot

Could anyone show me how to make a thumbnail with hover effect like google chrome tab website thumbnail e.g. when you hover the website screenshot image, a blue box will appear with pin and you can move. THank you ...

accessing variable modifications made from within an inline function in javascript

Hello all, I'm trying to pass local variables to an inline function in javascript and have that (inline) function manipulate those variables, then be able to access the changed variable values in the containing function. Is this even possible? Here's a sample of the code I'm working with: function addArtists(artist, request, origE...

Parse JSON with Jquery

How do I parse this? I'm working with WordPress and Jquery. { "MyCustomOutput": [ { "id": "2", "name": "This is the name of the custom output", "version": "1.00", "description": "This is the Description", "changelog": "This is the change log history....", ...

IE7 image loads when it shouldnt

Hi, I am building a site, and one of my pages is causing a bit of a problem in IE7. You can view the site here: www.vitaminjdesign.com/contact.html I wrote a jquery script that basically loads a success image if the contact fields have an entry, and a fail icon when they are empty. It works perfectly in all browsers, but in IE7, an imag...

TinyMCE Jquery - No default buttons, themes, how do i specify default paths?

This is driving me nuts!@#!@# I can load the tinyMce plugin for jquery just fine....but it looks for its own images/themes relative to the CURRENT URL. ex. tinymce tries to load http:/mysite/mycurrenturl/tiny_mce/whateverM when tinymce is located in http:/mysite/js/tiny_mce so for some reason i can not seem to find any documentation t...