[jQuery] Re: getting element number?

2008-02-05 Thread David Serduke
untested but something like this should work using closure: $('#' + self.options.auto_complete_id + ' li').each(function (i) { $(this).bind('mouseover', function() { if (i == 3) { //code } }); }); David

[jQuery] Re: Parsing XML using jQuery

2008-01-28 Thread David Serduke
Actually if it doesn't have to be part of the DOM assuming you are passing in a context as the second parameter of $() which the original author is. I don't use the xpath plugin so I'm not sure about that but the second attempt you said failed worked for me. I got 3 alert boxes with '1', '2',

[jQuery] Re: Is there a .new() ?

2008-01-26 Thread David Serduke
done the tests. David On Jan 26, 7:17 am, Karl Swedberg [EMAIL PROTECTED] wrote: On Jan 25, 2008, at 10:13 PM, David Serduke wrote: How about $(input type='hidden'/).attr({id:myid, name:myname}).val(foo).appendTo(this); I think that would work although the way you have it would

[jQuery] Re: howto properly rebind hover

2008-01-26 Thread David Serduke
Looks like you already figured it out but yes, with 1.2.2 hover now binds mouseenter and mouseleave. Also unbind('hover') shouldn't do anything since hover() is a helper function not an actual event so that part shouldn't be necessary. David On Jan 25, 6:18 pm, h0tzen [EMAIL PROTECTED] wrote:

[jQuery] Re: slideToggle weirdness - also Easing question

2008-01-26 Thread David Serduke
On Jan 25, 3:27 pm, Rus Miller [EMAIL PROTECTED] wrote: 1. JQ 1.2.2 Interface.SlideToggleUp: After the SlideToggleUp event, Firebug started logging a string of errors and the script crashed in both FF and IE: this.options.curAnim has no properties

[jQuery] Re: slideToggle weirdness - also Easing question

2008-01-26 Thread David Serduke
I've never used any of them so I don't know their state but I know people have been adding fx here: http://dev.jquery.com/browser/trunk/fx Just FYI. :) David

[jQuery] Re: Is there a .new() ?

2008-01-25 Thread David Serduke
How about $(input type='hidden'/).attr({id:myid, name:myname}).val(foo).appendTo(this); I think that would work although the way you have it would be faster. Most elements you could just say $(div/) to create a new one but in IE the input requires the type be set. So you have to specify the

[jQuery] Re: setTimeout / clearTimeout question...

2008-01-23 Thread David Serduke
How about using closure like this? function addHoverHide(linkClass, layerId) { var t; $(. + linkClass).hover(function() { clearTimeout(t) $(# + layerId).show(); }, function() { t = setTimeout(function() {$(# + layerId).hide()}, 2000); }); } $(document).ready(function () {

[jQuery] Re: clone() problem in IE7

2008-01-22 Thread David Serduke
Check out this ticket and the proposed patch to see if it fixes your problem. http://dev.jquery.com/ticket/2184 David On Jan 22, 4:36 pm, Jason Davies [EMAIL PROTECTED] wrote: Does anyone know of a workaround? Jason On Jan 21, 3:37 pm, Leu [EMAIL PROTECTED] wrote: Yes there seems to

[jQuery] Re: jQuery 1.2.2 Released: Happy 2nd Birthday!

2008-01-15 Thread David Serduke
Subject line says 1.1.2. Thought this was a parody post.. :) =P

[jQuery] Re: New jQuery release, but what about documentation

2007-12-17 Thread David Serduke
Documentation is a great place to get started. That is exactly where I started. When I wanted to learn more about jQuery and also help out, I started documenting and ended up writing many of the example demos that are now in the wiki while learning quite a bit about how jQuery worked. Just

[jQuery] Re: Clone dont work. Why?

2007-12-15 Thread David Serduke
At least one error is here: var e = $(this).parent()[0]; should be just var e = $(this).parent(); You were converting the jQuery object to a DOM object then trying to run jQuery methods on it. David On Dec 15, 2:04 am, Antonio Jozzolino [EMAIL PROTECTED] wrote: div class=add-more

[jQuery] Re: Is it possible get the data from ajaxSuccess?

2007-12-14 Thread David Serduke
On Dec 14, 1:06 pm, Richard D. Worth [EMAIL PROTECTED] wrote: $(#target).ajaxSuccess(function(request, settings) { if (check1 == something) { $(this).append(check1); } }); I believe the first parameter for ajaxSuccess functions is the event. Then comes the request and settings. So

[jQuery] Re: loading xml in IE6/IE7 on a CD

2007-12-13 Thread David Serduke
I think the problem is when loading from a local file the Content-Type isn't set to text/xml so IE doesn't bother to parse it. One possible work around is to load it as text in IE and then parse it yourself like: $.ajax({ url: data.xml, async: false,

[jQuery] Re: xml parsing bug or feature?

2007-12-06 Thread David Serduke
jQuery only takes two parameters on $(). (the second one is optional) $(expression, context) http://docs.jquery.com/Core/jQuery#expressioncontext so your first attempt had 3 parameters. The last one was ignored. The second one became the context so jQuery was looking for a tag item in the

[jQuery] Re: hover and className

2007-12-05 Thread David Serduke
Sorry to butt in but I was wondering if this was a weird jQuery bug so looked in to it. What I found was it appears the way you are changing the className is the problem. When I took out that part and replaced it with addClass and removeClass it seemed better. I took some liberties with your

[jQuery] Re: how to append() to a textarea

2007-12-04 Thread David Serduke
:11 pm, David Serduke [EMAIL PROTECTED] wrote: I'd try $(textarea).val($(textarea).val() + txt); David On Dec 3, 4:27 pm, cfdvlpr [EMAIL PROTECTED] wrote: append() doesn't seem to work. I also tried this function that was mentioned in another thread here by John

[jQuery] Re: how to append() to a textarea

2007-12-03 Thread David Serduke
I'd try $(textarea).val($(textarea).val() + txt); David On Dec 3, 4:27 pm, cfdvlpr [EMAIL PROTECTED] wrote: append() doesn't seem to work. I also tried this function that was mentioned in another thread here by John and that doesn't seem to work for me either. Anyone else got this to

[jQuery] Re: jQuery.extend not working for function as target,is it a bug?

2007-11-30 Thread David Serduke
Ah the beauty of bug fixes. Fix one thing and break another. This was a change from changeset [3841]. There were some issues with deep copy and this was one of the changes to prevent the problems. The problem you are having should be fixed in [3985]. Sorry bout that. David

[jQuery] Re: Detecting elements with click handlers

2007-11-27 Thread David Serduke
This won't work for every javascript library of course but for jQuery I believe you can use the internal .data() functions to find the handlers. http://docs.jquery.com/Internals/jQuery.data#elem var elem = $(a).get(0); var handlers = jQuery.data(elem, events) || {}; var clicks =

[jQuery] Re: Problems with multiple animations and timeouts

2007-11-13 Thread David Serduke
I'm not positive this is the problem but try putting a var in front of the nextTarget assignment. Right now it looks like a global variable in the code fragment you posted. var nextTarget = targetItem.next(); David On Nov 13, 8:18 am, serializer [EMAIL PROTECTED] wrote: Hi, I've set up a

[jQuery] Re: OT: Somebody's spam filter is doing me wrong

2007-11-13 Thread David Serduke
Getting spammed by anti-spam software. What's the world coming to? So can you mark it as spam to make it go away? Of course it could potentially drag down the whole internet as an infinite loop of anti- spam messages get sent back and forth! Or not. :) David

[jQuery] Re: Mystery jquery attribute and behavior...

2007-10-23 Thread David Serduke
Perhaps try :nth-child(even) instead. http://docs.jquery.com/Selectors/nthChild Look at the demo on the examples page to see how it works compared to :even David

[jQuery] Re: queue, dequeue, stop, and the endless mouseovers

2007-10-17 Thread David Serduke
No problem at all On Oct 16, 7:54 pm, Karl Swedberg [EMAIL PROTECTED] wrote: I think I'm going to write up a quick entry about what I came up with. Mind if I link to yours as an alternative?

[jQuery] Re: queue, dequeue, stop, and the endless mouseovers

2007-10-16 Thread David Serduke
I suggest you change Oliver's check to see if ANY of the panels are animating. if ($this.parent().siblings().children().filter(':animated').length == 0) { I think that will give similar functionality to the original. Not that it is ideal since in the mootools version you can move over a panel

[jQuery] Re: queue, dequeue, stop, and the endless mouseovers

2007-10-16 Thread David Serduke
Ack, nevermind that last comment about mousemove. I looked at the wrong even handler. David

[jQuery] Re: queue, dequeue, stop, and the endless mouseovers

2007-10-16 Thread David Serduke
Hmm, why do my posts not go through? http://www.exfer.net/test/jquery/tabslide/ David

[jQuery] Re: queue, dequeue, stop, and the endless mouseovers

2007-10-16 Thread David Serduke
, David Serduke wrote: I suggest you change Oliver's check to see if ANY of the panels are animating. if ($this.parent().siblings().children().filter(':animated').length == 0) { I think that will give similar functionality to the original. Not that it is ideal since in the mootools

[jQuery] Re: queue, dequeue, stop, and the endless mouseovers

2007-10-16 Thread David Serduke
Hmm, this google group seems to be eating my messages from the browser client so now I'll try emailing to it and see if that is any different. Anyway, see if this is more like the design you were interested in. http://www.exfer.net/test/jquery/tabslide/ David P.S. Beware at some point my 6

[jQuery] Re: queue, dequeue, stop, and the endless mouseovers

2007-10-16 Thread David Serduke
Hmm, ok, I'll try this google group in Firefox once. I've posted 4- ish posts today that haven't gone through. Anyway as I said in one of them, I took some liberties with the code, but is this more like what you were going after? http://www.exfer.net/test/jquery/tabslide/ David

[jQuery] Re: queue, dequeue, stop, and the endless mouseovers

2007-10-16 Thread David Serduke
, etc.), but I haven't found it yet. --Karl On Oct 16, 2007, at 11:21 AM, David Serduke wrote: I suggest you change Oliver's check to see if ANY of the panels are animating. if ($this.parent().siblings().children().filter(':animated').length == 0) { I think that will give

[jQuery] Re: 1.2 bug? $(window).height(); always the same as $('body').height();

2007-10-02 Thread David Serduke
Hmm my first comment from a half hour ago never showed up. Anyway, there was some discussion on this topic here: http://groups.google.com/group/jquery-dev/browse_thread/thread/1884fa6ed308f40/d44fee44ffb4028f David On Oct 2, 2:33 pm, mundizzle [EMAIL PROTECTED] wrote: I have a page with