Re: [jQuery] New Forums

2010-01-22 Thread Karl Swedberg
tunately most RSS readers also use a web format, so they are not better accessible at all. There are plenty of desktop RSS readers available for PC and Mac. --Karl

Re: [jQuery] New Forums

2010-01-22 Thread Karl Swedberg
dvantages over a plain mailing list. I wish there were a solution out there that is ideal for everyone. Unfortunately, though, every solution comes with its own set of compromises. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

Re: [jQuery] Re: jQuery 1.4 and Broken UI Dialog Animations

2010-01-19 Thread Karl Swedberg
yeah, I'm pretty sure jQuery UI 1.7.2 is not compatible with jQuery 1.4. The jQuery UI team are working on an update. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 19, 2010, at 3:51 PM, lloydphillips wrote: We've just had the same issue h

Re: [jQuery] Are numerical properties/indexes supported?

2010-01-13 Thread Karl Swedberg
DOM node, but divs.eq(0) still returns the jQuery object. Also, jQuery is not an array at heart, but an array-like object. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

Re: [jQuery] Actually deleting instead of .remove

2010-01-13 Thread Karl Swedberg
e group so the devs can have a look. thanks, --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 12, 2010, at 6:52 PM, sophos707 wrote: Hi everyone, I'm running a script that processes text messages people send in, and then it displays them on a screen

Re: [jQuery] Re: Specific type of menu action

2010-01-12 Thread Karl Swedberg
You're trying to access the easing and lavalamp plugins at the wrong location, so they're returning "404 page not found" errors. http://www.glenhealy.com/jquery.easing.min.js http://www.glenhealy.com/jquery.lavalamp.min.js Make sure those paths are correct and

Re: [jQuery] jQuery Form Processing

2010-01-12 Thread Karl Swedberg
Your selector is for an ID: $('#autoSumForm') But your form has no ID: action="posttime.php" method="post"> Try adding an ID to the form: method="post"> --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 1

Re: [jQuery] Re: Find array key of value

2010-01-12 Thread Karl Swedberg
what image was before or comes next. Hope it's kind of clear, i don't completely know how to explain... You could use $.inArray() something like: $.inArray('/some/src/value.jpg', imgSrc); more info: http://api.jquery.com/jQuery.inArray/ --Karl Karl Swed

Re: [jQuery] Download avatar 2009 for free

2010-01-11 Thread Karl Swedberg
Really sorry. Someone was spoofing my email address. This has happened to a few others, too. Anyway, that account is banned now. On Jan 11, 2010, at 11:56 AM, Marc Henson wrote: Is there any chance you can stop spamming our group please? Cheers Marc On 11 Jan 2010, at 16:28, avatar3 wrot

Re: [jQuery] Re: Change opacity of item with class of selected

2010-01-09 Thread Karl Swedberg
this: #thumbs li.selected { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; filter:alpha(opacity=50); } They have to be in that order, too, apparently. for more information, see: http://www.quirksmode.org/css/opacity.html --Karl Karl Swed

Re: [jQuery] Download jQuery API docs

2010-01-09 Thread Karl Swedberg
http://api.jquery.com/browser/ --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 9, 2010, at 9:27 AM, MISS_DUKE wrote: Is it possible to download the jQuery API documentation to my local hard-drive? If so, I don't need to connect the Internet every t

Re: [jQuery] How to unsubscribe from this group?

2010-01-06 Thread Karl Swedberg
email to jquery-en+unsubscr...@googlegroups.com --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

Re: [jQuery] XPath for Attribute Selection Criteria

2010-01-06 Thread Karl Swedberg
both are supported so I can correct it? To answer your question, this should work: $('[attName=Val1], [attName=val2]') I'd put something (like a tag name) before each of those attribute selectors, though. For example: $('input[attName=Val1], input[attName=val2]'

Re: [jQuery] Re: retrieving textnode?

2010-01-05 Thread Karl Swedberg
27;) > -1; }).wrap('').parent().css('color', 'red'); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 5, 2010, at 5:59 PM, bundy wrote: I'm trying to avoid classes and ids if possible. If I have to use them I won&#

Re: [jQuery] Need jQuery expert to slightly modify plugin

2010-01-04 Thread Karl Swedberg
I also have an enhanced version of the jCarouselLite plugin that you are free to use: http://github.com/kswedberg/jquery-carousel-lite --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 4, 2010, at 10:19 AM, Liam Potter wrote: http://groups.google.com

Re: [jQuery] Sentence Case?

2010-01-04 Thread Karl Swedberg
.replace(/^[a-z]/, replacer) .replace(/([.!?]\s+)([a-z])/g, replacer); } // convert to sentence case on keyup in text inputs. $('input:text').keyup(function() { this.value = sentenceCase(this.value); }); --Karl ____ Karl Swedberg www.englishrules.com www.learning

Re: [jQuery] Re: simple jquery question

2010-01-04 Thread Karl Swedberg
this solution could be simplified a bit: $('h3.example').each(function() { $('#deptFilter').append( ' + $(this).html() + '' ); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 3, 2010, at 6:53 AM, Paul Hutson

Re: [jQuery] Re: How to check whether an element is bound to an event or not?

2010-01-04 Thread Karl Swedberg
, change, submit http://docs.jquery.com/Events/live#typefn Kudos for rolling your own solution for 1.3.x with the onfocusin event. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 3, 2010, at 5:31 AM, Md. Ali Ahsan Rana wrote: I don't know about this

Re: [jQuery] Re: jQuery does not stripe visible table rows correctly

2010-01-01 Thread Karl Swedberg
to a (I seem to recall having that problem in the past). If you do, you could do this instead: tr td { background-color: #FFF; } tr.roweven td { background-color: #F2F2F2; } --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

Re: [jQuery] Re: Help on Independent DIV's that toggle!!

2010-01-01 Thread Karl Swedberg
eft with no valid way to navigate to them and invoke them with a keyboard. That's a pretty serious limitation -- one that I think far outweighs the concerns that you've raised about . --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

Re: [jQuery] slow pop-up on IE8

2009-12-31 Thread Karl Swedberg
way to handle such a large number of tooltips. Here is the latest n the series: http://www.learningjquery.com/2009/12/using-settimeout-to-delay-showing-event-delegation-tooltips --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Dec 31, 2009, at 8:04 AM

Re: [jQuery] Re: Documentation for ~= selector

2009-12-29 Thread Karl Swedberg
the rel attribute, for one. --Karl On Dec 29, 2009, at 11:59 AM, Šime Vidas wrote: Is there a attribute other then the class attribute where you have a space-seperated list of values? If not, the *= should be good enough.

Re: [jQuery] Documentation for ~= selector

2009-12-29 Thread Karl Swedberg
thanks for reporting that. We are currently working on a brand new documentation system for jQuery 1.4, and "~=" will be in there for attribute selectors. --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Dec 29, 2009, at 4:33 AM, akzhan wrot

Re: [jQuery] Re: I would like to get value each time when one of these checkboxes will change status, how can I do that ?

2009-12-27 Thread Karl Swedberg
You don't need to use the "change" event. The "click" event is also triggered by the keyboard. When the checkbox has focus, press the spacebar and see what happens. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Dec 27, 2

Re: [jQuery] Re: Finding next element

2009-12-27 Thread Karl Swedberg
You can't just use .prev() or .next() because the links are within list items. Instead, you'll need to do something like this: $('a.active').parent().prev().find('a') and this: $('a.active').parent().next().find('a') --Kar

Re: [jQuery] Re: jQuery website search function

2009-12-23 Thread Karl Swedberg
interesting that you would put an onclick on the input rather than an onsubmit on the form. any particular reason for that? --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

Re: [jQuery] Re: Get the selected text and border it with tags

2009-12-20 Thread Karl Swedberg
. Andre, for this sort of thing, I highly recommend the jQuery MarkItUp plugin: http://markitup.jaysalvat.com/ --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

Re: [jQuery] Jquery does not work in IE8

2009-12-17 Thread Karl Swedberg
If I view source on the detail frame, I see that you're referring to the $ function before you load the jQuery file. Put the script element that loads jQuery before your other script and see if that helps. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

Re: [jQuery] a problem when using django template and jquery

2009-12-15 Thread Karl Swedberg
are you sure that the IDs are being rendered in the right order? View source to double check. If they are correct in the html, could you point us to a test page where you're experiencing the problem? thanks, --Karl Karl Swedberg www.englishrules.com www.learningjquer

Re: [jQuery] Re: Document traversing with jQuery + HTML 5 drag and drop

2009-12-15 Thread Karl Swedberg
.droppable() methods in the first place. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Dec 15, 2009, at 7:55 AM, eid wrote: No one? On Dec 10, 8:37 pm, eid wrote: Hello. I am coding some HTML 5 drag and drop support where the user can drag images fr

Re: [jQuery] how to get value between brackets in a string

2009-12-14 Thread Karl Swedberg
to elaborate a bit, you could store the result of that line in a variable and then use it. I'd do the replace a bit differently. var n = $('#pageCount').text().replace(/[)(]/g,''); or use .match instead: var n = $('#pageCount').text().match(/\d+/)[0] Now y

Re: [jQuery] Re: load() function and IE8

2009-12-14 Thread Karl Swedberg
$("#content-box") .load("webapps/finished_jewelry/PurReq/display/ dsp_addPurchaseRequest.cfm?poNum="+ap_po); }); If that still doesn't work for you, we'd be able to help more effectively if we could see if a test page somewhere. --Karl Karl Swedberg

Re: [jQuery] Position()

2009-12-14 Thread Karl Swedberg
o calculate that uses the 'position()' function of jquery, but it is always returning 0, 1 or -1, no matter where the element is on the page... Does anyone know if this is some jquery bug or something? Might you be looking for .offset() instead? --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: load() function and IE8

2009-12-13 Thread Karl Swedberg
Hi Scott, Take a look at the documentation for the .live() method: "Currently not supported: blur, focus, mouseenter, mouseleave, change, submit" http://docs.jquery.com/Events/live#typefn The change event doesn't bubble in IE, so it doesn't work with .live (). jQuery 1.4 is going to provide a w

Re: [jQuery] Cluetip and Colorbox - Can I make them work together?

2009-12-11 Thread Karl Swedberg
).colorbox(); } }); that might do it --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Dec 11, 2009, at 4:20 PM, necker47 wrote: Hello, I'm using Cluetip to pull some AJAX content, and in that content is a link to another small bit of AJAX content. Since

Re: [jQuery] Selectors and Internet Explorer

2009-12-10 Thread Karl Swedberg
Hi Rob, According to Microsoft's "HTML and DHTML Reference," IE's onclick event (as well as others) doesn't apply to the option element: http://msdn.microsoft.com/en-us/library/ms536913%28VS.85%29.aspx --Karl Karl Swedberg www.englishrules.com www.

Re: [jQuery] Changing background color of table cells

2009-12-05 Thread Karl Swedberg
ould be :nth-child(1), the second :nth-child(2) and so on. If it's the first or last column that you want highlighted, you could use :first-child or :last-child, respectively. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Dec 5, 2009, at 12:50 PM, eva

Re: [jQuery] Re: Content loaded via Ajax and global JS

2009-12-05 Thread Karl Swedberg
livequery plugin. That plugin uses an altogether different approach: Rather than rely on event delegation, livequery "listens" for changes to the DOM. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

Re: [jQuery] Re: Selector issue

2009-12-04 Thread Karl Swedberg
ht let you pass in a context for .live() so you don't have to bind to document each time. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Dec 4, 2009, at 3:39 PM, MorningZ wrote: Nah. Using .live() wires up one event handler to document. -

Re: [jQuery] Basic Bind Question

2009-12-04 Thread Karl Swedberg
Oh yeah, that too! :-D --Karl On Dec 4, 2009, at 1:41 PM, Rey Bango wrote: Yep Karl's explanation was great. Also, you can leverage bind() to work with your own custom events in the case where you want to define something that needs to be triggered based on another action. Using the

Re: [jQuery] Re: Selector issue

2009-12-04 Thread Karl Swedberg
, you would have N number of events sitting there wired up where N is the number of children. but whatever works i suppose Nah. Using .live() wires up one event handler to document. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

Re: [jQuery] Basic Bind Question

2009-12-04 Thread Karl Swedberg
if (event.type == 'mouseover') { // do something with $link on mouseover } else { // do something with $link on mouseout } }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Dec 4, 2009, at 11:46 AM, Charlie Griefer wrote: Hi All:

Re: [jQuery] Re: Why mootools animations is more smooth than jquery?

2009-12-04 Thread Karl Swedberg
Just out of curiosity, which browser are you using? Did you try it in more than one? --Karl On Dec 4, 2009, at 9:43 AM, donb wrote: I have a 'slow computer' that is 6 years old hardware, has been upgraded from windows 3.1 and upward, to the current XP without ever a wipe and rei

Re: [jQuery] Re: Why mootools animations is more smooth than jquery?

2009-12-03 Thread Karl Swedberg
ng the easing plugin and see if any of those equations feel smoother. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

Re: [jQuery] Re: Stop a button within an li taking the li event?

2009-12-03 Thread Karl Swedberg
On Dec 3, 2009, at 7:24 AM, Rich wrote: ... not sure what you mean by an input not allowed to be a child of a form though?? For valid markup, an input can be a descendant of a form element, but not a direct child. --Karl Karl Swedberg www.englishrules.com

Re: [jQuery] binding ala ActionScript??

2009-12-03 Thread Karl Swedberg
I've never actually tried this plugin myself, but it looks like it might help you do what you're asking about: http://wiki.github.com/raid-ox/chain.js/ --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Dec 2, 2009, at 1:16 PM, hsfrey wrote: Do

Re: [jQuery] Hide Table Row - Fundamentally I'm wrong.

2009-12-03 Thread Karl Swedberg
Does it not work in every browser, or just in IE? If just IE, the problem could be related to a problem with certain table elements showing a height even when hidden (jQuery 1.3.2 looks for height/width values to determine visibility). --Karl Karl Swedberg

Re: [jQuery] Re: Unknown pseudo-class or pseudo-element 'odd'.

2009-12-01 Thread Karl Swedberg
Aha! I see it now. It's a warning, not an error, and it's a CSS warning. If you're seeing it in Firebug, you can hide it by unchecking "Show CSS Errors" in the Console preferences list. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

Re: [jQuery] jQuery expander won't work in Safari?

2009-11-30 Thread Karl Swedberg
er)|| document).getElementsBySelector' [undefined] is not a function. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 30, 2009, at 2:49 PM, trigramnorth wrote: Hi, I'm using the code found here for jQuery expander: http://plugins.learningjquery.com/expander/

Re: [jQuery] Re: list bullet style

2009-11-24 Thread Karl Swedberg
li').wrapInner('') --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 24, 2009, at 10:20 AM, KeeganWatkins wrote: i'm not sure i understand... hard-coded numbering? something like this (?) : HTML 1 List Item 2 List Item 3 List Item if you a

Re: [jQuery] Cluetip - Sticky pulling inline content

2009-11-24 Thread Karl Swedberg
You can probably fix it by adding this to your CSS: #cluetip #hidden { display:block; } --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 24, 2009, at 8:16 PM, christopherious wrote: I have a Cluetip that is pulling content from a hiddden div on the

Re: [jQuery] Reorder list numerically based on attribute?

2009-11-23 Thread Karl Swedberg
}); for (var i=0; i< items.length; i++) { $('.list').append(items[i]); } --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 23, 2009, at 8:21 PM, welshy1984 wrote: I am wondering if it is possible to reorder a unordered list based on the list items &#x

Re: [jQuery] jquery 1.3.2 syntax error line 324 in IE6

2009-11-23 Thread Karl Swedberg
pic. https://twitter.com/viperasi my fridge!:http://bit.ly/ohBHG 有事您说话 On Fri, Nov 20, 2009 at 4:42 AM, Karl Swedberg wrote: nothing here looks like it would cause a syntax error. Maybe the problem is in your formLogin() function? --Karl

Re: [jQuery] Re: how do i prevent having a paragraph tag for the text AFTER i expand?

2009-11-19 Thread Karl Swedberg
x27;ll see if I can make the plugin work for multiple block- level elements, too. --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 19, 2009, at 5:24 PM, mikko wrote: Greetings, I'm having the same issue with a new line being inserted. Here is

Re: [jQuery] jquery 1.3.2 syntax error line 324 in IE6

2009-11-19 Thread Karl Swedberg
nothing here looks like it would cause a syntax error. Maybe the problem is in your formLogin() function? --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 19, 2009, at 2:00 AM, viperasi wrote: Whether jquery-1.3.2.js or jquery-1.3.2.min.js,i always got

Re: [jQuery] jquery UI draggable does not work in Firefox extension

2009-11-14 Thread Karl Swedberg
Hi Jakkob, Would you mind posting this question to the jquery-ui google group if you haven't done so already? That group is dedicated to questions such as yours that are specifically related to jQuery UI. http://groups.google.com/group/jquery-ui/ Thanks! --Karl Karl Swe

Re: [jQuery] Re: Change style of Div with fade

2009-11-13 Thread Karl Swedberg
1. wrap the element in a div. 2. clone the element and append it to the wrapper div. 3. repeat #2 as needed 4. call .cycle() on the wrapper div. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 13, 2009, at 8:54 AM, Dan wrote: Thank you Karl but ... I ha

Re: [jQuery] clueTip - weird issue (in IE, FF and Chrome)

2009-11-13 Thread Karl Swedberg
Hi Andy, The problem is occurring because you are initializing the cluetip on mouseover by calling jQuery('a.title').cluetip( ... ). The plugin takes care of the mouseover/mouseout stuff on its own, so you should call it ahead of time (and only once). For example, you could put it inside

Re: [jQuery] Change style of Div with fade

2009-11-12 Thread Karl Swedberg
Jonathan Snook's background animation article might be helpful: http://www.snook.ca/archives/javascript/jquery-bg-image-animations/ --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 12, 2009, at 9:27 AM, Dan wrote: Hi, Can anyone tell me how to r

Re: [jQuery] Cluetip: Access both local & external content

2009-11-12 Thread Karl Swedberg
Just write two separate calls: $('a.some-class').cluetip({local: true}); $('a.another-class').cluetip(); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 11, 2009, at 2:35 PM, JMD wrote: What script do I use to have cluetip alte

Re: [jQuery] Re: Load image with an ajax preloader?

2009-11-12 Thread Karl Swedberg
who) recently pointed me to an article that discusses the complexities involved and provides a function: http://lucassmith.name/2008/11/is-my-image-loaded.html (beware the first helper function) Cheers, --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

Re: [jQuery] Re: selector performance

2009-11-11 Thread Karl Swedberg
Are those tests really using jQuery 1.1.4? If so, they're hardly relevant now, unless you're using a very old version of jQuery. --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 11, 2009, at 7:23 AM, grabnerandi wrote: Check out this l

Re: [jQuery] Cluetip not working in Chrome 3.0.195

2009-11-11 Thread Karl Swedberg
forgiving. Try adding a class to those links instead. Something like this would work fine: your text. Then you can select them with $('a.ce_cluetip') Hope that helps, --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 11, 2009, at 9

Re: [jQuery] Selection logic

2009-11-10 Thread Karl Swedberg
and this: $(el).parents('div:first').addClass('myClass'); and, in 1.4 (sneak peek!), this: $(el).parents('div').first().addClass('myClass'); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

Re: [jQuery] how do i prevent having a paragraph tag for the text AFTER i expand?

2009-11-09 Thread Karl Swedberg
it would be helpful to see a page with the html output rather than your php variables. Also, try using a span rather than a div for the expandText. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 5, 2009, at 6:04 AM, Kei Simone wrote: Hi i noticed

Re: [jQuery] making images cycle with clueTip

2009-11-09 Thread Karl Swedberg
I'm not sure I follow what you're trying to do. Do you have a test page that shows what you've done so far? --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 5, 2009, at 3:37 PM, Jack wrote: Hello, is it possible to use clueTip to cycle

Re: [jQuery] How to determine number of elements after dom manipulation ?

2009-11-08 Thread Karl Swedberg
ext() var site = $(this).find("Site").text() if(type == "Host" && site == location){ $('>').appendTo('#'+div); } }); } }); alert($('#' + div).find('img').le

Re: [jQuery] Re: Plugin Authoring Code Example Incorrect

2009-11-08 Thread Karl Swedberg
In the meantime, I changed the wording on that page. Both of the following will work: 1) return this.each(function() { /* do something */ }); 2) this.each(function() { /* do something */ }); return this; --Karl On Nov 8, 2009, at 12:56 PM, Morten Maxild wrote: Exactly...looks correct

Re: [jQuery] Re: Unknown pseudo-class or pseudo-element 'odd'.

2009-11-07 Thread Karl Swedberg
that's strange, Lee. I just tried with FF 3.5.5 Mac (Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 ) and had no such errors --Karl On Nov 7, 2009, at 2:08 AM, Lee wrote: Hi Karl & Miguel, Using Mozilla/5.0 (Macintosh; U; Intel Mac

Re: [jQuery] jQuery Validation request

2009-11-04 Thread Karl Swedberg
the right-hand side of the group's homepage at http://groups.google.com/group/jquery-en/ . Then click the "Unsubscribe" button on the page that appears. To unsubscribe via email, send an email to jquery-en+unsubscr...@googlegroups.com --Karl Karl

Re: [jQuery] Selectors

2009-11-03 Thread Karl Swedberg
this should do it: $('tr .myToggle:visible:odd').addClass('gray'); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 2, 2009, at 4:31 PM, Manimal wrote: Here's what I'm trying to do. When I click on a tr i'd like it

Re: [jQuery] When to Use'.' When Referring To Css Classes In JQuery

2009-11-03 Thread Karl Swedberg
you saw that? I'll make sure it gets into the list of errata on the Packt website and at http://book.learningjquery.com/6705/errata.html thanks so much, --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 3, 2009, at 8:06 AM, Mark Phillips wrote:

Re: [jQuery] Re: mouse control issue within nested tags

2009-11-01 Thread Karl Swedberg
the moused over senate or house changes to blue and only the moused over member changes to red. --Karl

Re: [jQuery] Easy question to answer

2009-11-01 Thread Karl Swedberg
nodeName is a DOM element property. Not related to jQuery per se. Here are a couple references: https://developer.mozilla.org/en/DOM/element#Properties http://www.javascriptkit.com/domref/elementproperties.shtml --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

Re: [jQuery] Re: How to Select element with class, but EXCLUDE its children?

2009-11-01 Thread Karl Swedberg
enter and mouseleave. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

Re: [jQuery] Re: mouse control issue within nested tags

2009-11-01 Thread Karl Swedberg
.mouseover(function(event) { if (event.target == this) { // do something } }).mouseout(function(event) { if (event.target == this) { // do something else } }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

Re: [jQuery] mouse control issue within nested tags

2009-10-31 Thread Karl Swedberg
It sounds like you want to use the .after() method rather than .append() --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 31, 2009, at 11:06 AM, jmatthews wrote: This is related to an earlier post, but rather than address it is a selecting issue, I am

Re: [jQuery] Re: keyup on textfields

2009-10-31 Thread Karl Swedberg
Or, if the OP really wants all text fields to trigger it, he could just use $(':text').keyup( ... ) --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 30, 2009, at 3:20 PM, James wrote: There are a few simple ways to do this. Here are probabl

Re: [jQuery] Hide a nested UL, but show children

2009-10-31 Thread Karl Swedberg
If you don't mind removing them, as opposed to just hiding them, you could do this: $('.topMenu > li > ul > li').each(function() { this.removeChild(this.firstChild); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 30, 20

Re: [jQuery] Re: How to Select element with class, but EXCLUDE its children?

2009-10-31 Thread Karl Swedberg
I'd stick with what Scott said. Use mouseenter/mouseleave. But instead of setting the style with .css(), just add and remove a class. Here is a demo: http://jsbin.com/enero/edit --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 30, 2009, at 4:

[jQuery] Re: jQuery beginner: Problem with ":not" selector.

2009-10-28 Thread Karl Swedberg
r", "green"); $("#test").append("clicked id = " + this.id + ""); }); }); Here's another jsbin.com URL: http://jsbin.com/eluli/edit --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On

[jQuery] Re: Can I somehow see what events are binded to a DOM element?

2009-10-28 Thread Karl Swedberg
On Oct 28, 2009, at 7:45 AM, jayarjo wrote: I wonder if I can see somewhere what events are binded to a DOM element (in FireBug maybe). Maybe it's obvious, but I just don't know yet if it's even possible. this bookmarklet might help: http://www.sprymedia.co.uk/article/Visua

[jQuery] Re: Selectable and Sortable, with copy and move.

2009-10-27 Thread Karl Swedberg
Would you mind posting this question to the jquery-ui google group if you haven't done so already? That group is dedicated to questions such as yours that are specifically related to jQuery UI. http://groups.google.com/group/jquery-ui/ Thanks! --Karl Karl Swe

[jQuery] Re: how to remove elements by attribute

2009-10-27 Thread Karl Swedberg
On Oct 27, 2009, at 1:04 PM, jason wrote: Hi, How can I remove all div elements using the attribute foo for my selector? Basically any div with a foo attribute I want gone. Thanks, Jason You could try this: $('div[foo]').remove(); --Karl ____ Kar

[jQuery] Re: Firing existing events from jQuery inserted html

2009-10-27 Thread Karl Swedberg
pic: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F If you still have problems after reading through it and trying one of the many solutions, let us know. --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 27, 2

[jQuery] Re: Announce => ChessTwit now using jQuery

2009-10-27 Thread Karl Swedberg
Very cool! Is this an extension of your http://64squar.es/ site? --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 27, 2009, at 4:09 AM, weepy wrote: oh I forgot the link !! => www.chesstwit.com You can play chess with all your twitter friends.

[jQuery] Re: cluetip memory leak

2009-10-27 Thread Karl Swedberg
thanks for that explanation, Dave. --Karl On Oct 26, 2009, at 7:54 PM, Dave Methvin wrote: I think a lot of plugins have this problem but most people aren't creating and deleting them a lot. My splitter has this issue but I solved that problem because I was too lazy to support spli

[jQuery] Re: cluetip memory leak

2009-10-26 Thread Karl Swedberg
. This is fairly new terrain for me, so forgive my shooting in the dark, but what if I put something at the very end of the .each(), like this: return this.each(function(index) { // all the other code ... delete link; delete $this; }); would that fix the problem? --Karl

[jQuery] Re: How Stop Animation Works?

2009-10-25 Thread Karl Swedberg
you might need to use the clearQueue and gotoEnd arguments in the .stop() method: .stop(true, true) --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 24, 2009, at 12:24 AM, Stan wrote: Dear All, I have an object with mouse over and mouse out events

[jQuery] Re: ClueTip focus/blur trouble

2009-10-25 Thread Karl Swedberg
uetip'); } }, 100); }); You'll have to add the click handler to the list items, too, of course. Hope that gets you on the right track. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 22, 2009, at 6:08 PM, Shawn wrote: Hi Gang. I'

[jQuery] Re: cluetip memory leak

2009-10-25 Thread Karl Swedberg
er plugins and how it has been dealt with. --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 22, 2009, at 7:49 PM, Andrew Tan wrote: Hi, I have been tracking down a memory leak in my web app which dynamically removes and adds anchors which have clueti

[jQuery] Re: Bringing arrows for Clue tip

2009-10-25 Thread Karl Swedberg
x27;t have those images in the images directory within the directory where that stylesheet is located, they won't show up. Hope that helps --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 25, 2009, at 11:04 AM, Bharanidharan wrote: Hi All, I am tryi

[jQuery] Re: clueTip display inconsistently

2009-10-25 Thread Karl Swedberg
You're selecting only the third link with class="jt": $('a.jt:eq(2)') If you want all of them to show the cluetip on hover, remove the :eq(2) part of the selector: $('a.jt') --Karl Karl Swedberg www.englishrules.com www.learningjquery.

[jQuery] Re: Animate forces display:block?

2009-10-21 Thread Karl Swedberg
bably your best bet. --Karl ____ Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 21, 2009, at 8:01 AM, waseem sabjee wrote: would it be possible for you to use a float instead of display inline ? On Wed, Oct 21, 2009 at 6:33 AM, Jared N wrote: Hi all, I'm t

[jQuery] Re: Using google CDN for jQuery causing problems

2009-10-21 Thread Karl Swedberg
blem with it (and I still don't). Looking at the source file, seems the script file is messed up. Doesn't look messed up to me. Looks minified. Again, more information would be helpful. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: images show before jquery and cycle plugin work their magic

2009-10-20 Thread Karl Swedberg
e, too, but first see how my suggestions so far work for you. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 20, 2009, at 7:38 PM, thor wrote: Hi, I am looking for assistance with a loading problem and my apologies if this is beyond the scope of this

[jQuery] Re: please help

2009-10-20 Thread Karl Swedberg
You could set up your server-side code to send back only a portion of the page rather than the entire thing. Other than that, we'd probably need to see more of your code before we could offer constructive advice. --Karl Karl Swedberg www.englishrules.com www.learningjquer

[jQuery] Re: Problem with animate after submit in opera

2009-10-20 Thread Karl Swedberg
window.location = thisHref; // <-- follow the link after the last animation finishes. }); return false; // <-- prevent the link from being followed before animations. }); $("#panel").click(function(){ $("#panel&qu

[jQuery] Re: safari flashes hidden text from hide()

2009-10-19 Thread Karl Swedberg
It's all about where you put the script and style in relation to each other and in relation to other elements. Take a look at my modification: http://test.learningjquery.com/brisk.html I added a one-liner before any of the stylesheets are loaded. Seems to work in Safari for me. -

[jQuery] Re: Problem with animate after submit in opera

2009-10-19 Thread Karl Swedberg
.animate({top:"0px"}, 500) .animate({top:"0"}, 4000) .animate({top:"-75px"}, 500); return false; // <-- prevent the link from being followed. }); $("#panel").click(function

  1   2   3   4   5   6   7   8   9   10   >