[jQuery] Re: Any kind soul to help me figure out whats wrong?

2009-11-15 Thread Brandon
kground:#00 none repeat scroll 0 0;border:3px double #11;height:50px;margin:0 2px;width:68px;float:left;} thanks so much!! brandon On Nov 16, 4:41 am, Charlie wrote: > not entirely sure what gallery is supposed to do but you can align the thumbs > better changing this css:.galle

[jQuery] Any kind soul to help me figure out whats wrong?

2009-11-15 Thread Brandon
. Thank you!! Brandon

[jQuery] thumbnail gallery messy from blogspot to custom domain

2009-11-14 Thread brandon Tong
Hi there, I have totally no training in jquery so I'm just trying my luck here. I have a thumbnail gallery in blogspot before and it is properly arranged in 2 rows, with 9 in each row. After transferring it to a custom domain, the thumbnail gallery is in a mess and arranged vertically and overlapp

[jQuery] JQuery ClueTip Arrow Issue

2009-08-20 Thread brandon
Without making the tooltip fixed is there a way to have the arrow pointer always display in the same position to the left when it hovers over the selector? i.e. the left arrow will always display in the middle of the container

[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 Neko wrote: > > Okay, so jQuery 1.3.2 defines the visible filter like this: > > Sizzle.selectors.filters.visible = function(elem){ >        return elem.

[jQuery] Re: Form Traversal Best Practices

2009-06-19 Thread Brandon!
eir purpose was. Thanks, Brandon On Jun 19, 1:21 pm, Karl Swedberg wrote: > On Jun 19, 2009, at 2:10 PM, Brandon! wrote: > > > > > So I've always had a couple questions about forms and jQuery, so I > > thought I'd finally ask and see if I can get a straight answer >

[jQuery] Form Traversal Best Practices

2009-06-19 Thread Brandon!
, but I wasn't sure if it makes a difference. XHTML tells us we want checked="checked", but I wasn't sure. Pretty painless, just some curiosity I can hopefully put to rest soon. Thanks, Brandon

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

2009-05-30 Thread Brandon Aaron
for .live() events. http://docs.jquery.com/Events/die#typefn -- Brandon Aaron On Fri, May 29, 2009 at 10:06 PM, Jack Killpatrick 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 particu

[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 wrote: > > I need to reverse the collection jQuery returns when I use > >    $("#some_selector").parents("

[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: 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 wrote: > > Hi all, > > I normally do th

[jQuery] Re: Best book to learn jQuery?

2009-05-18 Thread Brandon Aaron
On Mon, May 18, 2009 at 8:35 AM, Karl Swedberg wrote: > I've heard Learning jQuery 1.3 is a great read, too. ;-) HAHAHA... I think you forgot your disclaimer. :p Karl is a co-author of Learning jQuery. Nonetheless, Learning jQuery 1.3 would be a great choice. :) -- Brandon Aaron

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

[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 wrote: > > Just curious... what's the jQuery-way of saying "Give me all childre

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

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

[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 wrote: > > While virtually every site in existence trumpets using the jQuery DOM- > ready short

[jQuery] Ready event when loading a page with ajax

2009-04-23 Thread Brandon
if this is an acceptable way or if there is a better way. Number 2 is not acceptable because the fragment may be called from several other locations and I don't want repetitious code. Am I being thick headed here? Is there another better way? Brandon

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

2009-04-20 Thread Brandon Aaron
small 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 wrote: > > $.live and Live Query are both wonderful. I am hoping to put them to > extensive use in my projects. > > I have a few questions a

[jQuery] jQuery UI Developer

2009-02-22 Thread Brandon Casci
Hello I know this isn't then general purpose for this list, but I've had a lot of trouble finding someone fluent with jQuery. By any chance, is there a good web UI developer out there with some availability and jQuery fluency? I live in the Boston, MA area. You don't have to live here, but I woul

[jQuery] Re: Minified and Gzip?

2009-02-19 Thread Brandon Aaron
uest_URI.(?:gif|jpe?g|png|swf|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 wrote: > > How do I setup JQuery to be serv

[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] wrote: > > Hi all, > > I was just writing a bit of JS to set the width of some buttons to the > width of the largest. > While doin

[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 wrote: > > Dear FOlk , > I'm going to upgrade my liveQuery code , I figured out that LIVE in

[jQuery] API Browser for your iPhone and iPod Touch

2009-01-28 Thread Brandon Aaron
long page it won't scroll. Just 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 wrote: > > hey, i love jQuery so i made some "i love jQuery" logos for blogs or > what ever. >

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

[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
of the window. You could use bracket notation to reference the method like this. window[ (expr ? 'a' : 'a') ]() -- Brandon Aaron On Sun, Jan 18, 2009 at 9:48 PM, Ami wrote: > > Thank you. > It's working :) > > Can you put a function name in an array ?

[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 wrote: > > Sorry about my grammar, English isn't my lang. > > I am trying to write code like that:

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

2009-01-07 Thread Brandon Aaron
fixes your issue. -- Brandon Aaron On Wed, Jan 7, 2009 at 9:28 PM, Richard D. Worth 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 > > jQ

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

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

2008-11-29 Thread Brandon Aaron
see 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 b

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

[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

[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

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

2008-11-14 Thread Brandon Aaron
On Thu, Nov 13, 2008 at 10:26 PM, n00bert <[EMAIL PROTECTED]> wrote: > > Hi Brandon, > > I put an alert in like so: > > $('#content div.thumb a').livequery('click', function(e) { > alert ('clicked'); >

[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

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

2008-11-13 Thread Brandon Aaron
t;' + href + '"]').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 > &

[jQuery] Re: LiveQuery

2008-11-10 Thread Brandon Aaron
en JS is enabled. http://www.learningjquery.com/2008/10/1-awesome-way-to-avoid-the-not-so-excellent-flash-of-amazing-unstyled-content Hiding something should typically be the job of your CSS. :) -- Brandon Aaron On Mon, Nov 10, 2008 at 6:11 AM, elev3n <[EMAIL PROTECTED]> wr

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

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

2008-11-07 Thread Brandon Aaron
l run 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 trie

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

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

[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

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

2008-11-05 Thread Brandon Aaron
ng good use of reusing styles. Same goes for jQuery code. Matching zero or more elements is a corner stone of being able to progressively enhance your web site/app with unobtrusive javascript. -- Brandon Aaron

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

2008-10-08 Thread Brandon Aaron
bug. I'm not sure when I can find the time to fix 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

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

[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: &

[jQuery] Re: Questions about Flexigrid

2008-10-07 Thread Brandon
Hi Jens, Does this not work to reload your table? $('#tableName').flexReload(); On Aug 19, 4:49 am, Jens Grochtdreis <[EMAIL PROTECTED]> wrote: > Hi, > > auto-height seems possible. just write: > > height: 'auto' > > The same seems not possible for width. But ususally you know the width > of the

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

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

2008-10-06 Thread Brandon Aaron
andle 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,

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

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

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

2008-09-27 Thread Brandon Aaron
Quickly looking over the jEditable docs, 'editable' isn't an actual event. You can instead use a function based live query like this: $('.editable, .bline_measure caption').livequery(function(){ $(this).editable(function(value, settings) { ... }); }); -- Brandon Aa

[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

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

[jQuery] jQuery UI Resizables, iframes and FireFox

2008-09-08 Thread Brandon
t; those mouse events in IE and FireFox? Any help would be appreciated. I was thinking about adding listeners for certain events (mousemove and mouseup maybe) to the iframe or its document and passing those events to the parent document. I'm not quite sure how to go about that though. -Brandon

[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

[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
ouseleave behind 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

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

[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

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

2008-07-21 Thread Brandon Aaron
ing 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: 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 e

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

2008-07-17 Thread Brandon Aaron
It is in the comments ... if you don't have a default value set ... you'll need to set a value like so: $('#element').val("Search").clearonfocus(); or if your html looks like this: then you can just call it like this: $('#element').clearonfocus(); -

[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, > b

[jQuery] Valuable Information

2008-06-19 Thread Brandon Christian
www.BrandonsCastle.com

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

[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: htt

[jQuery] Re: Return data from dimensions.js

2008-05-23 Thread Brandon Aaron
The offset method returns and object with top and left properties. ... var coordsB = $(this).offset({ scroll: false }); ... Now you can get the top and left offsets like this: var top = coordsB.top; var left = coordsB.left; -- Brandon Aaron On Fri, May 23, 2008 at 1:51 PM, teazer <[EM

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

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

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

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

[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&#x

[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

[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

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

2008-05-09 Thread Brandon Aaron
ntioned are already very easy to do 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 featur

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

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

2008-05-09 Thread Brandon Aaron
7;li.hello').animate({ 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

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

2008-05-08 Thread Brandon Aaron
). You can also 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] [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] Re: Attaching Events with Live Query

2008-05-06 Thread Brandon Aaron
You might also 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

[jQuery] Re: dimensiosn plugin

2008-05-02 Thread Brandon Aaron
sition.top; If you only needed the top you could simply just do the following. var top = $('#item1').position().top; Here are the docs for dimensions 1.2: http://docs.jquery.com/Plugins/dimensions -- Brandon Aaron On Fri, May 2, 2008 at 10:04 AM, bdee1 <[EMAIL PROTECTED]> wrote

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

[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

[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

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

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

2008-04-27 Thread Brandon Aaron
Post up an example so that we can see where LiveQuery is breaking for you. -- Brandon Aaron On Apr 27, 8:19 am, Sid <[EMAIL PROTECTED]> wrote: > I face the same problem. > New classes are simply not recognized, making my links disfunctional.

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

2008-04-27 Thread Brandon Aaron
. The docs 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: > >

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

[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); }); --

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

2008-02-03 Thread Brandon Aaron
t whichever method you use (delegate or livequery) outside the loop and use these methods for their strengths. And remember ... optimize, 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

[jQuery] Re: Fighting a closure

2008-01-31 Thread Brandon Aaron
for ( i=0;i<5;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 thi

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

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

2008-01-30 Thread Brandon Aaron
resolves the issue you are having. Otherwise, see if you can create an example for us to look at. -- Brandon Aaron On Jan 29, 9:13 am, Eridius <[EMAIL PROTECTED]> wrote: > my code: > > var append_to = self.element.children('.cr_tab_content'); > var clone_element = self.elem

[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]&g

[jQuery] Re: 1.2.2--strictly bug fixes and optimizations? Or have features been added?

2008-01-01 Thread Brandon Aaron
Here are the bugs that have been fixed in 1.2.2: http://dev.jquery.com/report/22 1.3 will most likely be the next major feature release but only a couple of ideas so far. -- Brandon Aaron On Jan 1, 7:07 am, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] schrieb:>

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

2007-11-24 Thread Brandon Aaron
Try wrapping your context html in a tag. -- Brandon Aaron On Nov 24, 4:16 am, tarini <[EMAIL PROTECTED]> wrote: > If I use this script: > > var str = "xToDo - Gestire progetti con AJAXAttualmente ci > sono progetti e task inseriti nell'applicazione. &

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

[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

  1   2   3   4   5   6   >