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

2007-03-30 Thread Karl Swedberg
... 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's not quite there - at least on my page. $(this).parent('tr

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

2007-03-30 Thread Karl Swedberg
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 just fine for most situations. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com

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.englishrules.com

Re: [jQuery] bug found

2007-03-29 Thread Karl Swedberg
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 _ Karl Swedberg

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 ths 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.learningjquery.com On Mar

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

2007-03-29 Thread Karl Swedberg
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 wrote: This doesn't seem

Re: [jQuery] Collapsing table Columns?

2007-03-29 Thread Karl Swedberg
a problem. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Collapsing table Columns?

2007-03-29 Thread Karl Swedberg
. :) --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 custom code like the following

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 www.englishrules.com

Re: [jQuery] JQuery vs prototype

2007-03-27 Thread Karl Swedberg
that 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] 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 post to this list about AJAX and Events: Handling the Handlers and Scoping

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

Re: [jQuery] jQuery Book?

2007-03-26 Thread Karl Swedberg
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, at 9:20 AM

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

2007-03-26 Thread Karl Swedberg
_ 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: $(#imagefields).append( $(.group-image).children().get(3) ); Thanks for help

[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 dealing with closures

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

2007-03-24 Thread Karl Swedberg
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 _ Karl Swedberg

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

2007-03-24 Thread Karl Swedberg
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)) ); --Karl _ Karl Swedberg www.englishrules.com

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 wrote: Ummm

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, I'm looking to find

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 Young

Re: [jQuery] animating off screen

2007-03-20 Thread Karl Swedberg
you've animated it out of the viewable area. Putting $(this).hide() in the callback of .animate() should do the trick. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com

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

2007-03-18 Thread Karl Swedberg
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 wrote: Hi Karl, Thanks

Re: [jQuery] Event not firing inside unhidden div

2007-03-18 Thread Karl Swedberg
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 Swedberg www.englishrules.com www.learningjquery.com On Mar 18, 2007, at 2:24 PM, Kim Johnson wrote: I have a div which

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

2007-03-17 Thread Karl Swedberg
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.englishrules.com www.learningjquery.com On Mar 17, 2007, at 11:11 AM

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

2007-03-17 Thread Karl Swedberg
://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 have tried it http

Re: [jQuery] Select in frames

2007-03-16 Thread Karl Swedberg
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] jQuery Powered Sites - Keep the Links Coming

2007-03-15 Thread Karl Swedberg
. 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 _ Karl Swedberg

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 [EMAIL

Re: [jQuery] jQuery newbies?

2007-03-14 Thread Karl Swedberg
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.learningjquery.com On Mar 13

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

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

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

2007-03-14 Thread Karl Swedberg
that are grandchildren (or great- grandchildren, etc.) of the ul. --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 first instance of that object

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 _ Karl

Re: [jQuery] on resize in jquery?

2007-03-14 Thread Karl Swedberg
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] rollodex ui

2007-03-14 Thread Karl Swedberg
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.learningjquery.com

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

2007-03-13 Thread Karl Swedberg
_ 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 which means looping over the rows

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] 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.com On Mar 13, 2007

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] 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 PM, Charles

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 have server

Re: [jQuery] interface accordion

2007-03-09 Thread Karl Swedberg
_ Karl Swedberg www.englishrules.com www.learningjquery.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

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 of images

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

2007-03-06 Thread Karl Swedberg
() 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 Domigan [EMAIL PROTECTED] wrote: Try: $(#blogreviews

Re: [jQuery] onclick functionality

2007-03-05 Thread Karl Swedberg
').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 Mar 5, 2007, at 8:32 AM, Stella Power wrote: Hi, I'm new

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] How to find a div with a class ending with a string?

2007-03-05 Thread Karl Swedberg
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) Hope that helps. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 5, 2007

Re: [jQuery] Auto Vertical Scroller newsBlock div

2007-03-05 Thread Karl Swedberg
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 for me to do

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 since 1.1

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

2007-03-04 Thread Karl Swedberg
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 is offers the same functionalities as a potential hasClass... from a developer

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

2007-03-03 Thread Karl Swedberg
); 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
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.learningjquery.com On Mar 2, 2007, at 12:23 PM, Alexandre

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.englishrules.com www.learningjquery.com On Feb 28

Re: [jQuery] Help with animate()

2007-02-27 Thread Karl Swedberg
_ 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: relative or position: absolute. Karl Rudd On 2/27/07, David [EMAIL PROTECTED] wrote

Re: [jQuery] appending text nodes

2007-02-22 Thread Karl Swedberg
) in the append string, just use item. So: $(this).parents(div.sidebarToDo).find(td.sidebarText).empty ().append(input type=\text\ size=\10\ class=\editableTDItem \ value=\ + item + \); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 22, 2007, at 11:06

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 within it, a number of DIVs, all

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] 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 confusion

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

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

2007-02-21 Thread Karl Swedberg
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 show

Re: [jQuery] Loop Checkbox Action Question

2007-02-21 Thread Karl Swedberg
. 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 think

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

2007-02-21 Thread Karl Swedberg
. This should work, too: $('#todoList a.deleteTDItem').each(function(index) { var divId = $(this).parents(div.sidebarToDo)[0].id alert($(this).parents(div.sidebarToDo)[0].id + id: + divId); $(this).click = function() { $('#' + divId).remove(); }; }); --Karl _ Karl Swedberg

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

2007-02-21 Thread Karl Swedberg
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 grabbing and displaying rss feed info. A lot less code then using

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 for it: http

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

2007-02-20 Thread Karl Swedberg
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 question within a dt tag and the corresponding answer within a dd tag. I had hoped

Re: [jQuery] Select elements without specific children

2007-02-20 Thread Karl Swedberg
. 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 select the line items with the a tags: $('li.expandable[a.on

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 PROTECTED] wrote: Ah

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

2007-02-20 Thread Karl Swedberg
_ 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').css(cursor,hand).bind(click, function(){ $(this).next('dd').slideToggle(800

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 Swedberg www.englishrules.com

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 _ Karl Swedberg www.englishrules.com

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 tr 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] Plugin updates

2007-02-19 Thread Karl Swedberg
_ 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 browsing all

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

2007-02-19 Thread Karl Swedberg
) +']'); 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] Id of a textarea element

2007-02-19 Thread Karl Swedberg
_ 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-18 Thread Karl Swedberg
_ 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-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 PROTECTED

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

2007-02-17 Thread Karl Swedberg
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] jQuery Powered Sites - Keep the Links Coming

2007-02-17 Thread Karl Swedberg
if there is more than one h2 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 h4 element (which is what I use for the tutorial subheadings) and uses those for its page contents. --Karl _ Karl Swedberg

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

[jQuery] Smooth Scrolling for same-page links

2007-02-17 Thread Karl Swedberg
) +']'); if ($linkDest.length 0) { $linkDest.ScrollTo(400); return false; } } } }); Hope that's helpful to someone. Cheers, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com

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 account the difference in the way

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.learningjquery.com

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 xmlelement the document root? If so, try it with only one beginning slash: $(/xmlelement) --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com

Re: [jQuery] Parent Selection Problem

2007-02-15 Thread Karl Swedberg
: 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 ... Let's say I have the following html: div class=parent id

Re: [jQuery] Parent Selection Problem

2007-02-15 Thread Karl Swedberg
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 Feb 15, 2007, at 12:02 PM, Mahadewa wrote: This doesn't do it for me. I got

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] 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 _ Karl Swedberg www.englishrules.com

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] Some jQuery tips and tricks

2007-02-13 Thread Karl Swedberg
: 'hand', cursor: 'pointer', color: '#fff'}) .click(function() { $(this).siblings('p').slideToggle('slow'); }); }); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 13, 2:23 pm, Dmitrii Dimandt [EMAIL PROTECTED] wrote: I've started collecting

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

2007-02-13 Thread Karl Swedberg
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 discuss@jquery.com http://jquery.com/discuss/

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

2007-02-12 Thread Karl Swedberg
' ); --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 of a div, but I got an error message saying

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.learningjquery.com

Re: [jQuery] toggle(fn, fn) does not execute

2007-02-11 Thread Karl Swedberg
').bind('click', function() { $(this).next().toggle(); }); }); Hope that helps. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 11, 2007, at 8:02 AM, Δημήτρης Χρυσομάλλης wrote: Hello, I am new to jquery and I am having a problem with toggle

Re: [jQuery] jQuery for President

2007-02-11 Thread Karl Swedberg
Swedberg www.englishrules.com www.learningjquery.com On Feb 11, 2007, at 9:13 AM, Jörn Zaefferer wrote: Karl Swedberg schrieb: On Feb 10, 2007, at 7:42 PM, Glen Lipka wrote: *http://www.barackobama.com** (jQuery!)* /Although they are using 1.04. Hello? I was all on board until I saw they haven't

Re: [jQuery] Checking for a class?

2007-02-11 Thread Karl Swedberg
You could also use one of the attribute selectors to filter a set of matched elements. If you don't care where the particular value appears within the class attribute, you could do this: $('[EMAIL PROTECTED]') --Karl _ Karl Swedberg www.englishrules.com

Re: [jQuery] Checking for a class?

2007-02-11 Thread Karl Swedberg
D'oh! Why not indeed! slap my forehead/ 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

Re: [jQuery] Want to know if sites are jQuery powered? Check this out!

2007-02-10 Thread Karl Swedberg
. Any ideas? --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 10, 2007, at 9:18 AM, Paul Bakaus wrote: Hi all, thanks for your great feedback! To answer a few things: To get around any diversion of $, perhaps you should use jQuery in place

Re: [jQuery] jQuery for President

2007-02-10 Thread Karl Swedberg
a span to the label instead of just styling the label? And why would someone want to use a span and then make it display:block instead of just using a div ? Maybe I'm missing something? in jQuery we trust. Yes, but some trust it more than others. :) --Karl _ Karl Swedberg

Re: [jQuery] Highlight Vertical Table Cells

2007-02-09 Thread Karl Swedberg
'); }); }); I only used .css() to run a quick test. You'll probably want to change those two to .addClass('some-class') and .removeClass('some- class') --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 9, 2007, at 8:27 AM, Mark Harwood wrote: Im trying

Re: [jQuery] Problem with [EMAIL PROTECTED]

2007-02-09 Thread Karl Swedberg
That's great news, Brandon! Thanks! Was this a post-1.1.1 fix? --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 9, 2007, at 10:03 AM, Brandon Aaron wrote: We just fixed this for the href attribute. Is IE actually returning the whole URL

Re: [jQuery] Highlight Vertical Table Cells

2007-02-09 Thread Karl Swedberg
If there are multiple values for the attribute, then [EMAIL PROTECTED] will be too specific, since it's looking for /exact/ matches. Try this instead: [EMAIL PROTECTED] That's get the elements in which the headers attribute /contains/ foo. Cheers, --Karl _ Karl Swedberg

  1   2   3   4   >