[jQuery] My jQuery Pumpkin... Jealous?

2009-10-31 Thread Matt Kruse
Just a little fun for Halloween 2009. I carved my pumpkin this year as the jQuery logo. I hope some in this group can appreciate it! :) http://mattkruse.com/2009/10/31/jquery-pumpkin/ Matt Kruse

[jQuery] Re: jQuery speed seems slow

2009-10-14 Thread Matt Kruse
is overly slow, perhaps someone can identify other issues contributing to the performance problem. Matt Kruse

[jQuery] Re: is(':checked') always returns false

2009-10-02 Thread Matt Kruse
').attr('checked', $ ('#msgCheckAllInbox').is(':checked')); function checkAllMsgsIn(cb) { $('#msgsInbox input.messageCheckbox').attr('checked', cb.checked); } Much simpler. Matt Kruse

[jQuery] Re: .not($.browser.msie $.browser.version = 7)

2009-09-02 Thread Matt Kruse
use pure CSS? Matt Kruse

[jQuery] Re: isFunction change in 1.3 and window.opener

2009-09-02 Thread Matt Kruse
On Sep 2, 1:16 pm, msoliver michaelsoli...@gmail.com wrote:         if ($.isFunction(openerFunc)) Why not just: if (openerFunc openerFunc.call) ? Matt Kruse

[jQuery] Re: isFunction change in 1.3 and window.opener

2009-09-02 Thread Matt Kruse
by doing: if (openerFunc typeof openerFunc.call=='function') Matt Kruse

[jQuery] Re: Bug? -- toggle() of TR broke in IE8

2009-08-04 Thread Matt Kruse
. Then why does the example work in IE8 using jQuery 1.2.1? You can certainly set a tr to display:none in IE. Matt Kruse

[jQuery] Re: jQuery on IE

2009-07-09 Thread Matt Kruse
. What version of jQuery? What version of IE? Have you looked at your js errors? Create a page with _only_ jQuery in it, load it in your IE, and see if it cases an error. Matt Kruse

[jQuery] Re: jQuery on IE

2009-07-09 Thread Matt Kruse
base_url();?js/ jquery.js type=application/x-javascript alert('jQuery not loaded');/script Matt Kruse

[jQuery] Re: jQuery on IE

2009-07-09 Thread Matt Kruse
it alert? Make sure IE's settings are such that errors will be shown. Matt Kruse On Jul 9, 3:27 pm, Paulodemoc paulode...@gmail.com wrote: The generated code is script language=javascript src=http://servidor/astral/web/js/ jquery.js type=application/x-javascript /script I tryied to add

[jQuery] Re: jQuery and javascript objects

2009-07-08 Thread Matt Kruse
that I can then have jQuery use this, to get values from it?  Or is there no sense in trying to use jQuery for this, and it might not even be of help? Why would you want to use jQuery to handle a standard javascript object? What exactly do you want to do with it? Matt Kruse

[jQuery] Re: check/uncheck all checkboxes with specific id

2009-06-30 Thread Matt Kruse
) { if (typeof fn=='string') { fn = new Function(fn); } this.each(fn); } Then: $(':checkbox.chkEvent').run(this.checked = !this.checked); Whether that's actually more efficient to write depends on the situation ;) Matt Kruse

[jQuery] Re: call a method outside a jquery object

2009-06-26 Thread Matt Kruse
a function to be available outside of the function scope that is currently executing, then define it outside. Matt Kruse

[jQuery] Re: how to call a JS function by pass into a JS

2009-06-20 Thread Matt Kruse
/bestpractices/#onclick You could do: a onclick=ajax_loadpage(inittabFeeds);return false;bababa/a function ajax_loadpage(func) { func(); } Matt Kruse

[jQuery] Re: jQuery text toggle effect

2009-06-19 Thread Matt Kruse
like: Click here to show all items and it will just toggle the word show to hide. Hope it's useful. Matt Kruse

[jQuery] Re: Form Traversal Best Practices

2009-06-19 Thread Matt Kruse
should really have .prop() which would work like attr() usually intends to, but deal only with DOM properties rather than trying to manipulate actual attributes. Script authors usually want to deal with properties anyway, and attr() only makes it confusing. Matt Kruse

[jQuery] Re: jQuery's code first lin e (function(){・・・・・

2009-06-09 Thread Matt Kruse
nothing, since you would need funcname1() to actually run the function. Or preferrably: setTimeout(funcname1,1000); Matt Kruse

[jQuery] Re: variable manipulation

2009-06-09 Thread Matt Kruse
On Jun 9, 9:35 am, simon si...@uvfx.tv wrote: $.myvariable1 $.myvariable3 $.myvariable2 now I would like to add the number part of the variable to it dynamically. var i=1; $['myvariable'+i] === $.myvariable1 See: http://www.javascripttoolbox.com/bestpractices/#squarebracket Matt Kruse

[jQuery] Re: jQuery, MooTools, and Prototype - A Comparison

2009-05-21 Thread Matt Kruse
popularity of the different frameworks. There is always some safety in choosing the market leader and if you are going in blind with no desire to do an in-depth analysis of each option, then choosing jQuery would probably be your safest best. IMO, Matt Kruse On May 21, 2:05 pm, kiusau kiu...@mac.com

[jQuery] Re: update from 1.2.6 to 1.3.2 $('select') - strange!?

2009-05-19 Thread Matt Kruse
You should post a simple test case, because the simple test case I created does not show this problem. Matt Kruse On May 19, 9:33 am, asrij...@googlemail.com asrij...@googlemail.com wrote: Hi Guys, just started to upgrade my site jquery version to the latest, now I'm facing some strange

[jQuery] Re: New Plugin with IE problem

2009-05-15 Thread Matt Kruse
On May 14, 5:17 am, sebastien creme sebastien.cr...@gmail.com wrote: Dynamic colspan setted via style property seems not work on IE. For some reason, jQuery currently maps rowspan-rowSpan, but not colspan-colSpan. http://dev.jquery.com/ticket/4397 Matt Kruse

[jQuery] NEW jQuery Cheat Sheet for 1.3.2

2009-05-07 Thread Matt Kruse
I've updated my previous cheat sheet to be in line with jQuery 1.3.2. I think it's more useful than other cheat sheets that simply dump method names, but hey, that's personal preference ;) http://www.javascripttoolbox.com/jquery/cheatsheet/ Enjoy Matt Kruse

[jQuery] Re: The jQuery Object, Namespaces, and Program Modules -- Connecting the Dots Between jQuery and Javascript

2009-05-05 Thread Matt Kruse
understand what is going on. Matt Kruse

[jQuery] Re: The jQuery Object, Namespaces, and Program Modules -- Connecting the Dots Between jQuery and Javascript

2009-05-05 Thread Matt Kruse
is in its prototype object. Hope that helps, Matt Kruse

[jQuery] Re: The jQuery Object, Namespaces, and Program Modules -- Connecting the Dots Between jQuery and Javascript

2009-05-05 Thread Matt Kruse
fine and would seem cleaner. Any other questions? :) Matt Kruse

[jQuery] New Google Gadget: jQuery Universe

2009-05-04 Thread Matt Kruse
testing yet, so this really is an alpha kind of release. If you have any feedback, please let me know so I can fancy it up for it's final release! Matt Kruse

[jQuery] Re: performance of jQuery.each

2009-04-24 Thread Matt Kruse
() http://groups.google.com/group/jquery-dev/browse_frm/thread/be468dd3344f5f26/d340a8799e416615 Matt Kruse

[jQuery] Re: rss from plugins.jquery.com?

2009-04-21 Thread Matt Kruse
this: http://plugins.jquery.com/project/Plugins/date Getting this page as RSS would be fantastic. Matt Kruse

[jQuery] Re: rss from plugins.jquery.com?

2009-04-21 Thread Matt Kruse
On Apr 21, 4:09 pm, Karl Swedberg k...@englishrules.com wrote: Here you go: http://plugins.jquery.com/latest_releases/feed Cool, is this new, or did I just not find it when I looked? I'd like to see more items in the feed, too. So it would hopefully reach back 3-5 days at least. Matt Kruse

[jQuery] Re: How to rewrite this in jQuery?

2009-04-20 Thread Matt Kruse
(){ if (!this.id) this.id = this.rel; }); Of course, it would probably be better to avoid this altogether and use the rel attribute to make selections to begin with. Matt Kruse

[jQuery] Re: How can I freeze the title row in a table?

2009-04-08 Thread Matt Kruse
://www.javascripttoolbox.com/lib/floatingheader/ Hope that helps, Matt Kruse

[jQuery] Re: table filtering

2009-03-31 Thread Matt Kruse
(), and avoid the find() calls by using native DOM methods if this doesn't offer any speed-up. Matt Kruse

[jQuery] Re: Slow jQuery Event Cleanup in Firefox

2009-03-26 Thread Matt Kruse
and other factors is something you have to consider yourself. Matt Kruse

[jQuery] Re: JS Toolbox - Sortable Table

2009-03-23 Thread Matt Kruse
and tbody for your content. You can email me privately if it still doesn't work after fixing that. Matt Kruse

[jQuery] Re: compare jQuery objects

2009-03-19 Thread Matt Kruse
++) { if (this[i]!==compareTo[i]) { return false; } } return true; } $('#home').equals( $('#home') ); // True! Matt Kruse

[jQuery] Re: why coding like this:(function(){})();

2009-03-15 Thread Matt Kruse
consider this to be semantics, but it's important. :) Matt Kruse

[jQuery] Re: Global Object, Scope question

2009-03-10 Thread Matt Kruse
= obj.defaultChecked; } ... } Matt Kruse

[jQuery] Re: checkbox array

2009-03-02 Thread Matt Kruse
any one of many discussions on the web on this topic. Matt Kruse

[jQuery] Re: checkbox array

2009-03-02 Thread Matt Kruse
, not ID or NAME. http://lmgtfy.com/?q=name+attribute+cdata+id+token ;) Matt Kruse

[jQuery] Re: What can we use in place of $.browser?

2009-02-25 Thread Matt Kruse
to check the browser would benefit from reading more about feature detection and why it is almost always a better strategy. It just doesn't come naturally at first for many, and you might struggle through some yeah, BUT! moments, but in the end you'll be better off. Matt Kruse

[jQuery] Re: Best Practices, Am I Using Them?

2009-02-25 Thread Matt Kruse
. Matt Kruse

[jQuery] Re: Extending a plugin

2009-02-18 Thread Matt Kruse
when implemting jQuery, and it would be great if there were some better models and guidelines for plugin development that would make the end results better for everyone. Matt Kruse

[jQuery] Re: A question for John Resig

2009-02-18 Thread Matt Kruse
. It's just a minor quibble anyway. It's similar to lines like this in the jquery source: if ( typeof text !== object text != null ) Fixing things like this would tighten and improve the code a bit, IMO. Matt Kruse

[jQuery] Re: HELP: Screening questions for JavaScript developer candidates:

2008-12-31 Thread Matt Kruse
of questions. It seems to have been written by someone with very limited javascript knowledge. The fact that they mistake closures for enclosures and call the topic super-impressive would cause me to run away immediately. Matt Kruse

[jQuery] Re: toggleClass and CSS inheritance

2008-11-06 Thread Matt Kruse
for me, both in IE6 and FF3. And I don't see why it wouldn't change. How are you testing it? Matt Kruse

[jQuery] ANNOUNCE: Context Menu Plugin v1.0 - new plugin with themes, highly extensible

2008-10-20 Thread Matt Kruse
the CSS is straight-forward and documented. There are many examples showing off lots of the functionality here. The best way to see what this plugin can do is to try it out! http://www.javascripttoolbox.com/lib/contextmenu/ I hope it is useful to some of you. Feedback is of course appreciated. Matt

[jQuery] Re: Bug with JQuery is?

2008-10-02 Thread Matt Kruse
if the item to be matched is contained within the results. This would be slow in some cases, for sure, but would probably behave as many people expect. It seems like the behavior of .is() confuses a lot of people when they first use it (myself included). Matt Kruse

[jQuery] NEW PLUGIN (beta): ContextMenu

2008-10-02 Thread Matt Kruse
, but I think that a lot of people might find it useful. I welcome any feedback! Thanks! Matt Kruse

[jQuery] Re: custom / slimmed-down jquery possible?

2008-09-19 Thread Matt Kruse
If you've used jQuery on other pages, then it's very likely that the js has been cached in the user's browser anyway. Loading it again should not affect load times in most cases. Matt Kruse On Sep 18, 3:50 pm, Alex Weber [EMAIL PROTECTED] wrote: That's possibly the smartest thing I've heard

[jQuery] Re: dates - fourth Saturday from any given date

2008-09-18 Thread Matt Kruse
that helps, Matt Kruse

[jQuery] getting/setting height() in IE6 quirks mode behaves inconsistently

2008-09-17 Thread Matt Kruse
() is called, it returns the internal height, minus borders and padding. When height(val) is called, the height includes borders and padding. I believe these should behave consistently in quirks mode. In standards mode they work fine. For now I will write a fix that switches based on compatMode. Matt Kruse

[jQuery] Re: Event delegation and accounting for children/descendants

2008-09-17 Thread Matt Kruse
/browse_thread/thread/c39f52b6c5d1feac This is my way of handling event delegation on elements which may have child elements that get the actual event. Matt Kruse

[jQuery] Re: Improvement to delegate plugin to simulate bubbling

2008-09-17 Thread Matt Kruse
on hierarchy could be used. I'm not sure what impact this would have on speed. Matt Kruse

[jQuery] Re: getting/setting height() in IE6 quirks mode behaves inconsistently

2008-09-17 Thread Matt Kruse
work correctly regardless of doctype as well. IMO :) Matt On Sep 17, 5:49 pm, ricardobeat [EMAIL PROTECTED] wrote: There is a reason it's called Quirks mode :) On Sep 17, 2:26 pm, Matt Kruse [EMAIL PROTECTED] wrote: In IE6, quirks mode, I expect this to not change their height of an object

[jQuery] Improvement to delegate plugin to simulate bubbling

2008-09-16 Thread Matt Kruse
(); } }); } }) })(jQuery); Matt Kruse

[jQuery] Re: jQuery test suite on new Google Chrome browser

2008-09-04 Thread Matt Kruse
. Matt Kruse

[jQuery] Re: jQuery test suite on new Google Chrome browser

2008-09-02 Thread Matt Kruse
at some point, IMO, and it's better to be ahead of the curve than playing catch-up. Matt Kruse

[jQuery] Re: Why does my closure not seem to share scope?

2008-07-25 Thread Matt Kruse
); console.log(i:+i); }); } for (var i = 1; i totalPages + 1; i++) { $(#pages_panel).append($(span + i + /span) .click( getClickFunc(i) ); } (careful, above not tested and is highly subject to typos. But the concept should be clear) Matt Kruse

[jQuery] Re: Moving select box options up and down

2008-03-05 Thread Matt Kruse
://www.javascripttoolbox.com/lib/selectbox/jquery.php Matt Kruse

[jQuery] Re: Moving select box options up and down

2008-03-04 Thread Matt Kruse
has some advantages over the link above and could be easily made into a jQuery plugin with a small amount of effort: http://www.javascripttoolbox.com/lib/selectbox/ Matt Kruse

[jQuery] Re: Too many autocompleter plugins

2008-01-27 Thread Matt Kruse
and is what we generally use. I considered releasing it, but thought that another hack-of-a-hack-of-a-hack plugin would just add more confusion. :) Matt Kruse

[jQuery] Re: Fix for BlockUI slowness

2007-11-13 Thread Matt Kruse
into small pieces for this reason, IMO. With browser scripting, you can never be certain that you have considered everything a user may want to do. Making it easier to override specific pieces of logic is a good thing. Thanks, Matt Kruse

[jQuery] Re: [BUG-1.2.1] css(...,function(){ return ...;})

2007-11-13 Thread Matt Kruse
, it's just an immediate execution of an anonymous function (which can also be used to create a closure). Second, I can't think of any reason to do that over just using 5px as the value :) Matt Kruse

[jQuery] Fix for BlockUI slowness

2007-11-12 Thread Matt Kruse
; //var $e = full ? $() : $(el).find('a,:input'); //$.each(['mousedown','mouseup','keydown','keypress','click'], function(i,o) { //$e[b?'bind':'unbind'](o, $.blockUI.impl.handler); //}); } Matt Kruse

[jQuery] Re: Copying HTMLElement methods in IE

2007-10-23 Thread Matt Kruse
do: $('#something')[0].tagName ? Matt Kruse

[jQuery] Re: Table show/hide rows slow in IE

2007-10-12 Thread Matt Kruse
the opposite to be true. If you change an element's class in IE, the resulting re-flow of the document can be very slow. For things like changing styles on hover, I always directly manipulate the style of the object rather than change the class, since class changing introduces a noticeable lag in IE. Matt

[jQuery] .is() cannot check against the parent chain?

2007-10-02 Thread Matt Kruse
) { ... } Is there a better way? Matt Kruse

[jQuery] Re: .is() cannot check against the parent chain?

2007-10-02 Thread Matt Kruse
alternative (=v1.2) could be... o.filter(function(){return !$(this).parent().is('unwantedclass');}); True, but I'm needing to checking for the class on any element in the parent chain, not just the immediate parent. So I guess the way I'm doing it will suffice. Thanks for your help! Matt Kruse

[jQuery] Re: BlockUI question

2007-09-20 Thread Matt Kruse
calling blockUI you can use the same element over and over as shown in the last example on this page: Does the example create a memory leak pattern via the circular reference? I haven't checked it with drip, but it looks to me like a leak scenario. Matt Kruse

[jQuery] Re: idea to track plugin updates: myJquery.com

2007-09-17 Thread Matt Kruse
the domain to anyone who builds a working tool similar to what I was thinking of, which it sounds like you are. Matt Kruse

[jQuery] Re: Graceful degradation (Safari 2)

2007-08-30 Thread Matt Kruse
of the sniffing that exists in jQuery already is unnecessary. Matt Kruse

[jQuery] Re: Graceful degradation (Safari 2)

2007-08-30 Thread Matt Kruse
sniffing. Or are there other reasons that I'm not aware of? Matt Kruse

[jQuery] Re: Graceful degradation (Safari 2)

2007-08-30 Thread Matt Kruse
you've limited it to only safari? Fixing browser-specific bugs using browser sniffing is highly suspect and almost never necessary. In almost all cases, the bug/quirk can be fixed in the general case without any check for browser. Matt Kruse

[jQuery] 1.1.4 update breaks page

2007-08-24 Thread Matt Kruse
when I get a chance, but I thought I would post a message now in case anyone else is having a similar problem. Of course, it could be my own problem somewhere, but I'll try to rule that out ;) Matt Kruse

[jQuery] Re: 1.1.4 update breaks page

2007-08-24 Thread Matt Kruse
an updated package and I'd know I couldn't update yet. I'd love to build it if only I had 2 spare seconds in life ;) Matt Kruse

[jQuery] Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread Matt Kruse
instead if you needed to. Matt Kruse

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread Matt Kruse
. The cascade of side-effects is enormous. I don't see any side-effect at all, but I may of course be wrong ;) Matt Kruse

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread Matt Kruse
, so there is no performance hit. And this would be the case in the change I suggested. Matt Kruse

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread Matt Kruse
thing with wait() - it would eat up the following commands so that a setTimeout() could be called and execution could continue when the pause was done. The end result was some kind of slick-looking code in some places. But more of a mental exercise than anything extremely practical ;) Matt Kruse

[jQuery] Re: How does everyone handle the constant updating of jQuery and plug-ins?

2007-07-28 Thread Matt Kruse
and enhancements. If anyone thinks this is a good idea and wants to develop this kind of functionality, I'd be willing to point or transfer the domain to a site that offers this kind of service. Matt Kruse

[jQuery] Re: Syntactic sugar for checking whether an element exists

2007-07-09 Thread Matt Kruse
that .is() is the correct way to do it. It makes jQuery a little more approachable and user-friendly if it has exactly what you're looking for and expect, even though it may just be a wrapper for the real underlying functionality. Matt Kruse

[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread Matt Kruse
to use plugins, the look and feel/API of jQuery to them will in large part be that of the plugins they choose, which leaves jQuery's fate up to random developers creating random plugins. Not so good, IMO. Matt Kruse

[jQuery] Re: Bug? $('#foo #bar')

2007-06-05 Thread Matt Kruse
Specificity is a big reason to use id's. You can make a rule using #id { ... } and know that it will take precedence over all your tag/class-based rules. Matt Kruse

[jQuery] Re: Recommended way to overload jquery method?

2007-04-23 Thread Matt Kruse
and each'ing or whatever and then calls this underlying method on the object's className attribute directly. Is there any reason why it's not done this way? Perhaps there are things I'm not thinking of :) Matt Kruse

[jQuery] Re: serialize problems w/ select menu on IE

2007-04-17 Thread Matt Kruse
it work correctly, but IMO it is worth it. Matt Kruse

[jQuery] Re: Using TableSorter with hide()/show() on table rows

2007-04-13 Thread Matt Kruse
One approach would be to put connected rows in separate tbody tags, then sort the tbody objects based on the first tr in the tbody. This would be a specialized way of sorting, though, and you would probably need to write some custom code to accomplish it. Matt Kruse On Apr 13, 12:53 pm, Chris

[jQuery] Determine if a table cell is visible or not?

2007-04-11 Thread Matt Kruse
may also be display:none which would cause it to be hidden as well, and those tags are not parents of the cell itself. Checking the cell's current 'display' value will of course get me nowhere. I've begun writing logic to handle this case, but it would be great if someone has already done it! Matt

[jQuery] Re: table paging and sorting together

2007-04-09 Thread Matt Kruse
I am trying to finish up my table sorting/paging/filtering plugin here: http://www.JavascriptToolbox.com/lib/table/ (been trying to finish it up for a while... sick kids don't mix well with javascript development free time...) It works fine with sorting, filtering, and paging all on the same