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
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',
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
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:
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
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
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
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 () {
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
Subject line says 1.1.2. Thought this was a parody post.. :)
=P
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
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
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
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 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
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
: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
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
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
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 =
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
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
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
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?
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
Ack, nevermind that last comment about mousemove. I looked at the
wrong even handler.
David
Hmm, why do my posts not go through?
http://www.exfer.net/test/jquery/tabslide/
David
, 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
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
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
, 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
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
32 matches
Mail list logo