[jQuery] Re: Input field: focus=remove text; blur=put it back

2008-07-18 Thread Karl Swedberg
well, mine isn't really a public plugin. but it made sense to write it as a plugin for myself so I could use it easily in multiple projects. Feel free to use anything you want in it, though, for jQuery UI Forms. --Karl Karl Swedberg www.englishrules.com www.learningjquer

[jQuery] Re: jQuery animate (help needed)

2008-07-18 Thread Karl Swedberg
auto auto 80px)'}) Also, note the lack of commas separating the rect values. It won't work if you include them. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Input field: focus=remove text; blur=put it back

2008-07-18 Thread Karl Swedberg
text dtClass: 'default-text', // class applied to the default text dtText: 'label'// 'label' uses text of input's label; 'title' uses input's title attribute. // otherwise, use some other string or

[jQuery] Re: How can the selector match the last 2 selected element.

2008-07-18 Thread Karl Swedberg
use the slice() method :-) $('div').slice(-2); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: jQuery animate (help needed)

2008-07-18 Thread Karl Swedberg
Dang, Mike. I'm sure glad you're around to correct my mistakes. Two in one day! :-D --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 18, 2008, at 9:25 AM, Mike Alsup wrote: clip is a valid css property but it is not supported by jQuery

[jQuery] Re: My first jQuery plugin

2008-07-18 Thread Karl Swedberg
DOM" and assumed he meant stop returning elements. Anyway, you're right. It won't return any of the other elements, but it *will* climb all the way up before it returns just the first match. Thanks for the clarification, Mike! --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Two versions of jQuery for two plug-ins!

2008-07-18 Thread Karl Swedberg
Hi Jagadeesh, If you could provide a link to the FastFind menu, I bet someone could do a quick upgrade patch for you. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 18, 2008, at 8:53 AM, Jaggy wrote: Dear All, I am no more a developer, so pardon

[jQuery] Re: jQuery animate (help needed)

2008-07-18 Thread Karl Swedberg
Hi Geir, The problem is that clip is not a valid HTML attribute. As far as I know, it was only used for the element in Netscape 3 and 4. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 18, 2008, at 6:48 AM, Geir Solerød wrote: Hi! I'm rather n

[jQuery] Re: Difference between two code fragments

2008-07-18 Thread Karl Swedberg
tabs :text") .bind("focus", function() { $(this).addClass("focus"); }) .bind("blur", function() { $(this).removeClass("focus"); }); That one should work. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul

[jQuery] Re: My first jQuery plugin

2008-07-18 Thread Karl Swedberg
Hi Pete, Yes, Sam's selector will definitely stop climbing the DOM once it finds the first match. That's what the :eq(0) part does. The :first selector does the same thing as :eq(0), so this would work equally as well: $("#myelement").parents("table:first&qu

[jQuery] Re: $.get(0) is causing trouble

2008-07-17 Thread Karl Swedberg
On Jul 17, 2008, at 3:59 PM, Carl Von Stetten wrote: jquertil, Try: $all[0].css('color','#339900'); or $all.eq(0).css('color','#339900'); As Alexsandro pointed out in his response, .get(0) returns the actual DOM element, not a jQuery object, so you can't use jQuery functions (like ".css") o

[jQuery] Re: Navigation scrolling

2008-07-17 Thread Karl Swedberg
7;).css('top', '0') $(window).bind('scroll', function() { $('#sidebar').css('position', sbOffset > $(window).scrollTop() ? 'relative': 'fixed'); }); }); Keep in mind that this isn't going to work in IE6. For th

[jQuery] Re: parent help

2008-07-16 Thread Karl Swedberg
I'm not sure what the {$k} part is all about, but you should be able to select that tr by using ...parents('tr:first') rather than ...parents('tr:last') --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 16, 2008, at 6:47 P

[jQuery] Re: help with passing value to jquery

2008-07-16 Thread Karl Swedberg
({width:newwidth+'px'}, 1000); } } sort of looks like you're doing that already? after your object, call the function: obj.func(); you should also put a semicolon after the last curly brace, just to be safe. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Add events and functions to ajax content

2008-07-15 Thread Karl Swedberg
Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: use of jquery to change existing code

2008-07-15 Thread Karl Swedberg
Hi there, You could do it this way: if(value=="UK"){ $('#vat').fadeIn(); } --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 15, 2008, at 5:19 PM, Snowman wrote: Hello, I am trying to add an effect to my existing JS. Not

[jQuery] Re: .append() default behaviour

2008-07-15 Thread Karl Swedberg
und:#D5D5D5" to "background-color:#D5D5D5" Hope that helps. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 15, 2008, at 5:50 PM, Stefan Petrea wrote: I want to append to a tag another tag but in the argument to .append() I use the c

[jQuery] Re: Multiple Instances of the same effect without unique IDs

2008-07-15 Thread Karl Swedberg
Hi Joe, Assuming that the additional information that you're initially hiding is in a span tag, I'd do something like this: $(document).ready(function() { $('td:first-child').click(function() { $(this).find('span').slideToggle(); }); }); --K

[jQuery] Re: Toggle Class command

2008-07-15 Thread Karl Swedberg
element with id="forum" and remove it from that element. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 15, 2008, at 12:28 PM, lukas wrote: Hello! Does anybody see a mistake here? I want to let a DIV disappear while another DIV needs to ch

[jQuery] Re: Quickie: Knowing if a scroll bar is there or not.

2008-07-14 Thread Karl Swedberg
Hmmm. Off the top of my head ... if the div has id="foo", something like this: if ($('#foo')[0].scrollWidth < $('#foo').width()) { // the scroll bar is showing. } --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 1

[jQuery] Re: a silly question about selector

2008-07-14 Thread Karl Swedberg
27;d probably drop the :radio part. Since I wouldn't have a different type of input with the same name, there would be no reason to filter against that. $('input[name=xxx]:checked) Hope that helps. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com O

[jQuery] Re: newbie question about assigning a varialbe for use in a selector statement

2008-07-12 Thread Karl Swedberg
d_image_content').hide(); $('input.add_image').bind('click', function() { $(this).next().toggle(); }); }); Hope that works for you. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 12, 2008, at 2:42 PM, jt wrote: I have a

[jQuery] Re: How to access xml attribute values with Jquery?? ...that have a namespace. Ex = name:funny

2008-07-11 Thread Karl Swedberg
tions#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 11, 2008, at 11:38 PM, Ed wrote: Worked like a charm! I used this one: $this.find("name\\:funny").attr("post"); Thanks!

[jQuery] Re: How to know when you can't scroll any further

2008-07-10 Thread Karl Swedberg
#x27;); } }); --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 10, 2008, at 10:43 AM, Ryura wrote: $("element").scroll(function() { if($("element").scrollTop == $("element").scrollHeight;) { //do something } }); Untes

[jQuery] Re: Combining Animation Methods: fadeOut and slideUp

2008-07-09 Thread Karl Swedberg
On Jul 9, 2008, at 5:19 PM, Joe wrote: Karl's tuts are priceless. Definitely read up on those. Helped me many a time. Wow. Thanks, Joe. You just made my day. :-) --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Combining Animation Methods: fadeOut and slideUp

2008-07-09 Thread Karl Swedberg
{opacity: 'hide', height: 'hide'}, 'fast'); Hope that helps. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 9, 2008, at 4:29 PM, JipThePeople wrote: Is it possible to execute both a fadeOut() as well as a slideUp() methods

[jQuery] Re: 1.2.4 to 1.2.6 question

2008-07-08 Thread Karl Swedberg
tp://groups.google.com/group/jquery-en/browse_thread/thread/5a83b3b23e38a6a7/5a91e47087a1555e?hl#msg_c63cabcb38ffcb8b Anyway, thanks for jogging my memory with your post. Maybe I'll revisit my code in the morning and see if I can upgrade prototype and get a less hacky solution go

[jQuery] Re: slideDown hidden portion/bump

2008-07-08 Thread Karl Swedberg
Try wrapping the form in a div and sliding that down. That should work. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 8, 2008, at 8:31 AM, noon wrote: Anyone have any ideas on this one? It's really stumping me. On Jul 7, 9:15 am, noon &l

[jQuery] Re: Cluetip Params Not Working?

2008-07-08 Thread Karl Swedberg
rsion. Not sure about mouseOutClose, though. I'll have to double-check that one to see if the script incorrectly excludes that option when the activation is set to 'click' --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 8, 2008, at 7:40

[jQuery] Re: [New plugin] Colorpicker

2008-07-07 Thread Karl Swedberg
Wow, that's a beautiful implementation, Stefan! Wonderful combination of function and style. Thanks for sharing it with the community! cheers, --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 7, 2008, at 8:02 AM, Stefan wrote: http://eyec

[jQuery] Re: Need truncator/Expander help (trimming on # of objects rather than character count)

2008-07-06 Thread Karl Swedberg
okay, should be working now! thanks again for pointing out the bug and please point out anything else awry. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 6, 2008, at 8:07 PM, Karl Swedberg wrote: oops. Okay, Carl, I'll check this out after

[jQuery] Re: Need truncator/Expander help (trimming on # of objects rather than character count)

2008-07-06 Thread Karl Swedberg
oops. Okay, Carl, I'll check this out after I put the kids to bed. :-) thanks for the note. shouldn't be too hard to work out. I probably just have a typo or a stray comma or something. Cheers, --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Need truncator/Expander help (trimming on # of objects rather than character count)

2008-07-06 Thread Karl Swedberg
oooh, thanks for catching that, Erik! fixed now. Cheers, --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 6, 2008, at 7:02 PM, Erik Beeson wrote: Seems to have some HTML escaping issues on your options page: http://plugins.learningjquery.com/summarize

[jQuery] Re: traversing over items (like foreach in php)

2008-07-06 Thread Karl Swedberg
var $img = $(this); $img.parent('a').height( $img.height() ); }); The other way would go like this: $("#navi li img").each(function(index) { var $img = $(this); $img.height( $img.parent('a').height() ); }); --Karl Karl Swedberg www.englishrules.c

[jQuery] Re: Need truncator/Expander help (trimming on # of objects rather than character count)

2008-07-06 Thread Karl Swedberg
sorry, but I'm changing the name from summarizer (with an r) to summarize. Seems to make more sense as a verb. so now you can find it at: http://plugins.learningjquery.com/summarize/ --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 6, 2008, at

[jQuery] Re: Need truncator/Expander help (trimming on # of objects rather than character count)

2008-07-06 Thread Karl Swedberg
w it works. One important thing to note is that your selector should be the parent element of the elements you want to expand/collapse. --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 6, 2008, at 11:55 AM, clorentzen wrote: I am looking to add a

[jQuery] Re: jQuery issues in Firefox 3

2008-07-06 Thread Karl Swedberg
Putting the (or

[jQuery] Re: ClueTip and a Series of Conditions

2008-07-05 Thread Karl Swedberg
Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 5, 2008, at 1:02 PM, StanW wrote: Hi All I have been successfully using ClueTip, but cannot figure out how to implement a "if one or more of these are not filled in then display this single notice" kind of ac

[jQuery] Re: Using ClueTip with Image Maps in IE

2008-07-04 Thread Karl Swedberg
or it; you can use the href attribute to fetch the contents from an element with a matching id. $('area').cluetip({ attribute: 'href', titleAttribute: 'alt', local: true }); --Karl Karl Swedberg www.englishrules.com www.learning

[jQuery] Re: cluetip doesn't work with IE for me

2008-07-04 Thread Karl Swedberg
up in the clueTip And this jQuery: $(document).ready(function() { $('a.tip').cluetip({ attribute: 'href', local: true }); }); Would this meet your need? --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 4, 2008, at 10:35 PM,

[jQuery] Re: cluetip doesn't work with IE for me

2008-07-04 Thread Karl Swedberg
ady: $(document).ready(function() { $('whatever').cluetip(); }); You won't have to worry about any of this stuff then, and you can keep the behavior separate from the content. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 4, 2008,

[jQuery] Re: selecting div's with dynamic id's

2008-07-04 Thread Karl Swedberg
D'oh! silly typo. You crack me up, Michael. :-) --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 4, 2008, at 3:04 PM, Michael Geary wrote: For anyone who is wondering, "functino" is Italian for "tiny function." Here's

[jQuery] Re: cluetip doesn't work with IE for me

2008-07-04 Thread Karl Swedberg
E are mysterious. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 4, 2008, at 12:24 PM, David Morton wrote: I even changed it to just have the tip in the call: href="view.php? mail_id=529806&cache_type=ham&address_id=6">two

[jQuery] Re: selecting div's with dynamic id's

2008-07-04 Thread Karl Swedberg
ve to the clicked link. Adding "return false" will prevent the link's default event from being triggered. So, given your markup, it might look like this: $('a.show-description').click(functino() { $(this).parent().next().show(); return fa

[jQuery] Re: cluetip doesn't work with IE for me

2008-07-04 Thread Karl Swedberg
f this is the problem here, but maybe it's a place to start. --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 3, 2008, at 11:23 PM, dgm wrote: I'm trying to use cluetip (Looks great!) to display a full text of otherwise truncated data, in a ta

[jQuery] Re: Fade in, out, then in?

2008-07-03 Thread Karl Swedberg
Hi Miiitch, You can put the content fade in the callback of the last logo fadeOut. // ... .fadeOut(1000, function() { $('#content').fadeIn(1000); }); --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 3, 2008, at 6:09 PM, Miiitch wrot

[jQuery] Re: cant upgrade from 1.2.3 to 1.2.6

2008-07-03 Thread Karl Swedberg
Hi Jeffrey, It might be worth starting a new thread on the jquery-dev list for this, since it does have to do with examining the core file. Would you mind doing that? thanks! --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 3, 2008, at 12:36 PM

[jQuery] Re: Using ClueTip with Image Maps in IE

2008-07-03 Thread Karl Swedberg
Hi there, Sorry for the delay in replying. I'll try to take a look at this tonight. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 3, 2008, at 5:27 AM, C.Everson wrote: Hello, I've been working with ClueTip (GREAT plug-in!) and

[jQuery] Re: expr in $("", expr) not as expected

2008-07-02 Thread Karl Swedberg
like $(divs).filter('div')? Do any of the divs selected by $("#sidebar > div").get() have child divs? If not, the second selector shouldn't be returning anything. Hope that makes sense --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: ClueTip: Rounded Corners not appearing correctly

2008-07-01 Thread Karl Swedberg
ng.net "clearfix" hack for such business. Glad it's working for you now. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: zebra striping + flashing/blinking effect?

2008-07-01 Thread Karl Swedberg
You could try this: I'm blinking like it's 1999 :-) Or you could use a setInterval: setInterval(function() { $('tr:lt(2)').toggleClass('blinky'); }, 500); That one toggles the "blinky" class on the first 2 TR elements every 1/2 seco

[jQuery] Re: ClueTip: Rounded Corners not appearing correctly

2008-07-01 Thread Karl Swedberg
give #cluetip-inner zoom: 1; in an IE6-only stylesheet. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 1, 2008, at 8:50 PM, datatv wrote: I've got my tooltip now pretty much in order expect for one problem. The rounded corner placement on the to

[jQuery] Re: (Newbie Help) Cluetip not showing up

2008-07-01 Thread Karl Swedberg
tooltip: rounded corners Close Hope that helps. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 1, 2008, at 1:52 PM, datatv wrote: Well, actually there is a file there in that folder so I don't know why you

[jQuery] Re: Shadowbox 2.0rc1

2008-07-01 Thread Karl Swedberg
Thanks for the update, Michael. I'm a big fan. :-) --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 1, 2008, at 12:44 PM, Michael J. I. Jackson wrote: If you're using the Shadowbox jQuery plugin, it has been updated. The new versio

[jQuery] Re: (Newbie Help) Cluetip not showing up

2008-07-01 Thread Karl Swedberg
//docs.jquery.com/Selectors 2. You have "demo/ajax4.htm" in the rel attribute -- but that file doesn't exist. If you want to pull in tooltip content from another page (which, given the rel attribute in there, I'm assuming you want to do), the other page has to exist. --Ka

[jQuery] Re: (Newbie Help) Cluetip not showing up

2008-06-30 Thread Karl Swedberg
7;a.basic').cluetip(); Notice that the first one applies the cluetip to a link with class="title" and the second to a link with class="basic" . Your html doesn't have either of these classes in it. I think that could be your problem. --Karl Karl Swe

[jQuery] Re: Re[jQuery] moving character from title attribute

2008-06-30 Thread Karl Swedberg
Hi there, I think you can do it this way: $("#myDiv [title*='_']").attr('title',function () { return this.title.replace(/_/g,' '); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 30, 2008, at 10:03

[jQuery] Re: Accordion madness and two divs inside

2008-06-30 Thread Karl Swedberg
Hi there, You also posted this question on the blog, so I replied there yeserday: http://www.learningjquery.com/2007/03/accordion-madness#comment-50125 Let us know if you need any additional help. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 29

[jQuery] Re: Do something 3 times

2008-06-28 Thread Karl Swedberg
// do all the stuff you were doing. } }); Hope that helps. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 28, 2008, at 2:47 PM, jlhall wrote: I am using jquery to parse an xml file. It gets the date, title and link from a B

[jQuery] Re: Firefox 3 help

2008-06-28 Thread Karl Swedberg
Strange, I just looked at the site on FF3 for Mac, and it worked just fine. Also, those photos are fantastic! --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 28, 2008, at 3:26 PM, daveJay wrote: I've got to say I'm extremely unhappy wi

[jQuery] Re: Array Intersection or union

2008-06-28 Thread Karl Swedberg
Also, jQuery has a few array methods in the core: http://docs.jquery.com/Utilities So, like Klaus said, you probably don't need a plugin. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 28, 2008, at 10:52 AM, Klaus Hartl wrote: I don't

[jQuery] Re: jQuery powered Plazes acquired by Nokia

2008-06-27 Thread Karl Swedberg
Hey Klaus, Sorry I got to this thread quite late, but anyway, congratulations on the huge news! I hope the acquisition results in lots of great new opportunities for you (and lots of money, too. ;) ). Cheers, --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Adding hover to all table rows (tr) but the first one.

2008-06-26 Thread Karl Swedberg
ction() { // Stuff to do when the mouse leaves the row; }); Cheers, --Karl On Jun 26, 2008, at 12:23 PM, Karl Swedberg wrote: Hi, you should be able to do it like so: $('tr:gt(0)').hover(function() { // Stuff to do when the mouse enters the row; }, function() { // Stuff

[jQuery] Re: Adding hover to all table rows (tr) but the first one.

2008-06-26 Thread Karl Swedberg
Hi, you should be able to do it like so: $('tr:gt(0)').hover(function() { // Stuff to do when the mouse enters the row; }, function() { // Stuff to do when the mouse leaves the row; }); --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 26

[jQuery] Re: slideToggle() giving a noticeable "skip" or "bump" when revealing/hiding div

2008-06-26 Thread Karl Swedberg
Hi Jared, It looks like the problem is being caused by the padding that you have applied to .comments-body If you remove that padding and apply padding to element(s) inside comments-body instead, that should fix the problem. --Karl Karl Swedberg www.englishrules.com

[jQuery] Re: Fix for problem: Firefox 3, FOUC and incorrect width() on "ready"

2008-06-26 Thread Karl Swedberg
hread/4633136bb957660a?hl=en --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 26, 2008, at 3:37 AM, Karl Rudd wrote: This is a heads up for anyone having problems with Firefox 3. I had a problem with finding the width()/outerWidth() of elements during a "ready&quo

[jQuery] Re: How do I find and replace HTML comments?

2008-06-25 Thread Karl Swedberg
.nodeValue = hc[i].nodeValue.replace(/2008/,year); } } }); Hope that helps. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 25, 2008, at 5:59 AM, M. wrote: Hello, I have a HTML page and I've included a HTML comment above my tag which says: the

[jQuery] Re: How do i display a tooltip from a hidden div?

2008-06-24 Thread Karl Swedberg
lement and displays an arrow that points to the invoking element Is that what you're looking for? --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 20, 2008, at 6:43 PM, Mark wrote: please... On Thu, Jun 19, 2008 at 10:42 PM, Mark <[EMAIL PROTECTED]&g

[jQuery] Re: Selecting current .jpg...

2008-06-12 Thread Karl Swedberg
e).slideDown(400); }, function(){ $(this).next().slideUp(400); } ); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 12, 2008, at 10:12 AM, john wrote: I'm sure t

[jQuery] Re: Working with text

2008-06-12 Thread Karl Swedberg
And that's why Ariel is da man! Nice one. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 12, 2008, at 7:09 AM, Ariel Flesler wrote: Ooor var fileName = $('img').attr('src').split('/').pop()

[jQuery] Re: Working with text

2008-06-11 Thread Karl Swedberg
Hi there, You could do it like this: var path = $('img').attr('src'); var fileName = path.slice(path.lastIndexOf('/')+1); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 11, 2008, at 7:36 PM, yo2lux wrote: pat

[jQuery] Re: Selector: Find the first letter?

2008-06-10 Thread Karl Swedberg
You might also want to take a look at my Fancy First Letter plugin: http://plugins.learningjquery.com/fancyletter/ --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 10, 2008, at 6:47 PM, Hamish Campbell wrote: Nothing wrong with regex. Note that the

[jQuery] Re: what should an hata script return?

2008-06-09 Thread Karl Swedberg
e a look at the documentation and let me know if you have any further questions: http://plugins.learningjquery.com/cluetip thanks, --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 9, 2008, at 5:26 PM, Rick Pasotto wrote: I'm using jquery.cluetip.js wit

[jQuery] Re: Odd JQuery behavior in FF

2008-06-09 Thread Karl Swedberg
in jQuery, in your $(document).ready() : $('body').css({opacity: .}); Hope that helps. --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 9, 2008, at 11:34 AM, [EMAIL PROTECTED] wrote: I'm experiencing a very minor, but increasingl

[jQuery] Re: 1.2.6 problem

2008-06-09 Thread Karl Swedberg
Hi Randy, Not sure why it would be failing in IE7 only, but I wonder if maybe you have more than one element with either the id or the name equal to the value of frm? Also, maybe it would work to replace your selector with this: $('#' + frm + ' :input') --Ka

[jQuery] Re: Thickbox on 1.2.6 or best alternative?

2008-06-08 Thread Karl Swedberg
Fx.Styles and its dependancies) * Dojo Toolkit (thanks Peter Higgins) http://mjijackson.com/shadowbox/doc/support.html#adapters So you should be able to use it with jQuery, no problem. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 8, 2008, at 3:40

[jQuery] Re: Cluetips Protips Jtips

2008-06-07 Thread Karl Swedberg
Thanks, Dean. On Jun 7, 2008, at 8:39 PM, Dean wrote: Karl, Prototip has ajax and the things you've mentioned. If you are looking for ideas to improve cluetip, it might be a good idea to a look at it. - Dean On Jun 8, 1:51 am, Karl Swedberg <[EMAIL PROTECTED]> wrote: Thank

[jQuery] Re: Cluetips Protips Jtips

2008-06-07 Thread Karl Swedberg
right or look right, I'd love to hear how I can improve it. Cheers, --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 7, 2008, at 6:22 PM, Rey Bango wrote: Dan, I think has done a fabulous job with Prototip2. It's very feature rich and m

[jQuery] Re: insert td before previous td

2008-06-06 Thread Karl Swedberg
In that case, try this... $('table tr').each(function() { $('td:nth-child(4)', this).insertBefore($('td:nth-child(2)', this)); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 6, 2008, at 11:18 AM, Javier Martí

[jQuery] Re: possible bug when parsing xml on IE7?

2008-06-06 Thread Karl Swedberg
Not sure if this is the problem, but it looks like you're missing a closing quotation mark for your data value: data: "&hidden=getValue", // <-- added quotation mark --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 6, 2008, at

[jQuery] Re: Checking for the next element then hiding it.

2008-06-06 Thread Karl Swedberg
Hi Mathew, It looks like your attempt will hide the next p rather than the h3. A filter function is probably your best bet in this situation: $('h3').filter(function() {return !$(this).next('p'); }) Hope that helps. --Karl ____ Karl Swedberg

[jQuery] Re: Tooltip

2008-06-05 Thread Karl Swedberg
o revisit that before the next release. Hope this helps --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On May 30, 2008, at 11:59 AM, Emmanuel Briot wrote: On Fri, May 30, 2008 at 5:17 PM, Karl Swedberg <[EMAIL PROTECTED]> wrote: You might want to take a l

[jQuery] Re: markReadOnly

2008-06-05 Thread Karl Swedberg
Hi there, You can probably just set the disabled attribute to true. $('someElement').click(function() { $('someInput').attr('disabled', true); }); Hope that helps. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On J

[jQuery] Re: Refactoring Functions

2008-06-04 Thread Karl Swedberg
() { stickyFooter(); }); }); or this ... $(document).ready(function() { stickyFooter(); $(window).resize(stickyFooter); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 4, 2008, at 8:51 PM, Chris P wrote: Better yet, change line second

[jQuery] Re: pausing a link and resuming its normal behavior

2008-06-04 Thread Karl Swedberg
Hi Shelane, Have you considered using a simple confirm message? For example: $('a').click(function() { var c = confirm('are you sure?'); if (!c) return false; }); --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Jun

[jQuery] Re: Hiding after a certain amount of elements are shown?

2008-06-03 Thread Karl Swedberg
Hi Anthony, Try this ... $(".divclass:gt(2)").hide() or this ... $(".divclass:gt(3)").hide() cf. http://docs.jquery.com/Selectors/gt#index Cheers, --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 3, 2008, at 7:46 PM, anth

[jQuery] Re: Cornerz 0.4

2008-06-03 Thread Karl Swedberg
Very well done, Jonah! --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 3, 2008, at 7:53 AM, weepy wrote: Hi I've just released Cornerz 0.4 http://groups.google.com/group/cornerz Bullet Proof Corners plugin for jQuery using Canva

[jQuery] Re: Problem when trying to copy the home page design of Msn Video site

2008-06-02 Thread Karl Swedberg
/resources/jquery.hoverIntent.html --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On May 29, 2008, at 5:45 AM, Jiawei wrote: This is the msn video site: http://video.msn.com/ On the home page, we can see some small preview pictures of videos.When we move the cursor ov

[jQuery] Re: innerFade and delay? or Cycle and drupal 5.x ?

2008-06-02 Thread Karl Swedberg
is needed. Read the README.txt. Hope that helps. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On May 28, 2008, at 7:47 PM, jonathan wrote: On May 29, 9:20 am, "Mr.Morton" <[EMAIL PROTECTED]> wrote: Does anybody have Cycle running wi

[jQuery] Re: submit a form when an image is clicked rather than using input type=submit

2008-06-02 Thread Karl Swedberg
while keeping the spam to (almost) zero. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On May 28, 2008, at 5:26 PM, Pyrolupus wrote: Why does it take four hours for my replies to show up? :( On May 28, 1:31 pm, Pyrolupus <[EMAIL PROTECTED]> wrote:

[jQuery] Re: Tooltip

2008-05-30 Thread Karl Swedberg
argument, it will use that for the contents. Use an anonymous function and it will use the return value of that function. http://plugins.learningjquery.com/cluetip/ --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On May 30, 2008, at 4:22 PM, armyofda12monkeys

[jQuery] Re: Help learning...

2008-05-27 Thread Karl Swedberg
"#image").hover( function () { $("li:hidden:first").fadeIn("slow")); }, function () { $("li").fadeOut("slow").remove(); } ); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On

[jQuery] Re: :contains ... troubling behavior

2008-05-27 Thread Karl Swedberg
Hi there, I suspect that the problem has to do with putting an HTML string inside the contains parens, when it is supposed to take only text. Does it work if you just do $('a:contains(undo)') ? --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: how to traver DOM in this suitation?

2008-05-25 Thread Karl Swedberg
On May 25, 2008, at 11:20 AM, Ariel Flesler wrote: Karl's da man :) Not so! Ariel is da man. Glad it worked for you, Davis! Karl Swedberg www.englishrules.com www.learningjquery.com On May 25, 2008, at 11:20 AM, Ariel Flesler wrote: Karl's da man :) -- Ari

[jQuery] Re: how to traver DOM in this suitation?

2008-05-25 Thread Karl Swedberg
Hi Davis, You could try this: $('button[id^xxx]').click(function() { var i = this.id.split('-')[1]; }); ____ Karl Swedberg www.englishrules.com www.learningjquery.com On May 25, 2008, at 2:45 AM, Davis wrote: Hi all, I have some button that will be

[jQuery] Re: Show/hide toggle hides form too...bah!

2008-05-23 Thread Karl Swedberg
returns a boolean. Will be true if the target element is not a form. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On May 23, 2008, at 10:27 AM, Ridge wrote: Hm. Replaced my code with yours, and it's still toggling the form when its clicked. :

[jQuery] Re: Digging through wrapper DIVs

2008-05-22 Thread Karl Swedberg
I'm not sure what you mean by "uppermost," but you can select the wrapper div closest to the span with $ ('span.bullet').parents('div.wrapper:first') or furthest out from the span with $('span.bullet').parents('div.wrappe

[jQuery] Re: New site -- name constructor

2008-05-22 Thread Karl Swedberg
them to option elements, but that wasn't really a clueTip issue since IE 6 doesn't support onmouseover for option elements. Thanks, --Karl _____ Karl Swedberg www.englishrules.com www.learningjquery.com On May 22, 2008, at 7:01 PM, Eeby wrote: Hi all. I completed a new

[jQuery] Re: Cluetip not working because of other javascript

2008-05-22 Thread Karl Swedberg
resort. Also, you aren't including the cluetip stylesheet (jquery.cluetip.css). --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On May 22, 2008, at 2:44 PM, hubbs wrote: I was frustrated because I could not figure out why cluetip was not workin

[jQuery] Re: Case Insensitive Selector

2008-05-21 Thread Karl Swedberg
ceholders, of course. --Karl _____ Karl Swedberg www.englishrules.com www.learningjquery.com On May 21, 2008, at 3:34 PM, Scott Sauyet wrote: Rafael Soares wrote: I'm using a [attribute*='value'] selector, and the only problem is that I need it to be case insens

<    4   5   6   7   8   9   10   11   12   13   >