Re: [jQuery] highlight/fade the current table row - solution

2007-03-30 Thread Karl Swedberg
on for you: > > $(this).parents('tr').highlightFade(... > > Cheers, > Adam argh! Sorry, I didn't see this email before sending mine. My dumb email app didn't thread the messages right, again. Adam's solution above should work

Re: [jQuery] highlight/fade the current table row

2007-03-30 Thread Karl Swedberg
so: $(this).parents('tr:first').highlightFade... Let me know if that doesn't work for you. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 30, 2007, at 8:09 AM, Bruce MacKay wrote: Thanks Adam, That's certainly closer, but it

Re: [jQuery] Collapsing table Columns?

2007-03-29 Thread Karl Swedberg
ave jQuery. :) --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 29, 2007, at 2:52 PM, Richard Thomas wrote: Sorry I don't know the xpath/selectors that well yet. I "had" problems with just the show and hide in the past, so I had to use custo

Re: [jQuery] Collapsing table Columns?

2007-03-29 Thread Karl Swedberg
using .show() and .hide() isn't a problem. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Binding to multiple items with one call

2007-03-29 Thread Karl Swedberg
ed to enclose them in the same set of quotation marks like this: $j('#person, #assigned').blur(function() { sendok=true; alert(sendok);} ); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 29, 2007, at 12:22 PM, Shelane Enos wr

Re: [jQuery] Collapsing table Columns?

2007-03-29 Thread Karl Swedberg
If it's the third column, you could also try this: $('td:nth-child(3)').hide() If you have s in your table and need to hide them, too, you can do this: $('td:nth-child(3), th:nth-child(3)').hide() --Karl _____ Karl Swedberg www.englishrules.com www.lea

Re: [jQuery] bug found

2007-03-29 Thread Karl Swedberg
x27;m probably not explaining this well, so I'll just say that you will have more success using .appendTo(). Depending on how your DOM is structured, you might want to first create a container div after the h2 and then append your $(html) to that. --Karl _ Kar

Re: [jQuery] Any regular expression gurus here?

2007-03-29 Thread Karl Swedberg
! Thanks for that information! This is something I'll have to remember for the next dinner conversation with friends. You never know where Noam Chomsky[1] might pop up in a conversation. :) --Karl [1] http://en.wikipedia.org/wiki/Chomsky _ Karl Swedberg www.englishrule

Re: [jQuery] Selector question

2007-03-28 Thread Karl Swedberg
You might also be able to reduce this a bit, depending on your markup: $('a.selected').parents('div.linkSubMenu').show(); It seems a shame to traverse all the way down that set of nodes, only to have to traverse back up. --Karl _____ Karl Swedberg

Re: [jQuery] JQuery vs prototype

2007-03-27 Thread Karl Swedberg
should help Rails developers transition to jQuery quite easily. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jQuery Book?

2007-03-26 Thread Karl Swedberg
gives me the green light. Also, about the publication date. Right now all I can say is this summer. But this should start firming up soon, too, and I'll report more when I know more. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 26, 2007,

Re: [jQuery] utf-8 and jquery

2007-03-26 Thread Karl Swedberg
Calling Jake! Calling Ⓙⓐⓚⓔ! Come in, ʝǡǩȩ. ᎫᎪᏦᎬ, someone needs your help. :-) --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 26, 2007, at 8:34 AM, amircx wrote: my db and the page saved as utf-8... its returns me in textfield values of

Re: [jQuery] How can I get a second children element?

2007-03-26 Thread Karl Swedberg
'E').children(':eq(n)') Cheers, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 26, 2007, at 8:28 AM, MARIO MOURA wrote: Thanks Karl I tried but didnt work (I made a lot of variations) but this is working fine: $("#imagefi

Re: [jQuery] Learning jQuery, the Book

2007-03-26 Thread Karl Swedberg
On Mar 26, 2007, at 4:17 AM, agent2026 wrote: > > Hi Karl, > > Could you provide links to these posts? Haven't read them myself, > and I > can't seem to find them. > > Adam > > > > Karl Swedberg-2 wrote: >> >> In fact, if you read the

[jQuery] Learning jQuery, the Book

2007-03-25 Thread Karl Swedberg
Karl Swedberg schrieb: When that jQuery book comes out, I hear it's going to have an awesome Appendix dealing with closures. ;-) No way!! -- Jörn Zaefferer Yep, it's true, Jörn! Jonathan Chaffer wrote it. I read it. Then I said, "Wow, that's an awesome Appendix d

Re: [jQuery] How can I get a second children element?

2007-03-24 Thread Karl Swedberg
7;t have it threaded with the the replies and I thought nobody had answered yet). You're almost there. You just need to put the quotation marks around the pseudo-class as well. So, this should work: $("#imagefields").append( $(".group-image:nth-child(2)") );

Re: [jQuery] How can I get a second children element?

2007-03-24 Thread Karl Swedberg
y.com/DOM/Traversing Also, I wrote a couple entries on learningjquery.com that might help: http://www.learningjquery.com/2006/11/how-to-get-anything-you-want- part-1 http://www.learningjquery.com/2006/12/how-to-get-anything-you-want- part-2 Hope that helps. --Karl ___

Re: [jQuery] Gurus - best Javascript references?

2007-03-23 Thread Karl Swedberg
When that jQuery book comes out, I hear it's going to have an awesome Appendix dealing with closures. ;-) --Karl p.s. Look for more book details coming soon (hint, hint) _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 23, 2007, at 1:22 PM, Nathan

Re: [jQuery] Best way to find current position in DOM stack?

2007-03-23 Thread Karl Swedberg
Hi Nate, Give this one a shot: $('li').each(function(index){ if($(this).is('.selected')) { alert(index+1); }; }); --Karl _____ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 23, 2007, at 1:41 PM, Nate Cavanaugh wrote: Hi all,

Re: [jQuery] Plugin Requests

2007-03-23 Thread Karl Swedberg
Yeah, Glen is the one who wrote that. It's not in plugin form, though. I think that's the part that Glen was saying he didn't know how to do. --Karl _____ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 23, 2007, at 2:04 AM, Allan Mullan wr

Re: [jQuery] animating off screen

2007-03-20 Thread Karl Swedberg
t; the side I mightbe able to see it again. Use % to offset the div > and you > should be fine. > > Rob Just to be safe, you might want to hide the div after you've animated it out of the viewable area. Putting $(this).hide

Re: [jQuery] Event not firing inside unhidden div

2007-03-18 Thread Karl Swedberg
is made, the event handler never has to be re-bound. However, the event context is now wrong, so we compensate for this by checking what the event's target attribute is. If the target is of the right type, we perform our normal action; otherwise, we do nothing. --Karl _ Karl S

Re: [jQuery] slideDown/slideUp problems when using tables

2007-03-18 Thread Karl Swedberg
ide and show without animation whether we use fade in/out or slide down/up. I'll try to submit a bug report later today. Thanks a lot for noting those things! --Karl _____ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 17, 2007, at 9:51 PM, Kush Murod wro

Re: [jQuery] slideDown/slideUp problems when using tables

2007-03-17 Thread Karl Swedberg
/jquery.js http://test.learningjquery.com/scripts/jquery.lite.js http://test.learningjquery.com/scripts/jquery.pack.js --Karl _____ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 17, 2007, at 7:36 PM, Kush Murod wrote: Hi Karl, Your idea is great workaround, I hav

Re: [jQuery] slideDown/slideUp problems when using tables

2007-03-17 Thread Karl Swedberg
(2)').show().fadeIn('slow'); to hide and show the third table row. Also, you may find the solution in this thread helpful as well for doing the slide: http://www.nabble.com/Hiding-and-showing-table-rows- tf2585537.html#a7208756 --Karl _ Karl Swedberg www.englis

Re: [jQuery] Select in frames

2007-03-16 Thread Karl Swedberg
t. Unless, of course, I've misunderstood your question, which is entirely possible. Cheers, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] bgiframe update, sneak peak

2007-03-15 Thread Karl Swedberg
and on the mac side, TextMate has a subversion bundle built right in. It's a beautiful thing. http://macromates.com --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 15, 2007, at 10:26 AM, Aaron Heimlich wrote: On 3/15/07, agent2026 &l

Re: [jQuery] jQuery Powered Sites - Keep the Links Coming

2007-03-15 Thread Karl Swedberg
t: -em. Cheers, p.s. when José writes... the search of the sexual offenders in the maps, simply genial ... I'm sure this is a simple (Freudian?) slip of the translation dictionary, but I think a better translation would be "simply genital." :-) --Karl __

Re: [jQuery] rollodex ui

2007-03-14 Thread Karl Swedberg
ffect might be one of the tooltip plugins: http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ http://www.dave-cohen.com/node/1186 http://www.learningjquery.com/2006/10/updated-plugin-jtip --Karl _ Karl Swedberg www.englishrules.com www.learningjquer

Re: [jQuery] on resize in jquery?

2007-03-14 Thread Karl Swedberg
ously as you resize. Can't remember which does which. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] serialize form

2007-03-14 Thread Karl Swedberg
recommend using the form plugin. Its primary function is to provide ajax capabilities. I'd be glad to help if you found it confusing or if you have questions about it. I second that recommendation! The form plugin makes ajax form submission astonishingly easy. --Karl _

Re: [jQuery] Selecting only one level in DOM and no deeper

2007-03-14 Thread Karl Swedberg
ny elements that are grandchildren (or great- grandchildren, etc.) of the . --Karl _____ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 14, 2007, at 11:10 AM, Andy Matthews wrote: Use the descendant selector. Div ul li Vs Div ul > li The > says only the fi

Re: [jQuery] How to bind a hover event?

2007-03-14 Thread Karl Swedberg
hurt. :) --Karl _____ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jQuery newbies?

2007-03-14 Thread Karl Swedberg
more important than "expertise," for developers at least, are intelligence and creativity. And from everything I've seen from you on this list, your blog, and your plugins, you have a lot of both. :-) --Karl _____ Karl Swedberg www.englishrules.com www.learning

Re: [jQuery] finding y position

2007-03-13 Thread Karl Swedberg
Sure thing. You can get at the separate offsets (top and left) like so: $('#my-id').offset().top; $('#my-id').offset().left; I hope that's what you were looking for. If not, let me know. --Karl _____ Karl Swedberg www.englishrules.com www.learningjquery.c

Re: [jQuery] finding y position

2007-03-13 Thread Karl Swedberg
Hi Rolf, By far the easiest way to do that is to use the Dimensions plugin. It is amazingly accurate, even taking into account borders, padding, overflow:scroll, etc. http://docs.jquery.com/Plugins The inline documentation is quite helpful as well. --Karl _ Karl Swedberg

Re: [jQuery] Fastest selector for searching a single table column?

2007-03-13 Thread Karl Swedberg
#x27;t be of more help. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 12, 2007, at 11:11 PM, Daemach wrote: Thanks Karl - That suggestion works for applying an attribute to an entire column of a table, but I need to apply a custom selector w

Re: [jQuery] Hide All Except One (tabs)

2007-03-12 Thread Karl Swedberg
Hi Charles, This bug has been fixed. If you download a nightly build, it should work fine using .attr('href') http://docs.jquery.com/Downloading_jQuery#Nightly_Builds --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 12, 2007, at 7:54 P

Re: [jQuery] Fastest selector for searching a single table column?

2007-03-12 Thread Karl Swedberg
Dave Methvin answered this question back in October and then again in February: http://www.nabble.com/Re%3A-highlight-table-column-on-hover- p7074977.html Hope that helps. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 12, 2007, at 3:40 PM

Re: [jQuery] interface accordion

2007-03-09 Thread Karl Swedberg
om/2006/09/slicker-show-and-hide --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Is there a CSS doctor in the house?

2007-03-09 Thread Karl Swedberg
Abel, send me the files and I'll post them at http:// test.learningjquery.com so that people here can have a go at them. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 9, 2007, at 5:02 AM, Abel Tamayo wrote: The problem is that I don't h

Re: [jQuery] finding an image by src attribute

2007-03-07 Thread Karl Swedberg
Hi Paul, This should do it: $('[EMAIL PROTECTED]') --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 6, 2007, at 1:34 PM, Paul wrote: This is probably easy, but it’s my first attempt so I’m not sure where to begin… I have a series

Re: [jQuery] select all images under a div, and change their widths proportionally?

2007-03-06 Thread Karl Swedberg
his).width() > 250) { $(this).css('width', '250px'); } }); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 6, 2007, at 10:54 PM, Alp Guneysel wrote: wow, that was stupid of me... thanks. On 3/7/07, Chris Domig

Re: [jQuery] Auto Vertical Scroller newsBlock div

2007-03-05 Thread Karl Swedberg
there. His version looks much prettier than mine. :) Look at the bottom right box: http://glenlipka.kokopop.com/jQuery/intuit.com/ --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 5, 2007, at 5:56 PM, {js}sTyler wrote: Hi All, Anyone have any tips fo

Re: [jQuery] How to find a div with a class ending with a string?

2007-03-05 Thread Karl Swedberg
element whose "foo" attribute value ends exactly with the string "bar" * [EMAIL PROTECTED] an E element whose "foo" attribute value contains the substring "bar" So, in your case, you could do something like this: $('[EMAIL PROTECTED]', this)

Re: [jQuery] onClickOut?

2007-03-05 Thread Karl Swedberg
Thanks for the clarification, John! --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 5, 2007, at 10:55 AM, John Resig wrote: .one() is not deprecated. With 1.1 we simply have an alternative to .one() using the .unbind() function (allowing the event

Re: [jQuery] onclick functionality

2007-03-05 Thread Karl Swedberg
{ $(this).next('div.answer').slideToggle('fast'); }); }); I used .slideToggle('fast') because I like the way it looks, but you could replace that with a regular .toggle() --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On

Re: [jQuery] $(node).hasClass(...) function

2007-03-04 Thread Karl Swedberg
sed to having .hasClass(), but I really love the flexibility of .is(). --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 4, 2007, at 10:07 AM, Sébastien Pierre wrote: Hi, This is not very obvious, and I guess some people won't notice that &q

Re: [jQuery] onClickOut?

2007-03-04 Thread Karl Swedberg
Hey Yehuda, .one('event',fn) has not been deprecated, as far as I know. Only the individual .oneEvent(fn) methods have. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 4, 2007, at 8:21 AM, Yehuda Katz wrote: one has been deprecated

Re: [jQuery] How to block a function while another finishes? (and pause!)

2007-03-03 Thread Karl Swedberg
l(stuff) .animate({opacity: 1}, 2000).slideDown("slow"); Cheers, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Animate() : background color

2007-03-02 Thread Karl Swedberg
ce plugin suite (and ifx.js in particular): http://interface.eyecon.ro http://interface.eyecon.ro/docs/animate Also, you don't need to add the easing parameter if you want it to be the default, "linear." --Karl _ Karl Swedberg www.englishrules.com www.lear

Re: [jQuery] nth-child selector

2007-02-28 Thread Karl Swedberg
Hi Dan, jQuery doesn't support the ":nth-child(an + b)", only ":nth-child(n)" To select every odd item except the first two items, try this instead: $('#search-results div:nth-child("odd"):gt(0)') --Karl _ Karl Swedberg www.engl

Re: [jQuery] Is there a jQuery way to do an innerWrap?

2007-02-27 Thread Karl Swedberg
().append(o.el).filter(o.id).html(c); }); } $("p").wrapInner({el: 'http://jquery.com";>', id: 'a'}); Before: I will become a link to jQuery.com After: http://jquery.com";>I will become a link to jQuery.coma> --Karl _ Karl Swe

Re: [jQuery] Help with animate()

2007-02-27 Thread Karl Swedberg
tatic" has taken on new meaning for me. :) --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 27, 2007, at 12:49 AM, Karl Rudd wrote: Make sure the element you're trying to move (the "div" in this case) has either "position: relativ

Re: [jQuery] jQuery GreaseMonkey-detection script modified (no remote calls)

2007-02-22 Thread Karl Swedberg
that works for me. Thanks, Kenneth! --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 23, 2007, at 1:22 AM, Kenneth wrote: Greetings all, I have modified the neat GreaseMonkey script by Paul Bakaus. I have removed the 2 remote calls made by the

Re: [jQuery] Flickering problem with Interface Slide in FF2

2007-02-22 Thread Karl Swedberg
Yes, thanks, Stefan. And I hope I didn't cause any confusion, either! --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 22, 2007, at 5:33 PM, Brandon Aaron wrote: Oh okay. Thanks for clearing that up. Hope I didn't cause any

Re: [jQuery] Flickering problem with Interface Slide in FF2

2007-02-22 Thread Karl Swedberg
Hi Jim, this bug has been fixed in the jQuery core (post 1.1.1). You can get a copy of the most recent nightly build here: http://docs.jquery.com/Downloading_jQuery#Nightly_Builds --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 22, 2007, at 3:02

Re: [jQuery] Reference to the last DIV in a group?

2007-02-22 Thread Karl Swedberg
Try this: $('div.sidebarToDo:last') --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 22, 2007, at 12:07 PM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: Hello, I have a main div, with id= "todoList", and wi

Re: [jQuery] appending text nodes

2007-02-22 Thread Karl Swedberg
d of $.text(item) in the append string, just use item. So: $(this).parents("div.sidebarToDo").find("td.sidebarText").empty ().append("\" value=\"" + item + "\">"); --Karl _ Karl Swedberg www.englishrules.com www.lea

Re: [jQuery] specifying count for rss feed display with each function

2007-02-21 Thread Karl Swedberg
quot; because I'm kind of dense, and it helps to remind me what it is). --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 21, 2007, at 3:11 PM, john smith wrote: Sorry all Im still a newb to jquery. Ive been messing around with using jquery for gr

Re: [jQuery] How to get the ID of the parent node?

2007-02-21 Thread Karl Swedberg
arents("div.sidebarToDo")[0].id + " id:" + divId); $(this).click = function() { $('#' + divId).remove(); }; }); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 21, 2007, at 11:16 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrot

Re: [jQuery] Problem to add an jQuey- command to a loop

2007-02-21 Thread Karl Swedberg
Even though your email message is blank, I'm going to go out on a limb here and suggest using $('selector').each(index) {}; for the loop. Cheers, --Karl _____ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 21, 2007, at 8:48 AM,

Re: [jQuery] Loop Checkbox Action Question

2007-02-21 Thread Karl Swedberg
d set of elements. For them to use the animation, a parameter must be inlcluded. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 21, 2007, at 7:01 AM, Gorkfu wrote: Thx, that does clean it up a lot. =) As for normal being default for show and hide, I

Re: [jQuery] accordion table, instead of an accordion list/menu?

2007-02-21 Thread Karl Swedberg
ethod works, please post the solution to the list! :) --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 20, 2007, at 11:25 PM, rolfsf wrote: Is there a way around that? Can you get simple animation to work on table rows? I can live with a simple

Re: [jQuery] accordion table, instead of an accordion list/menu?

2007-02-20 Thread Karl Swedberg
Rolf, I think the strange results occur in Firefox because it wants all elements to have display:table-row but the .slideX() and .show/hide(speed), etc. methods use display:block --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 20, 2007, at 9:09

Re: [jQuery] Getting parent nodes

2007-02-20 Thread Karl Swedberg
On Feb 20, 2007, at 6:46 PM, Blair Mitchelmore wrote: $(this).parent("div"); -blair Blair, You'll need to add an "s" to ".parent" to make that work. $(this).parents('div'); That will work if you don't have nested DIVs. --Karl __

Re: [jQuery] Getting parent nodes

2007-02-20 Thread Karl Swedberg
Hi Dave, Not sure if this has been answered yet, but here is how I would do it: $(this).parents('#inner') Or, if you don't know what the DIV will be called, you could try it this way: $(this).parents('div:eq(0)') --Karl _____ Karl Swed

Re: [jQuery] How to made 'dd' hide first...

2007-02-20 Thread Karl Swedberg
').hide() line hides all of the elements when the DOM is ready. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 20, 2007, at 12:10 PM, Rick Faircloth wrote: Hi, all… When I try this… $(document).ready(function() { $('dt.toggle').cs

Re: [jQuery] collapsible menus ~ pixel carnage

2007-02-20 Thread Karl Swedberg
Thanks again for weighing in, Sam! Your suggestion makes more sense, since it "degrades" better. Cheers, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 20, 2007, at 9:21 AM, Sam Collett wrote: On 20/02/07, Karl Swedberg <[EMAIL PROT

Re: [jQuery] Select elements without specific children

2007-02-20 Thread Karl Swedberg
rks around the selector for the :not pseudo-class. Cheers, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 20, 2007, at 9:19 AM, agent2026 wrote: Hi all, I want to select all line items without child a tags with a class of 'on'. I can s

Re: [jQuery] Hide/show question with dl/dt/dd - fixed!

2007-02-20 Thread Karl Swedberg
Heh. When you find an answer, let me know, because it happens to me all the time. :) Cheers, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com Bruce At 10:50 p.m. 20/02/2007, you wrote: Hi folks, I have a simple faq application with the questi

Re: [jQuery] collapsible menus ~ pixel carnage

2007-02-20 Thread Karl Swedberg
my most recent tutorial: http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for- anything Cheers, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 20, 2007, at 2:31 AM, fatjoez wrote: > > Hey. > > Dont worry about my cod

Re: [jQuery] Sites Powered by jQuery

2007-02-20 Thread Karl Swedberg
excellent! thanks, Larry. that's sure a long list of sites to wade through. should be fun checking them out. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 19, 2007, at 10:41 PM, Larry Garfield wrote: Oh yes, there's a whole forum fo

Re: [jQuery] collapsible menus ~ pixel carnage

2007-02-19 Thread Karl Swedberg
Hey there, I'm having a hard time following your HTML because it looks like something (Nabble?) is stripping out your tags. Maybe you could try using character entities instead (< and >) ? --Karl _____ Karl Swedberg www.englishrules.com www.learningjquery.com On F

Re: [jQuery] collapsible menus ~ pixel carnage

2007-02-19 Thread Karl Swedberg
ocument).ready(function() { $('#Menu ul').hide(); $('#Menu h3 > a').click(function() { $(this).parent().next('ul').slideToggle('fast'); return false; }); }); Hope that helps. Cheers, --Karl _ Karl Swedberg www.englishrules.com

Re: [jQuery] collapsible menus ~ pixel carnage

2007-02-19 Thread Karl Swedberg
one more thing... You might find my tutorial at learningjquery.com helpful: http://www.learningjquery.com/2007/02/more-showing-more-hiding --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 19, 2007, at 8:22 PM, fatjoez wrote: hmm. for now i

Re: [jQuery] Id of a textarea element

2007-02-19 Thread Karl Swedberg
preceded with a space or a tagname. > >> would only select the following element: >> >> >> >> >> -- Klaus >> Of course, the CSS parser for IE 6 has a terrible time dealing with references to #id.class {} and .class1.class2 {}. It ignores #id and .cl

Re: [jQuery] Smooth Scrolling for same-page links

2007-02-19 Thread Karl Swedberg
t || $("[EMAIL PROTECTED]" + this.hash.slice(1) +']'); if (target.size()) { target.ScrollTo(400); return false; } }); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Plugin updates

2007-02-19 Thread Karl Swedberg
-Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 19, 2007, at 7:15 AM, Gerry Tucker wrote: Hi all, Would it be better on the plugins page if all authors could add an update date so it's obvious if/when a plugin has been updated? Currently I'm b

Re: [jQuery] Smooth Scrolling for same-page links

2007-02-18 Thread Karl Swedberg
Even better! Thanks, Klaus! --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 18, 2007, at 10:05 AM, Klaus Hartl wrote: Are you aware of the pathname and host properties? If you use it, you can cut down the code further: $('[EMAIL PROT

Re: [jQuery] Smooth Scrolling for same-page links

2007-02-18 Thread Karl Swedberg
orks and slice it up the hard way. Cheers, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Smooth Scrolling for same-page links

2007-02-17 Thread Karl Swedberg
On Feb 17, 2007, at 4:36 PM, Joel Birch wrote: > On 18/02/2007, at 6:13 AM, Karl Swedberg wrote: >> ok, now that the smooth scrolling has Klaus's blessing :) ... I >> thought I'd share some code I wrote to make it happen for all same- >> page links. It takes into ac

[jQuery] Smooth Scrolling for same-page links

2007-02-17 Thread Karl Swedberg
return false; } else { $linkDest = $("[EMAIL PROTECTED]" + linkHash.slice(1) +']'); if ($linkDest.length > 0) { $linkDest.ScrollTo(400); return false; } } } }); Hope that's helpful to

Re: [jQuery] jQuery Powered Sites - Keep the Links Coming

2007-02-17 Thread Karl Swedberg
Hey Toby, Nice site! I wrote an entry on Learning jQuery about blurring links: http://www.learningjquery.com/2006/10/quick-tip-blur-links Hope that helps. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 17, 2007, at 12:15 PM, Toby wrote: I really

Re: [jQuery] jQuery Powered Sites - Keep the Links Coming

2007-02-17 Thread Karl Swedberg
ite, it looks through the main content area to see if there is more than one element. If so, it builds a page-content list based on those, and links to each one. If not, it tries to find more than one element (which is what I use for the tutorial subheadings) and uses those for its p

Re: [jQuery] jQuery Powered Sites - Keep the Links Coming

2007-02-17 Thread Karl Swedberg
uch better than the default "quick jump" because of the "disorienting sudden change" that you mention. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Parent Selection Problem

2007-02-15 Thread Karl Swedberg
he alert read "parent1" When I clicked the second, the alert read "parent2" If that isn't what you're expecting, maybe I'm misunderstanding what you're trying to do. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On F

Re: [jQuery] Parent Selection Problem

2007-02-15 Thread Karl Swedberg
uld be able to do it this way: var parent = $(this).parents('div.parent'); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 15, 2007, at 11:01 AM, Mahadewa wrote: Hi all, I've got the following problem

Re: [jQuery] getting children using XPath in IE

2007-02-15 Thread Karl Swedberg
Hi Matthew, Not sure, haven't tried this, but the problem might be that you have two slashes before xmlelement. Is the document root? If so, try it with only one beginning slash: $("/xmlelement") --Karl _____ Karl Swedberg www.englishrules.com www.learningj

Re: [jQuery] Question about .each()

2007-02-15 Thread Karl Swedberg
Ahh, I just noticed you'll need to move the semicolon outside the alert, too. Instead of... $(this).click(function(){ alert(this.id;) }); do this... $(this).click(function(){ alert(this.id); }); --Karl _ Karl Swedberg www.englishrules.com www.learningjquer

Re: [jQuery] Question about .each()

2007-02-15 Thread Karl Swedberg
Hi Chris, When you chain jQuery methods to "this", you need to encapsulate "this" in the jQuery constructor -- $(). Try it this way, and see if it works: $(".MyButton").each(function(){ $(this).click(function(){ alert(this.id;) }); }); --Karl _

Re: [jQuery] get nth item with jquery still usable - not get()

2007-02-14 Thread Karl Swedberg
hi Matthew, there are a few ways to do this. Let's say, for example, you're trying to get the 4th div with class="myclass": $('div.myclass:eq(3)') $('div.myclass:nth(3)') $('div.myclass').eq(3) All of those would do it. Cheers, --Karl __

Re: [jQuery] $.show() improvement

2007-02-14 Thread Karl Swedberg
x27;slow', 'inline') ? Or would that require too much code rewriting? Would have to consider the callback function too. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] animate only work at the first time?

2007-02-14 Thread Karl Swedberg
Hi Howard, Not sure if this will solve your problem, but opacity values range from 0 to 1, not 0 to 100. Try changing the value of your second opacity to .999 or 1.0 and see if that works for you. Cheers, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com

Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-13 Thread Karl Swedberg
NaN parseInt("32px") returns 32 Heh. I was wondering about that. You saved me the trouble of having to test it. :) Cheers, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discus

Re: [jQuery] Some jQuery tips and tricks

2007-02-13 Thread Karl Swedberg
cument).ready(function() { $('#wrapper p').hide() $('#wrapper h2') .filter(':even') .css('backgroundColor', '#ef') .end() .filter(':odd') .css('backgroundColor', '#ef') .end() .css({c

Re: [jQuery] Which file to download from SVN?

2007-02-13 Thread Karl Swedberg
in them: http://test.learningjquery.com/scripts/jquery.js http://test.learningjquery.com/scripts/jquery.lite.js http://test.learningjquery.com/scripts/jquery.pack.js Cheers, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 13, 2007, at 7:16 AM, Seb

Re: [jQuery] Site using jQuery

2007-02-12 Thread Karl Swedberg
Right on the home page, looks like they've got some nice jQuery tabs going (TurboTax, QuickBooks, Quicken) and there's a Quick Links slideDown() at the top. Very cool, Glen! Glad to see it up there. Cheers, --Karl _ Karl Swedberg www.englishrules.com www.learning

Re: [jQuery] How to animate background-color ?

2007-02-12 Thread Karl Swedberg
x27;olive' }, 'slow' ); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 9, 2007, at 5:37 AM, Mahadewa wrote: Hi guys, I was wondering if anybody could help with this. I am trying to do animate on the backgound-color

Re: [jQuery] Checking for a class?

2007-02-11 Thread Karl Swedberg
D'oh! Why not indeed! Thanks, Christof. :) --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 11, 2007, at 3:22 PM, Christof Donat wrote: Hi, You could also use one of the attribute selectors to filter a set of matched elements. If you don&#

  1   2   3   4   >