[jQuery] Re: :visible fails in MSIE8 (in a ThickBox)

2009-06-26 Thread Brandon Aaron
This is (finally) fixed in latest SVN and will be in jQuery 1.3.3. -- Brandon Aaron On Fri, Jun 26, 2009 at 1:50 PM, Nekura Nekonekura.n...@gmail.com wrote: Okay, so jQuery 1.3.2 defines the visible filter like this: Sizzle.selectors.filters.visible = function(elem){        return

[jQuery] Re: question re: .live() and .empty()

2009-05-30 Thread Brandon Aaron
() events. http://docs.jquery.com/Events/die#typefn -- Brandon Aaron On Fri, May 29, 2009 at 10:06 PM, Jack Killpatrick j...@ihwy.com wrote: I'm guessing that once a .live() instantiation occurs it's there for good. If that's the case, is there a way to destroy it? (in particular as it pertains

[jQuery] Re: Reverse a collection of jQuery elements.

2009-05-27 Thread Brandon Aaron
$.fn.reverse = [].reverse; $('#some_selector').parents('li').reverse(); :) -- Brandon Aaron On Wed, May 27, 2009 at 4:51 PM, simshaun simsh...@gmail.com wrote: I need to reverse the collection jQuery returns when I use    $(#some_selector).parents(li); in order to build a path

[jQuery] Re: Best book to learn jQuery?

2009-05-18 Thread Brandon Aaron
. :) -- Brandon Aaron

[jQuery] Re: Events - Live -v- Livequery

2009-05-18 Thread Brandon Aaron
Only Live Query supports calling a function when an element is matched (or unmatched). If you need this functionality, then you'll need to stick with Live Query. -- Brandon Aaron On Mon, May 18, 2009 at 9:58 AM, Meander365 aarron.pain...@gmail.com wrote: Hi all, I normally do

[jQuery] Re: scrollTop on jQuery object

2009-05-18 Thread Brandon Aaron
There are two ways to get the DOM element out of the jQuery object. Assuming $msgs from your code example, you could get the first message as a DOM element like this: var msg = $msgs.get(0); // or var msg = $msgs[0]; // then get scrollHeight msg.scrollHeight -- Brandon Aaron On Mon, May 18

[jQuery] Re: jQuery-way for filtering self + all children

2009-05-04 Thread Brandon Aaron
FYI... There is an open enhancement ticket that proposes adding an optional selector to the .andSelf() method. http://dev.jquery.com/ticket/4446 -- Brandon Aaron On Mon, May 4, 2009 at 5:11 PM, Pappy helga...@gmail.com wrote: Just curious... what's the jQuery-way of saying Give me all children

[jQuery] Re: jQuery-way for filtering self + all children

2009-05-04 Thread Brandon Aaron
-- Brandon Aaron On Mon, May 4, 2009 at 6:57 PM, Pappy helga...@gmail.com wrote: While it will be nice to pass in a selector to andSelf, it's a shame you'll have to repeat the selector in both the 'find' and 'addSelf'. I'd still rather there be only one function necessary. It's an awfully common

[jQuery] Re: Loading before dom = ready - Best Practices.

2009-04-23 Thread Brandon Aaron
You could use $.getScript to load in the slow loading scripts. Any scripts loaded this way will be non-blocking (asynchronous). -- Brandon Aaron On Thu, Apr 23, 2009 at 2:13 PM, hedgomatic hedgoma...@gmail.com wrote: While virtually every site in existence trumpets using the jQuery DOM

[jQuery] Re: Loading before dom = ready - Best Practices.

2009-04-23 Thread Brandon Aaron
On Thu, Apr 23, 2009 at 3:42 PM, Adam hedgoma...@gmail.com wrote: On Apr 23, 2:57 pm, Brandon Aaron brandon.aa...@gmail.com wrote: You could use $.getScript to load in the slow loading scripts. Any scripts loaded this way will be non-blocking (asynchronous). -- Brandon Aaron

[jQuery] Re: Questions about $.live, Live Query and performance

2009-04-20 Thread Brandon Aaron
number of elements and they exist at runtime then you should still use bind. -- Brandon Aaron On Sun, Apr 19, 2009 at 11:16 AM, Geoffrey geoffreykjqu...@gmail.comwrote: $.live and Live Query are both wonderful. I am hoping to put them to extensive use in my projects. I have a few questions

[jQuery] Re: Minified and Gzip?

2009-02-19 Thread Brandon Aaron
|pdf)$ no-gzip dont-vary # Make sure proxies don't deliver the wrong content Header append Vary User-Agent env=!dont-vary Hope that helps... -- Brandon Aaron On Tue, Feb 17, 2009 at 7:00 PM, ScottChiefBaker scott.ba...@gmail.comwrote: How do I setup JQuery to be server Gzipped? Using apache I

[jQuery] Re: Why does $.width return innerWidth but set outerWidth?

2009-02-13 Thread Brandon Aaron
This isn't the normal behavior. Could you create a test case for this? -- Brandon Aaron On Fri, Feb 13, 2009 at 5:07 AM, [rob desbois] rob.desb...@gmail.comwrote: Hi all, I was just writing a bit of JS to set the width of some buttons to the width of the largest. While doing this I found

[jQuery] Re: live Problem

2009-01-29 Thread Brandon Aaron
Stick with Live Query but grab the latest version of Live Query from GitHub: http://github.com/brandonaaron/livequery/tree/master -- Brandon Aaron On Thu, Jan 29, 2009 at 7:59 PM, Pedram pedram...@gmail.com wrote: Dear FOlk , I'm going to upgrade my liveQuery code , I figured out that LIVE

[jQuery] API Browser for your iPhone and iPod Touch

2009-01-28 Thread Brandon Aaron
click back one more time and then go to that page again and it will magically scroll again. I tweaked the iUI framework to use CSS transforms for the slide animation and it seems to be causing the issue. -- Brandon Aaron

[jQuery] Re: I love jQuery fan logos

2009-01-23 Thread Brandon Aaron
Cool! BTW... You can find the official jQuery and jQuery UI logos here: http://docs.jquery.com/Design_and_Identity :) -- Brandon Aaron On Fri, Jan 23, 2009 at 7:35 AM, chrispie cpiet...@gmail.com wrote: hey, i love jQuery so i made some i love jQuery logos for blogs or what ever. be proud

[jQuery] Re: When to use LiveQuery plugin

2009-01-21 Thread Brandon Aaron
What is the issue you are having? Which version of Live Query are you using? Try using the very latest/edge version of Live Query that you can download from github. http://github.com/brandonaaron/livequery/tree/master -- Brandon Aaron On Wed, Jan 21, 2009 at 12:15 PM, Rics ricardo.ce

[jQuery] Re: When to use LiveQuery plugin

2009-01-19 Thread Brandon Aaron
not supported by live. http://docs.jquery.com/Events/live#typefn If you are using the function based livequeries then you should stick with LiveQuery and upgrade to the git version. http://github.com/brandonaaron/livequery/tree/master -- Brandon Aaron On Mon, Jan 19, 2009 at 10:23 AM, Terry

[jQuery] Re: $(' Expert jQuery JS synatx ' ).show

2009-01-18 Thread Brandon Aaron
I believe you are looking for the following syntax: $(selector)[ (expr ? 'next' : 'before') ]().show(); -- Brandon Aaron On Sun, Jan 18, 2009 at 9:12 PM, Ami aminad...@gmail.com wrote: Sorry about my grammar, English isn't my lang. I am trying to write code like that: var expr=true

[jQuery] Re: $(' Expert jQuery JS synatx ' ).show

2009-01-18 Thread Brandon Aaron
like this. window[ (expr ? 'a' : 'a') ]() -- Brandon Aaron On Sun, Jan 18, 2009 at 9:48 PM, Ami aminad...@gmail.com wrote: Thank you. It's working :) Can you put a function name in an array ?! May you explain me WHY it's working? $('div')[ (true? 'next' : 'before') ]().hide() I

[jQuery] Re: jQuery 1.3 + live/livequery + draggable problem

2009-01-07 Thread Brandon Aaron
issue. -- Brandon Aaron On Wed, Jan 7, 2009 at 9:28 PM, Richard D. Worth rdwo...@gmail.com wrote: I'm not sure you'll have success (yet) combining a (preview) released version of jQuery UI 1.6 with a (preview) released version of jQuery 1.3. Here's a summary jQuery UI 1.5.3 will only work

[jQuery] Re: How beneficial is chaining methods?

2008-12-03 Thread Brandon Aaron
Just a quick clarification on this. The this keyword within the newMethod plugin you just made is already the jQuery object. All you need to do is return this; -- Brandon Aaron On Wed, Dec 3, 2008 at 1:01 PM, 703designs [EMAIL PROTECTED] wrote: There's nothing special about chaining methods

[jQuery] Re: Use of getBoxObjectFor() is deprecated. Try to use element.getBoundingClientRect() if possible.

2008-11-29 Thread Brandon Aaron
if it exists first and then uses it. When Firefox finally removes it, the code should jump to the next branch. Unless they did browser detection :( -- Brandon Aaron On Thu, Nov 27, 2008 at 9:40 AM, edzah [EMAIL PROTECTED] wrote: Searched around and found a old post here but there was no answer. Any idea

[jQuery] Re: Hi all, jquery issue (major) with IE - all versions

2008-11-26 Thread Brandon Aaron
It sounds like you might be trying to set css properties via the .attr method instead of the .css method. -- Brandon Aaron On Wed, Nov 26, 2008 at 10:23 AM, tukutela [EMAIL PROTECTED]wrote: Hi all, I have some additional information which I hope might be of use. the function is passed

[jQuery] Re: table striping performance with livequery

2008-11-24 Thread Brandon Aaron
When dealing with tables, event delegation is almost always the best way to handle it. You might want to give jQuery.listen plugin a try. http://plugins.jquery.com/project/Listen -- Brandon Aaron On Mon, Nov 24, 2008 at 8:36 AM, Carpii [EMAIL PROTECTED] wrote: Hi all, ive just started using

[jQuery] Re: livequery not binding to ajax loaded links in ie6 and ie7?

2008-11-16 Thread Brandon Aaron
No worries! Glad you got it figured out and sorry I wasn't able to get back to you sooner. :) -- Brandon Aaron On Sat, Nov 15, 2008 at 2:39 PM, n00bert [EMAIL PROTECTED] wrote: Got it sorted. ie doesn't like the selector. Now using a different method, but still with livequery. Sorry to have

[jQuery] Re: livequery not binding to ajax loaded links in ie6 and ie7?

2008-11-14 Thread Brandon Aaron
ul li a[href$=' + href + ']').triggerHandler ('click'); return false; }); Safari, Firefox and Opera all show the alert when clicked. ie6 and ie7 do not. In firebug, there are no errors. Any clues? But are there any errors in IE? -- Brandon Aaron

[jQuery] Re: livequery not binding to ajax loaded links in ie6 and ie7?

2008-11-13 Thread Brandon Aaron
+ ']').triggerHandler('click'); -- Brandon Aaron On Thu, Nov 13, 2008 at 9:13 PM, n00bert [EMAIL PROTECTED] wrote: Hi, I have the following code: //link is loaded via ajax into a div in #content //when clicked find a link in #mainMenu with the same href and trigger a click

[jQuery] Re: livequery not binding to ajax loaded links in ie6 and ie7?

2008-11-13 Thread Brandon Aaron
Well, to help debug the issue, try putting an alert within the click handler to make sure the click event is being bound and it isn't livequery causing the issue. Are you getting any script errors on the page? -- Brandon Aaron On Thu, Nov 13, 2008 at 10:04 PM, n00bert [EMAIL PROTECTED] wrote

[jQuery] Re: LiveQuery with Tipsy (tooltip) help

2008-11-07 Thread Brandon Aaron
Your very close... Try this instead: $('a[title]') .livequery(function() { $(this).tipsy({ fade: true, gravity: 'w' }); }); No need to return false. -- Brandon Aaron On Thu, Nov 6, 2008 at 9:14 PM, idealists [EMAIL PROTECTED]wrote: Im got a section of my page which updates via ajax

[jQuery] Re: LiveQuery with Tipsy (tooltip) help

2008-11-07 Thread Brandon Aaron
the following code: jQuery.livequery.run(); That will invoke Live Query as if you modified the DOM with jQuery. -- Brandon Aaron On Fri, Nov 7, 2008 at 10:01 AM, idealists [EMAIL PROTECTED]wrote: Hi Brandon Thanks, so much for your reply I had actually tried that too. And yes this does

[jQuery] Re: Livequery not working with jQuery 1.2.6

2008-11-07 Thread Brandon Aaron
Yeah you'll need to grab the latest version of livequery. -- Brandon Aaron On Fri, Nov 7, 2008 at 2:48 PM, Alexandre Plennevaux [EMAIL PROTECTED]wrote: how about using the latest version of livequery (1.0.2) ? http://plugins.jquery.com/node/1088 I use it with jquery 1.2.6 on several

[jQuery] Re: jQuery, ASP.Net and Drop-Down-Lists

2008-11-06 Thread Brandon Aaron
First place to check would be the selector. Make sure the select element is actually getting selected. I'd recommend using Firebug to help you see if the selector you are using is working and to help you formulate one that does if it isn't. -- Brandon Aaron On Thu, Nov 6, 2008 at 7:42 AM, Damien

[jQuery] Re: empty().append() slow

2008-11-06 Thread Brandon Aaron
It has to do more than just set innerHTML to a blank string to avoid memory leaks. :( -- Brandon Aaron On Thu, Nov 6, 2008 at 6:28 PM, jquertil [EMAIL PROTECTED] wrote: thanks Karl, didn't make a difference. I suppose I'll have to preload everything and show/hide things... ugh. does empty

[jQuery] Re: Can I make jquery not fail silently??

2008-11-05 Thread Brandon Aaron
is a corner stone of being able to progressively enhance your web site/app with unobtrusive javascript. -- Brandon Aaron

[jQuery] Re: dimensions plugin integrated in jquery ?

2008-10-08 Thread Brandon Aaron
That is correct. The dimensions plugin now completely included in jQuery 1.2.6. -- Brandon Aaron On Wed, Oct 8, 2008 at 7:41 AM, Alexandre Plennevaux [EMAIL PROTECTED]wrote: hello! aquick question: is it right that dimensions.js has been included in jquery 1.2.6? So there is no need

[jQuery] Re: LiveQuery won't allow explicit onchange firing?

2008-10-08 Thread Brandon Aaron
it ... but in the mean time you can use the above code to work around it. -- Brandon Aaron On Wed, Oct 8, 2008 at 11:04 AM, Jake McGraw [EMAIL PROTECTED] wrote: Using livequery for a project when I ran across an issue using the following code: $(input).livequery( change, function

[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-07 Thread Brandon Aaron
Make sure your styles are included before the script tags. Is this happening in a particular browser? -- Brandon Aaron On Tue, Oct 7, 2008 at 1:58 PM, John D. [EMAIL PROTECTED] wrote: Hmm...I'm still having trouble with this. my showHide script is as follows: $(document).domready(function

[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-06 Thread Brandon Aaron
the display when JS is enabled. $(document).domready(funciton() { $('body').addClass('jsEnabled'); // let css know js is enabled }); Now in CSS you can just say: body.jsEnabled p.firstparagraph { display: none; } -- Brandon Aaron On Mon, Oct 6, 2008 at 7:11 PM, John D. [EMAIL PROTECTED

[jQuery] Re: Is it possible to avoid jumpy / disappearing content

2008-10-06 Thread Brandon Aaron
Actually it is located at: http://brandonaaron.net/jquery/snippets/domready/jquery.domready.js :) -- Brandon Aaron On Mon, Oct 6, 2008 at 8:09 PM, Brandon Aaron [EMAIL PROTECTED]wrote: The document ready function in 1.2.6 was updated to wait on styles. This is a good thing sometimes but other

[jQuery] Re: jEditable Clone Referring to the Original Element, livequery ok to use?

2008-09-29 Thread Brandon Aaron
After glancing over the JS it looks like you are using both live query and clone(true). Using both is unnecessary and might be the cause of the issue. Just try using one of the two and see if that resolves your issue. -- Brandon Aaron On Mon, Sep 29, 2008 at 2:04 PM, Wayne [EMAIL PROTECTED] wrote

[jQuery] Re: jEditable Clone Referring to the Original Element, livequery ok to use?

2008-09-28 Thread Brandon Aaron
Ahh ... I guess I just misunderstood :) Yes it is possible to use LiveQuery to bind custom events using LiveQuery. -- Brandon Aaron On Sun, Sep 28, 2008 at 2:48 PM, Mika Tuupola [EMAIL PROTECTED]wrote: On Sep 27, 2008, at 11:39 PM, Brandon Aaron wrote: I understood he was binding Jeditable

[jQuery] Re: livequery and iui

2008-09-26 Thread Brandon Aaron
In this particular case event delegation might serve you better. Live Query really only works if you are using jQuery methods to modify/manipulate the DOM. The iui code does not use jQuery and that is why Live Query can't see those particular updates. -- Brandon Aaron On Fri, Sep 26, 2008 at 12

[jQuery] Re: jquery/livequery assign behaviour to element by class

2008-09-16 Thread Brandon Aaron
Replace the first line $('.deleteform').submit(function() { with this $('.deleteform').livequery('submit', function() { -- Brandon Aaron On Tue, Sep 16, 2008 at 8:30 PM, onmountain [EMAIL PROTECTED] wrote: Can I use livequery with ajax? For instance, I am adding and deleting elements

[jQuery] Re: Convert MooTools to jQuery

2008-09-05 Thread Brandon Aaron
This should be the equivalent in jQuery code. $(document).bind('ready', function() { $('.Boite') .find('div').hide().end() .find('a') .bind('click', function(event) { $(this).parent().find('div').toggle(); }) }); -- Brandon Aaron On Fri, Sep 5, 2008 at 12:38 PM, israel.hayes [EMAIL PROTECTED

[jQuery] Re: Possible jQuery versions conflict

2008-09-04 Thread Brandon Aaron
Just use jQuery.noConflict(true) to rename the jQuery namespace to whatever you want. http://docs.jquery.com/Core/jQuery.noConflict#extreme var test = jQuery.noConflict(true); Now you can use test(selector) instead of $(selector) or jQuery(selector) -- Brandon Aaron On Thu, Sep 4, 2008 at 3:09

[jQuery] Re: Mouseover /Mouseout div issue

2008-08-31 Thread Brandon Aaron
the scenes. $(...).hover(fn1, fn2); -- Brandon Aaron On Sun, Aug 31, 2008 at 8:26 PM, MikeyJ [EMAIL PROTECTED] wrote: Hi All, I'm working on something similar in functionality to the lexus website. I've got a nav element that shows a large div on mouseover and hides it on mouseout. This div

[jQuery] Re: jQuery 1.2.6 event.altKey is undefined

2008-08-24 Thread Brandon Aaron
It has already been fixed in SVN. If you don't want to use the SVN version then simply reference the altKey property like this: event.originalEvent.altKey -- Brandon Aaron On Sun, Aug 24, 2008 at 1:06 PM, Tzury [EMAIL PROTECTED] wrote: The latest version that behave correctly is 1.2.4. How

[jQuery] Re: JQuery exists - anything in core or a plugin that does this?

2008-08-22 Thread Brandon Aaron
Is there a particular method/plugin you are wanting to write this for? Most jQuery methods and plugins operate on 0 or more matched elements. -- Brandon Aaron On Fri, Aug 22, 2008 at 7:54 AM, James [EMAIL PROTECTED] wrote: Hi, I can't seem to find anything that does the following: $(img

[jQuery] Re: offset() returns different values between resize and onload events

2008-07-21 Thread Brandon Aaron
I haven't tried to reproduce this yet but I'm wondering if the body has any margin (default or not). If so try setting the margin to 0 on the body. -- Brandon Aaron On Jul 21, 4:20 pm, jquertil [EMAIL PROTECTED] wrote: I'm checking offset() return values in both events: window resize and load

[jQuery] Re: offset() returns different values between resize and onload events

2008-07-21 Thread Brandon Aaron
a setTimeout(fn, 0) to see if that corrects the issue. -- Brandon Aaron On Mon, Jul 21, 2008 at 6:56 PM, jquertil [EMAIL PROTECTED] wrote: That was my first thought, too, and it's been mentioned before on this list. I always set margin and padding of html and body to 0;

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

2008-07-17 Thread Brandon Aaron
I wrote this a while back: http://dev.jquery.com/browser/trunk/plugins/clearonfocus/jquery.clearonfocus.js -- Brandon Aaron On Thu, Jul 17, 2008 at 11:19 AM, Andy Matthews [EMAIL PROTECTED] wrote: Is there a plugin for this by chance? I know it's pretty quick to write, but wanted to find out

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

2008-07-17 Thread Brandon Aaron
Aaron On Thu, Jul 17, 2008 at 12:40 PM, Andy Matthews [EMAIL PROTECTED] wrote: I thought as much. Thanks Brandon. Standard usage applies? $('#element).clearonfocus(); ? -- *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Brandon

[jQuery] Re: Livequery event firing multiple times

2008-05-30 Thread Brandon Aaron
After a quick glance at the code you pasted... it looks like you are using the Live Query plugin within the click event. This somewhat negates the purpose of Live Query. Try moving the Live Query block outside the 'click' binding block ... within the document.ready block. -- Brandon Aaron On Fri

[jQuery] Re: change innerHTML

2008-05-27 Thread Brandon Aaron
You can do this several ways: $('#progressBarText')[0].innerHTML = '76%'; $('#progressBarText').attr('innerHTML', '76%'); And finally the preferred method: $('#progressBarText').html('76%'); The docs for the html method: http://docs.jquery.com/Attributes/html#val -- Brandon Aaron On Tue, May

[jQuery] Re: .get(0) fails in 1.2.5

2008-05-21 Thread Brandon Aaron
This is working for me. Must be a little more deeply rooted. Could you try and narrow things down? Create a simplified test-case that we could all explore? -- Brandon Aaron On Wed, May 21, 2008 at 12:53 PM, jstrebel [EMAIL PROTECTED] wrote: Hi there, Noob.. and first post. Thanks

[jQuery] Re: livequery in navigation

2008-05-20 Thread Brandon Aaron
I'm a little confused about your setup. Could you post a link to the site or an example of the issue you are having? Also, I'm sure it was just a typo but your missing the $ on ('#home') and ('#search'). -- Brandon Aaron On Wed, May 7, 2008 at 10:47 AM, kws452 [EMAIL PROTECTED] wrote: I am

[jQuery] Re: attr('form') not work in firefox

2008-05-19 Thread Brandon Aaron
1.2.4 is available ... just not the release notes :) http://code.jquery.com/jquery.js -- Brandon Aaron On Mon, May 19, 2008 at 9:54 AM, Ariel Flesler [EMAIL PROTECTED] wrote: No, you're right. Form elements (input, select, textarea, etc) do have a 'form' attribute. I think it's even cross

[jQuery] Re: JQuery and ASP.NET AJAX

2008-05-19 Thread Brandon Aaron
We've fixed several specific issues in dealing with ASP.Net's AJAX framework in the past. As far as I know to date we play nice with ASP.Net. -- Brandon Aaron On Mon, May 19, 2008 at 10:12 AM, Mike [EMAIL PROTECTED] wrote: I used ASP.NET Ajax to make webmethod calls all the time and I know

[jQuery] Re: Making all ids invisible except one

2008-05-15 Thread Brandon Aaron
Like Karl said and here are the docs for the :not selector and the .not method http://docs.jquery.com/Selectors/not#selector http://docs.jquery.com/Traversing/not#expr -- Brandon Aaron On Thu, May 15, 2008 at 10:17 PM, Karl Rudd [EMAIL PROTECTED] wrote: $('div.subNav').not('#myId').hide

[jQuery] Re: why is droppable() 's init method trying to read outerWidth() of a div?

2008-05-11 Thread Brandon Aaron
jQuery UI depends on jQuery 1.2.4a because we are making new updates to jQuery to make sure jQuery UI performs its best. The final version of jQuery UI will also have a final version of jQuery to go along with it. -- Brandon Aaron On May 11, 8:59 pm, Eric Ongerth [EMAIL PROTECTED] wrote: Oh

[jQuery] Re: [jQuery][ANN] jQuery.batch 1.0

2008-05-09 Thread Brandon Aaron
({ width: width }, 'slow'); Thanks for a nice real-world example. :) In testing this I found a bug and created a new release 1.0.1. -- Brandon Aaron On Fri, May 9, 2008 at 2:08 AM, Alexandre Plennevaux [EMAIL PROTECTED] wrote: Brandon, i believe this is a clever little plugin. I i understand

[jQuery] Re: [jQuery][ANN] jQuery.batch 1.0

2008-05-09 Thread Brandon Aaron
I misspelled reverse in my code example... It should be: var width = $('li.hello img').widths().sort().reverse()[0]; $('li.hello').animate({ width: width }, 'slow'); -- Brandon Aaron On May 9, 9:47 am, Brandon Aaron [EMAIL PROTECTED] wrote: Close but in your example newWidths is an array

[jQuery] Re: [jQuery][ANN] jQuery.batch 1.0

2008-05-09 Thread Brandon Aaron
with arrays and probably easy to extend the Array object to do them otherwise. -- Brandon Aaron On Fri, May 9, 2008 at 10:57 AM, Alexandre Plennevaux [EMAIL PROTECTED] wrote: Hi Brandon! in your blog post you ask for suggested features. Frankly i'm stunned by how in one line you addition all

[jQuery] Re: jQuery TShirt

2008-05-09 Thread Brandon Aaron
Something like: $('people:female').find('girlfriend') = [] -- Brandon Aaron On Fri, May 9, 2008 at 10:33 AM, CVertex [EMAIL PROTECTED] wrote: love it. I'd prefer something clever with code on it than just the logo. just the way i eval... On May 9, 5:16 am, Josh Nathanson [EMAIL

[jQuery] [jQuery][ANN] New jQuery group on LinkedIn

2008-05-08 Thread Brandon Aaron
You can join the LinkedIn group by following this invite link: http://www.linkedin.com/e/gis/100943/4C28294034F5 -- Brandon Aaron

[jQuery] [jQuery][ANN] jQuery.batch 1.0

2008-05-08 Thread Brandon Aaron
just call $(...).batch('methodName', arg1, arg*n). Download: http://plugins.jquery.com/project/batch Blog post: http://blog.brandonaaron.net/2008/05/08/jquery-batch/ -- Brandon Aaron

[jQuery] Re: Attaching Events with Live Query

2008-05-06 Thread Brandon Aaron
investigate utilizing one of the event delegation plugins for jQuery such as Ariel Flesler's Listen plugin. -- Brandon Aaron On Tue, May 6, 2008 at 8:42 PM, Adam Weis [EMAIL PROTECTED] wrote: Hello, I'm having an issue attaching some events to a simple accordion that is loaded via ajax. I've

[jQuery] Re: livequery with hoverIntent

2008-05-02 Thread Brandon Aaron
I don't see anything wrong with the code you posted. Could you post more of the code or a test page? -- Brandon Aaron On Fri, May 2, 2008 at 8:26 AM, Alexandre Plennevaux [EMAIL PROTECTED] wrote: hello! i need to assign a behaviour triggered via the hoverIntent plugin to elements fetched

[jQuery] Re: [autocomplete] dimension.js requirement

2008-04-29 Thread Brandon Aaron
Dimensions, as it is an oft-required plugin, is now part of the core in SVN. -- Brandon Aaron On Tue, Apr 29, 2008 at 11:43 AM, Aaron Barker [EMAIL PROTECTED] wrote: Is it possible to make this an optional component of the autocomplete plugin? If I always only want 10 or so options

[jQuery] Re: Loading the bgiframe script only for IE

2008-04-29 Thread Brandon Aaron
I'd recommend just using conditional comments to load the bgiframe plugin for IE 6 only. http://msdn2.microsoft.com/en-us/library/ms537512(VS.85).aspx -- Brandon Aaron On Tue, Apr 29, 2008 at 1:05 PM, Aaron Barker [EMAIL PROTECTED] wrote: I looked but couldn't find anything on this. So

[jQuery] Re: Livequery not binding on div after a .load method

2008-04-27 Thread Brandon Aaron
LiveQuery is actually working but jQuery's text method doesn't work on the title tag. To check that it is working simply add a console.log statement or uncomment your alert line. If you aren't getting the log statement/alert then please post a more complete example. -- Brandon Aaron On Apr 26

[jQuery] Re: Livequery not binding on div after a .load method

2008-04-27 Thread Brandon Aaron
are here: http://docs.jquery.com/Plugins/livequery -- Brandon Aaron On Apr 26, 4:12 pm, Alexandre Plennevaux [EMAIL PROTECTED] wrote: correct me if i'm wrong but i think livequery needs to know on which event type it should be attached to: so something like this _ $(#pagetitle) .livequery

[jQuery] Re: Correct viewport height?

2008-04-27 Thread Brandon Aaron
Which version of jQuery are you using? Dimensions 1.2 no longer has the width/height methods as they have been moved to the core. This sounds like a familiar issue in jQuery 1.2.1/2 but was fixed in jQuery 1.2.3. -- Brandon Aaron On Sun, Apr 27, 2008 at 1:06 PM, HertzaHaeon [EMAIL PROTECTED

[jQuery] Re: How to bind to a dynamically created object

2008-02-03 Thread Brandon Aaron
, optimize and optimize some more when dealing with large tables. -- Brandon Aaron On Feb 2, 11:06 am, wyo [EMAIL PROTECTED] wrote: On Feb 2, 5:06 pm, Glen Lipka [EMAIL PROTECTED] wrote:http://brandonaaron.net/docs/livequery/ This will do the trick. Perfect. Yet if I rework the sample to bind

[jQuery] Re: how to bind one action to multiple events?

2008-02-03 Thread Brandon Aaron
With jQuery 1.2.2 you can now bind multiple events at once. Just separate them with a space. I'd also suggest using the new mouseenter and mouseleave events. $('a') .bind(mouseenter focus mouseleave blur, function(event) { console.log(event.type); }); -- Brandon Aaron On Feb 3, 12

[jQuery] Re: Fighting a closure

2008-01-31 Thread Brandon Aaron
;i5;i++ ) { (function(num) { $(#port+num).click(function() { bigchart(num) }); })(i); } However I'd suggest using one of the other example posted here. :) -- Brandon Aaron On Jan 30, 2:10 pm, timothytoe [EMAIL PROTECTED] wrote: I think I submitted a half-done version

[jQuery] Re: .clone not work in FF or IE, please help

2008-01-30 Thread Brandon Aaron
jQuery.clone(true) will only clone the events that it knows about ... in other words ... it clones the events it bound. -- Brandon Aaron On Jan 29, 10:35 am, chrismarx [EMAIL PROTECTED] wrote: should clone also work for behaviors that were not added by jquery? (like a google map?) i tried

[jQuery] Re: Bug with dimensions height() fn in IE7

2008-01-10 Thread Brandon Aaron
The width and height methods are actually found in the core. If you are able ... Try using the latest SVN version (jQuery 1.2.2 beta2). There have been lots of improvements to the width/height methods. -- Brandon Aaron On Jan 10, 11:20 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote

[jQuery] Re: problem with $(String expr, JQuery context)

2007-11-24 Thread Brandon Aaron
Try wrapping your context html in a span tag. -- Brandon Aaron On Nov 24, 4:16 am, tarini [EMAIL PROTECTED] wrote: If I use this script: var str = h1xToDo - Gestire progetti con AJAX/h1Attualmente ci sono b/b progetti e b/b task inseriti nell'applicazione.br/ ; var context = $(str

[jQuery] Re: livequery $(this) is null? (this is second post, accidentally clicked post)

2007-11-20 Thread Brandon Aaron
I created an example based on the code you provided and was unable to reproduce an error. Could you provide an example online somewhere? http://brandonaaron.net/jquery/issues/livequery/table_test/table_test_2.html -- Brandon Aaron On Nov 20, 7:09 pm, wahyudinata [EMAIL PROTECTED] wrote

[jQuery] Re: how to use :empty selector

2007-11-19 Thread Brandon Aaron
You can use the filter method to select what you need. It would look something like this: $(document).ready(function() { $('input[type=text]').filter(function() { return !!$(this).val(); }); }); -- Brandon Aaron On Nov 19, 5:42 am, James Dempster [EMAIL PROTECTED] wrote: :empty

[jQuery] Re: dimensions plugin: relativeTo not working?

2007-11-19 Thread Brandon Aaron
The relativeTo needs to be an offsetParent of the element you are trying to get the offset of. Otherwise you need to get the offset of both the elements and do the math. BTW ... jQuery 1.2.x and the upcoming Dimensions 1.2 does not have a relativeTo option. -- Brandon Aaron On Nov 17, 9:41 am

[jQuery] Re: Triggering event added by addEventListener

2007-11-15 Thread Brandon Aaron
The best approach will be to just use jQuery to bind the method if you want to trigger that event. -- Brandon Aaron On Nov 15, 11:49 am, prakash [EMAIL PROTECTED] wrote: Hello all, I recently started using jQuery in Greasemonkey scripts and am loving it. I have two Greasemonkey scripts

[jQuery] Re: Scriptdoc-file for jQuery 1.2.1

2007-11-15 Thread Brandon Aaron
the results from the wiki into xml which will enable sites like Visual jQuery to run again! Please be patient while we transition the docs because soon they will be even better than what they were. -- Brandon Aaron On Nov 15, 8:03 pm, Tom Sieroń [EMAIL PROTECTED] wrote: On Nov 15, 2007 3:47 PM

[jQuery] Re: Scripts at the bottom of the page

2007-11-14 Thread Brandon Aaron
Actually, it isn't outside the scope of jQuery and it is now fixed in Rev 3822. -- Brandon Aaron On Nov 13, 10:34 pm, Brandon Aaron [EMAIL PROTECTED] wrote: This is pretty much outside the scope of jQuery :/. You should bind events that have the potential to be triggered before the page

[jQuery] Re: gradient plugin - wont work on td's?

2007-11-14 Thread Brandon Aaron
Try wrapping the contents of the td with a span first and then applying the gradient to the span. Something like this: $('td').wrapInner('span /').find(' span').gradient(); -- Brandon Aaron On Nov 14, 12:13 pm, bdee1 [EMAIL PROTECTED] wrote: anyone have an idea on this? bdee1 wrote: i am

[jQuery] Re: gradient plugin - wont work on td's?

2007-11-14 Thread Brandon Aaron
Try: $('.gradient').wrapInner('span /').find(' span').gradient(); On Nov 14, 1:29 pm, bdee1 [EMAIL PROTECTED] wrote: currently i am matching the td's based on a gradient class. so like this: $('.gradient').gradient(); how that work? Brandon Aaron wrote: Try wrapping the contents

[jQuery] Re: Scriptdoc-file for jQuery 1.2.1

2007-11-14 Thread Brandon Aaron
jQuery 1.2 has removed the scriptdoc from the source in favor of managing documentation via the wiki (http://docs.jquery.com/). -- Brandon Aaron On Nov 14, 7:35 am, dehneg [EMAIL PROTECTED] wrote: Hi all, I am looking for the scriptdoc file (http://www.scriptdoc.org/) for jQuery 1.2.1

[jQuery] Re: offset() causes error in IE

2007-11-14 Thread Brandon Aaron
with a span. -- Brandon Aaron On Nov 14, 5:49 pm, Bernd Matzner [EMAIL PROTECTED] wrote: Hi, I have a page in which I'm trying to use offset() on a checkbox (using jQuery 1.2.1) In FF, everything works fine, but I'm getting an Object doesn't support this property or method in IE6 and IE7

[jQuery] Re: Scripts at the bottom of the page

2007-11-13 Thread Brandon Aaron
to interact with the page. -- Brandon Aaron On Nov 9, 4:55 pm, mike503 [EMAIL PROTECTED] wrote: Yes, please do. http://dev.jquery.com/ticket/1911 Hopefully it will get the right eyes looking at it now :)

[jQuery] Re: Event binding memory leak

2007-11-05 Thread Brandon Aaron
This is fixed in the latest SVN. -- Brandon Aaron On Nov 4, 8:48 pm, tim connor [EMAIL PROTECTED] wrote: When a page is unloaded, jQuery is not unbinding any bound events causing a memory leak in IE6. Below is a very simple test page. If it is opened in IE6 you can see the memory usage

[jQuery] Re: LiveQuery (Discuss Please)

2007-11-02 Thread Brandon Aaron
a _very_ common problem in AJAX development ... the need to rebind events to elements added to the DOM after the initial page load. It does this _very_ well and on most common uses there will be absolutely no noticeable performance hit. -- Brandon Aaron On Nov 2, 12:26 pm, Jack Killpatrick [EMAIL

[jQuery] Re: LiveQuery (Discuss Please)

2007-11-01 Thread Brandon Aaron
. -- Brandon Aaron On Nov 1, 10:09 am, Lee Hinde [EMAIL PROTECTED] wrote: On 10/31/07, Yehuda Katz [EMAIL PROTECTED] wrote: So as far as I'm concerned, livequery is the biggest advance in jQuery since its inception (no, I am not its author). I'm trying to understand why it's having

[jQuery] Re: live query

2007-10-03 Thread Brandon Aaron
(); }); -- Brandon Aaron On 10/3/07, bluejam [EMAIL PROTECTED] wrote: Hi Im adding an element to Dom on fly, I then want to add an action to that element, i've tried live query but it is adding the action to ALL elements not just the one i referenced.: This is being added to: h1spanClothing

[jQuery] Re: live query

2007-10-03 Thread Brandon Aaron
running some code in firebug to see what results you are actually getting from that selector. -- Brandon Aaron On 10/3/07, bluejam [EMAIL PROTECTED] wrote: Hi im using the very latest version of jQuery I can't post example online as its on my dev server and the project is too hush hush

[jQuery] Re: 1.2 bug? $(window).height(); always the same as $('body').height();

2007-10-02 Thread Brandon Aaron
This is fixed in the latest svn. -- Brandon Aaron On 10/2/07, mundizzle [EMAIL PROTECTED] wrote: I have a page with content that goes below the fold. I'm trying to calculate the height of the browser's viewable area this way... $(window).height(); ...but it always returns the height

[jQuery] Re: Interesting post about conflict with jQuery and SWFObject

2007-09-29 Thread Brandon Aaron
I believe this issue will be resolved with the next release of jQuery. It has to do with the document.ready detection. SWFObject uses innerHTML which causes the conflict when the DOM isn't ready yet. I haven't tested this yet ... -- Brandon Aaron On 9/28/07, Rey Bango [EMAIL PROTECTED] wrote

[jQuery] Re: ANNOUNCEMENT: Chili 1.9 much faster

2007-09-28 Thread Brandon Aaron
it while it is out of view. -- Brandon Aaron On 9/27/07, Guy Fraser [EMAIL PROTECTED] wrote: Brandon Aaron wrote: Speaking of that ... I've got a plugin ... unreleased/undocumented at the moment ... called viewable. It gives you a percentage of the element that is viewable. http

[jQuery] Re: When will the API be updated for 1.2.1?

2007-09-27 Thread Brandon Aaron
at the actual markup of the Wiki is a pain and doesn't scale well for inclusion of plugins, etc. I've made a little progress (still have a long way to go) with using Hpricot to at least get the core docs into XML. -- Brandon Aaron On 9/27/07, Andy Matthews [EMAIL PROTECTED] wrote: I use this: http

  1   2   3   4   >