jquery

My flash reinitializes (reloads) when it's container is resized (via javascript - jQuery) in FireFox

I have a flash within a holder div (flash container). I use swfobject to insert the flash object (if it makes any difference). I want to resize that holder div to make it smaller in width, when I achieve the "second level" in my "flash application". (with jQuery .animate() function). What "flash application" mean: I have a human body ...

Retrigger $().load event in jQuery

Hey. When I want something to happen when an image is loaded I use $("#image").load(function() { something }); but in anything other than Firefox this works only the first time the image gets loaded. For instance if I have made a gallery of images and want something to happen when an image is loaded I use .load and it works the first...

Draggable nested inside Draggable drags both when dragging child in IE

Hi, I'm building a seating application using jQuery. I have tables with chairs around them, which may have guests seated at the chairs. Each table has a wrapper div which is draggable. Inside the table are any number of chair div's. Inside any chair div a guest may be seated. Guest are also a div which is nested inside the chair di...

jQuery plugin naming convention (for the function)

Which casing looks better to you for a jQuery plugin: $("#foo").runMyPlugin(); or $("#foo").runmyplugin(); Is there a naming convention for jQuery that prefers on over the other? Thanks in advance! ...

jQuery server-side button

I have a page(ASP.NET 3.5) with a number of buttons, some of them are saving buttons, some are not. I have to be generic, i.e. cannot call individual controls by ID. My save buttons will probably have attribute UserSubmitBehavior = true. In a click event handler I need to distinguish what type of button I pressed, so: $('input[type=subm...

How do I get the browser to update before my next Javascript function is called?

Hey all, I'm having a bit of trouble getting the desired functionality from my function... Basically, I'm making two calls to AJAX functions (as provided by Oracle APEX, so I can't change these) but they're taking a while. I'd like to show the standard AJAXy spinning gif while the action was going on, but I'm not having much luck. He...

display jquery prettyPhoto lightbox in parent from iframe

I have been trying to get some assistance with this issue for a while now. I know this issue has been discussed before but I can't seem to get it to work. I have a master html page with an iframe on that page. I am using jquery prettyphoto and I was wondering how I can get the light box to display in the parent window when I click on the...

Logic for stacking behaviour in javascript

I'm trying to write some javascript that will stack objects by setting z-index. Test Case: http://christophermeyers.name/stacker/ I've hacked that together, but I'd like to extrapolate that behavior to something a little more logical. That is: Given x number of elements, when element C is moved to the top, all elements above that elem...

jQuery ::: Does remove really remove?

I'm trying to remove a table row using jQuery, and while it disappears from the screen, and therefore, appears to work, in Firebug, I can still see the code for it. There are form elements in this row, and so, I want to understand whether the row is truly being deleted or not, because I wouldn't want those values submitted. So, does re...

Trying to anchor a link in center of in-page scroller content

I am trying to link from www.membersolutions.com to a press release here. All pages besides the homepage for the most part have that in-page scrollable content. Is there anyway I can link to a press release halfway down the page, I'm pretty sure you can't do it with straight HTML/CSS?? ...

JQuery: how to access multiple css classes using .attr()?

I have the following: <div id="unique" class="myclass xyz_345">...</div> Question: How do I access what # is after xyz_, given that I have 2 css classes being applied to it? (In the example above, it would be the number 345). I've tried the following, but it does work: var num_after_xyz = $('unique').attr("class").substring(4); ...

Active JQuery resource/directory with RSS news feed

I want to be updated every day with the latest JQuery news and new releases of plugins. Any active JQuery web resource with an RSS feed which I can subscribe to? ...

Advanced best practices for ASP.NET MVC2 & JQuery

I am going forward with developing my first ASP.NET MVC web app, coming from years of ASP.NET WebForm development. I have already read an MVC book so I know what MVC is all about. I like to use the latest and the greatest so I am planning to use VS 2010, MVC2, C#4 and JQeury 1.4. Any best practices or design patterns when using ASP.NET...

jquery - get an input field value from the last row in a table?

I'm a little confused on how to do this... I have a table that has a series of rows, and within each cell, there are certain form elements. I'm trying to get the value from the "code" input field from the last row only, and am having trouble with the syntax... Simplified table looks like this: <table id="table1"> <tr><td><input t...

jQuery Image/Hover Preview Causing Choppy Behavior in IE7

Hi everyone, I seem to be having some problems using jQuery to create a simple zoom in IE. In Firefox all is well, but IE is being reported as choppy by most users. I've disabled the code in IE (using jQuery.browser.msie), but would love anyone's help if possible. My jquery source code is below (ignore the upport function). this...

Retrieve child img src (jQuery)

I have multiple div's that look like this: <div><a href="our_work.html?clientid=39"> <img src="filestore/data_logos/39.gif" alt="client logo"/> </a></div> I am trying to get the image src if you click on the div layer: $('#carousel div').click(function(event) { alert($(this).children('img').attr('src')); }); The alert always come...

jQTouch - Cannot paste into input field: have anyone seen this?

Here is the HTML snippet: <input type="text" name="UPCtext" id="UPCtextBar" value="" placeholder="Type UPC number" class="UPCvalue"/> There are no events bind()'s or live()'s associated with this input field. If I remove jQTouch it works as it should, so, have anyone been through this problem? ...

jquery help running a keyup event...

I'my trying to sum up the values in text boxes and place the total sum in a span tag. I've got the functions working right (sort of...). My problem is the "KEYUP" event is not working on form elements that get added after the page loads. For example, When the page renders it displays one INPUT box where the user can enter a number. T...

ASP.NET AJAX postback and jQuery

I have a Textbox, a LinkButton and a RadioButtonList inside an UpdatePanel. When the button is clicked, the UpdatePanel shows matching items in the radiobuttonlist. This works fine, but I now need to make the same happen OnKeyDown on the TextBox. I'm trying to cancel all AJAX requests in progress but not having much luck. Firstly, on ev...

Is it possible to click a link through an image on top that link?

I have a transparent PNG sitting in a DIV on top of a list of links and I would like to know if there is any way to allow a user to click on any of those links currently sitting behind the image with jQuery? The image is large enough that it is covering the DIV below it at all times. <div id="links"><a href="#">Link</a></div> <div i...