jQuery The index of an element with Event

I can't figure out how to accès the index of the élément that is clicked.Let's say I have 4 mp3 links in the page and that I click the second one , I can acces the url of the link that is clicked like this$("a[@rel='enclosure'][@href$=mp3]").bind("click",functi ...

jQuery fundamentals: .index(obj) or better solution

.index() is driving me nuts, and I'm trying to figure out if there's an obvious solution to what I'm trying to do, or if I'm missing something in the API.Let's say I have the following:<div name="list"><div class='list_item'><input type='hidde ...

jQuery Possible z-index problem with animate

I have an li-element with some divs inside it to round the corners (2x2 pixel divs with suitable background images to just chip off the border around the li)I use the built in animate to change the height of the li, during the animation, the divs don't work as they should, but as soon as it' ...

Using JQuery to fix Flash z-index problem?

Note, this also works for safari on a mac-----Original Message-----From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] OnBehalf Of rolfsfSent: Wednesday, January 17, 2007 11:54 AMTo: discuss@jquery.comSubject: Re: [jQuery] Using JQuery to fix Flash z-index problem?Thanks SeViR! I ...

Using JQuery to fix Flash z-index problem?

I'm using toggle to show/hide a div that partially overlaps a flash movie.Apparently, flash, being active content, will always rise to the top of thestacking order. Since I can see that my div will sit on top until the flashloops or updates, I'm wondering if there is a javascript or jquery m ...

Using JQuery to fix Flash z-index problem?

I use SWFObject to insert Flash.in html I have:<div class="flash" title="path/file.swf" style="width:100px;height:200px">If you can see this, then you have not flash.</div>and javascript:$("div.flash").each(function(){      ...

Using JQuery to fix Flash z-index problem?

I think you need to add the parameter wmode:"transparent" to yourembed/object tag. That will allow a div to go over the flash movie.-----Original Message-----From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] OnBehalf Of rolfsfSent: Wednesday, January 17, 2007 11:20 AMTo: ...

jQuery jCarousel: index of last item

everyone. I'm trying to design <span style="font-weight: bold;">a jCarousel that rotates continously</span> (that is, after the last item the circles closes with the first the one seamlessly). What I'm trying to do is detach the first element in the <span style="font-family: c ...

Memory leak in blank index.html&jquery

I was investigating a memory leak in my application and unfortunately everything led to jQuery. So I created this simple HTML file:<html><head><script src="packages/jquery/jquery-latest.pack.js"> </script></head><body> test </body></html>Then ...

Memory leak in blank index.html&jquery

> How fast are you reloading? What version of jQuery are you using?To limit possible influences, I made the same experiment with plain IEs 6 and 7, reloading the test file manually, once in a 15-20 seconds interval. I use the latest file from jquery.com, 1.1.1, * Rev: 1153, Date: 2007-01-22 00:27 ...

jQuery Understanding .index(subject)

I'm trying to get my head around this method and I'm getting resultsunexpected results. I'm trying to get the index number of the th's thathave the '.asc' class. Any ideas why the second one is returning -1 ?Thank you! :)<html><head>    <scr ...

jQuery DatePicker: Z-index issues

all,I'm getting awkward issues with datepicker, best illustrated withscreenshots: http://hosted.jazzle.co.uk/datePicker/datePickerIssue.jpg and http://hosted.jazzle.co.uk/datePicker/datePickerIssue2.jpg (the second is less of a problem but notable none the less)I am using the latest datepicker ( ...

jQuery Superfish, Tabs and IE z-index

I'm using Superfish for my menus and the Tabs plugin. By default, the Superfish menus show up behind the tabs. The Tabs css uses a z-index of 2 so I set the Superfish css to use a z-index of 3. This works in FF and the menus show up in front of the tabs. However, IE doesn't play nice and the ...

I hope jQuery develope a plugin just like this website(http://www.scbr.com/docs/products/dhtmlxTreeGrid/index.shtml)

I hope jQuery develope a plugin just like this website(http://www.scbr.com/docs/products/dhtmlxTreeGrid/index.shtml) ...

jQuery index of an element

I'm trying to get this working:jQuery('#accordion input[@type=radio]').click(function(){   var rank = jQuery('#accordion p').index(function(){jQuery(this).parent('p').eq(0)});});my markup:             <div id= ...

jQuery thickbox and other plugins z-index

hey, is im having a problem, im using tickbox to show diffrent page (ajaxremote file), when im trying to use inside the page that ive got inside the thickbox, some plugins like jquery-calander or whatever its hides me the items so once iclick on "show dates" ... is there a way to bring to ...

jQuery finding the next highest z-index

I am working on a script that requires me to take the highest z-indexed object and send it to the back and then reset the other elements to their appropriate zindex.So, if we have five items with a z-index of 1 - 5 and when five is clicked on I need the z-index to be set to 1 and the other items to ...

jQuery Cycle Plugin and z-index

Hi,I'm using M. Alsup's Cycle plugin to transition between a series ofimages. This is working as expected, but I'm having problems gettingan additional image to appear "above" them, at a higher z-index. I'vetried giving both elements a fixed z-index, and by using a transpar ...

jQuery Still trying to understand index function

My understanding of the index function was that it takes an OBJECT tomatch in a list of same type objects so as a trivial example$(document).ready(function(){        var firstPara = $("p#first").get();        a ...

jQuery Superfish, swfObject, z-index, and (of course) IE

First, let me say thank you to Joel for making the new CSS forSuperfish so easy to configure now! All those comments make such thedifference!and Second, here's my dilema:We have a site, first thing that loads is a lovely flash movie whichresides in the main container below the horizontal navigat ...

jQuery getting index of elements

all,I'm new to jQuery, and have the following need:01. I have some divs with the same class, and inside of each, I havetwo <a>, from which one will have a class "bt" and the other no class(this is done via the user interaction)02. the issue here is that I need to get the index of ...

jQuery z-index and IE issue (not the select problem, or the z-index stacking context)

I ran into both the select-in-IE6 issue and z-index stacking issue(described very well here: http://www.aplus.co.yu/lab/z-pos/index.php).But now I'm running into another issue with IE that it won't seem toapply the z-index when it's done inside of a hover function. Thisisn't a proble ...

jQuery Can the cycle plugin return an index?

Hey, gang -I've got the cycle plugin working, just great, it's a beautiful thing. However, I have a after callback that needs to get the index of the currently displayed slide. Basically, it's displaying %% of %%% (for those who've got an RPG-II background...). I need to show what nu ...

jQuery thickbox & interface z-index

hey. im using interface Sortable plugin and thickbox 3.the problem is happeninig when im trying to drag a item inside thickboxitem.... its just putting the sortable item in the back and hides it ,because the z-index or somthinghow do i slove it?-- View this message in context: http://www.nabble.com/ ...

jQuery How do you return the index of an option selected

How do you return the index of an option selected:<select><option value="A">a</option><option value="B">b</option><optionvalue="C">c</option></select>I want to return 0, 1 and 2 when the above optiones are selected ...

jQuery .css() doesn't seem to work when I add the transitional DTD to my index page?

I'm having a weird problem. . .When I add:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">to the top of my index page, the css calls from the code snippet belowstop working.//****************************************** ...

jQuery ie 6 z-index workaround?

Is there a common way getting around the z-index IE6 issue? I am talkingabout how select boxes appear infront of element with higher z-index.-- View this message in context: http://www.nabble.com/ie-6-z-index-workaround--tp15312083s27240p15312083.htmlSent from the jQuery General Discussion mailing l ...

jQuery Finding index of the first empty text field

all,I'm trying to find the index of the first empty text field (class nameis item).I am able to get the text field object by using:$(".item[@value=''"])However I can't get the index, i.e., which text field is it?The number of text fields are dynamic, but there will always b ...

jQuery div index

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head></head><body bgcolor="#ffffff" text="#000066">How can I get the index of one of my class? I'm reading all indocs.jquery.com and found nothing    $("#new-criteria").click(function() ...

jQuery ui.tabs problem with z-index in IE6

guys,I'm using the excellent ui.tabs plugin on the following page:http://ostrich.freshegg.com/above-ground-pools.aspI have also built a rather complicated drop-down navigation menu (hover over"our products") in CSS-only and unfortunately the Tabs and the Menu aren'tgetting along we ...

jQuery should index() except $() ?

Here is a small patch that will allow .index() to except DOM elements or a jquery object. If it is a jquery return, it will use the first element. Not sure if this is useful for anyone else.<br clear="all">-- <a href="http://morglog.alleycatracing.com">http://morglog.alleycatracing.com ...

jQuery get index number of 'in focus' text box

As each text box gains the focus, I would like the index number ofthat text box to be displayed in a div.I tried to use the following but -1 was displayed each time.$(document).ready(function() {$('input:text').focus(function () {$('div').text( $(this).index());});});Here is the full ...

jQuery jqModal and the z-index

Hi, all. jqModal is working great...except on IE7. When I bring up the modal dialogthe slightly opaque layer covers even the dialog box.Following the recommendations of the demo page(http://dev.iceburg.net/jquery/jqModal/toTop.html)I call jqModal with toTop:true, like this:$('#DialogBackLayer ...

z-index issue using jquery corners and perciformes menu

Just wondering if anyone has come across the issue in IE (allversions it seems) where the suckerfish menu 2nd tier is displayedbehind 2 divs that are rounded using jquery corners ?Example is at http://mfusion.com.au/telechase/signup.phpI've tried explicitly setting z-index and including the bgif ...

z-index issue using jquery corners and perciformes menu

HIWondering if anyone has seen the 2nd tier of a suckerfish menu getpushed behind divs styled with jquery.corners (from Dave Methvin) inIEAll is fine in Safari, FF etc. but all versions of IE tested (5.5 - 7)are affectedI've tried bgiframe and explicit z-index settings but nothing changesAny ins ...

Help with weird IE z-index using jquery corners and perciformes menu

Hi,I'm building a small site and using Dave Methvins jquery corners tostyle the dives and just added the perciformes menu (jquerysuckerfish).The menu works well in various browsers but in IE the expanded menusits behind 2 "cornered" divs.I tried adding the bgiframe plugin to the ul of ...

jQuery superfish z-index with multiple menus (FF, IE, Safari)

I'm diggen the superfish menu, with the exception of one problem(kinda a big one now that I'm into it).The problem is easier to see than a long description, so you can checkit out herehttp://zifimusic.com/testing/broken-hovers.html(the actual file I'm using is behind a closed login right ...

jQuery Superfish IE hovers z-index

I've been working on this, and had issues with FF and Safari whichhave now been resolved.In IE, I have a bunch of different superfish menus which end up beinghidden behind other menus.Here's a link to the demo errorhttp://zifimusic.com/testing/broken-hovers.htmland the css pagehttp://zifimus ...

jQuery is there a way to set the index of an element?

Let's say I have a page containing the following:<DIV class="element" ID="0"> 1</DIV><DIV class="element" ID="1"> 1</DIV><DIV class="element" ID="2"> 1</DIV><DIV class="element" ID=" ...

jQuery some $.index() prob

guys,recently I faced problem with index function, example in documentationworks perfectly but it's slightly simple. When I try to use thisfunction in more complexed way it's not working, here's what I'mtrying to:$("#organize > ul").mousedown(    func ...

jQuery Get .index and place it in some text

Hi,I got something like this: http://ischagast.nl/serialscroll/What I want is to get the item index after the title directly, what Igot right now it that you see that index after clicking the <li>.$('body.domenabled #item_news ul li').click(function () {    var inde ...

jQuery Z-index and placeholder

I'm using Jquery UI sortable, and I'm using the placeholder option.My css look like that :.holdercss { border: 1px dashed #666;z-index:1;}If I don't use z-index, I can't see the dashes :sBut now, when I'm dragging the div, the dashes are on my div.I want the placeholder to stay b ...

jQuery Getting Parent TD Index.

I am slightly stuck. Here is the scenario. I have the user click on a div. I then want to grab the Divs parent TD (in a a table) and get it's index in the Row it is in.here is my logic:   $(crosstab).find(".salitem").click(function(event){  ...

Feedback for jQuery.fn.index (#2771)

It was proposed, that jQuery.fn.index would accept a jQuery object.We're discussing whether the first element should be taken intoaccount, or all the items in the collection.http://dev.jquery.com/ticket/2771Grazie--Ariel Fleslerhttp://flesler.blogspot.com ...

jQuery superfish z-index problem with ie7

Hi,I'm trying to put a superfish menu online, and i have issues with IE 6 and 7..it's visible on this site :http://www.voyagemotion.com/but, it's in the members area.. so, i'll try to give the concerned code, here..i'm using jquery 1.2.3, hoverIntent, and then call superfish.. I ...

jQuery Query z-index problem in IE6 with 1.2.5 and 1.2.6

To reproduce the problemvar aa = jQuey("#content").css('z-index');var bb = (/^\d+$/.test($("#content").css('z-index')));1.2.6FF - aa -> auto; bb -> falseIE6 -aa -> 0 ; bb->true1.2.3FF - aa -> auto; bb -> falseIE6 -aa -> undefined ; bb->fals ...

jQuery Get index of <a> by its attribute

Hi, i have this html :<div id="menu">  <a href="#0">Menu 1</a>  <a href="#3">Menu 2</a>  <a href="#8">Menu 3</a>  <a href="#2">Menu 4</a>  <a href="#5">Men ...

jQuery UI version 1.5 slider( "moveTo", value, index ) function doesn't work?

I tried to move the slider programmably but the slider( "moveTo",value, index ) function doesn't seem to work at all. this is my code://add sliders to div$("#slider").slider({    min: 0,    max: 15,    steps: 15, ...

get(index) method does not return DOMNode in jQuery 1.2.6?!

After upgrade to v.1.2.6 i got many errors in places, where my codeworks with nodes, returned by jQuery.get(index) method.Under firebug i sow that return value in 1.2.6 is not the same as in1.2.3.Can you explain this?How to get native DOMNode object in jQuery 1.2.6? ...

jQuery jCarousel - IE7 & z-index of items versus dropdown menu

Hello,I'm having trouble with the z-index (I assume) of the list items injCarousel appearing above an activated dropdown menu in IE. Settingthe z-index of jacarousel-container to -1 causes the container todisappear completely. Upping the z-index of the curtain does nothing.You can see the proble ...