Re: [jQuery] Dom Updates?

2007-01-18 Thread Justin Carter
On 1/19/07, Yehuda Katz [EMAIL PROTECTED] wrote:
 What I do is apply a context to the function called by document.ready, and
 use that context in all of the calls I make in it. Then, on load()'s
 complete, I pass the stuff being updated into that method.

 docReady = function(cx) {
   cx = cx || document;
   $(tr:odd, cx).addClass(odd)
 }

 $(docReady);

 $(#container).load(url, function(html) { docReady(html) })

 Something like that should work :-D

 -- Yehuda

That's a great tip Yehuda! Keeps everything contained in 1 nice function :)

cheers,
Justin

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Multiple Ready Blocks

2006-09-26 Thread Justin Carter
On 9/26/06, Michael Geary [EMAIL PROTECTED] wrote:
 Note that there is a handy shortcut for $(document).ready():

 $( function(){} );

 -Mike

Nice tip, thanks Mike! (There's one for the mag Yehuda!)

Justin

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Multiple Ready Blocks

2006-09-26 Thread Justin Carter
On 9/26/06, Klaus Hartl [EMAIL PROTECTED] wrote:
 Justin Carter schrieb:
  On 9/26/06, Michael Geary [EMAIL PROTECTED] wrote:
  Note that there is a handy shortcut for $(document).ready():
 
  $( function(){} );
 
  -Mike
 
  Nice tip, thanks Mike! (There's one for the mag Yehuda!)
 
  Justin
 

 Just FYI, thats not a secret feature, it's also in the API documentation...


 -- Klaus

I see that now, I've just never noticed it before! I guess it's
because when I first picked up jQuery most examples seemed to use
$(document).ready() and I haven't looked THAT closely at $(...) in the
API documentation. You learn something new every day :)

Justin

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Digg push

2006-09-25 Thread Justin Carter
On 9/26/06, Yehuda Katz [EMAIL PROTECTED] wrote:
 You guys have put Visual jQuery on the map. If you can help with one final
 push, I'd be eternally grateful.

I'd suggest getting a Visual jQeury Magazine article on Ajaxian.com. I
think it has a reasonable amount of readers. You can use the
contribute news link on the top right hand corner of the front page:

http://www.ajaxian.com/

cheers,
Justin

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Visual jQuery Magazine

2006-09-22 Thread Justin Carter
On 9/23/06, Yehuda Katz [EMAIL PROTECTED] wrote:
 The release of the first issue of the Visual jQuery Magazine is official.

The mag is excellent Yehuda, congrats! I even joined digg just to digg
it :) I guess we will see a flood of posts in the mailing list in the
coming days/weeks!

Justin

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Bug in .color() / Firefox

2006-09-21 Thread Justin Carter
On 9/21/06, Sam Collett [EMAIL PROTECTED] wrote:
 Expanding on that, this is a basic function to convert to hex. No
 fancy regexp's or string parsing needed:

 function RGBToHex(value)
 {
 var re = /\d+/g;
 var matches = value.match(re);
 var r = parseInt(matches[0]);
 var g = parseInt(matches[1]);
 var b = parseInt(matches[2]);
 return # + r.toString(16) + g.toString(16) + b.toString(16);
 }

 It will work with rgb(255,255,255), rgb ( 255,  255,  255 ) etc

That probably takes care of most of it :) Just a check to see whether
the original string starts with a # and it'd be pretty close to a
working solution.

I wonder if anyone can confirm what values Safari and other browsers
return as the computed style value for color? Hopefully our bases
would be covered with just the hex value prefixed with # and the RGB
notation. Does RGBA ever come into it, or does the alpha value get
pushed into the opacity property or something?

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Bug in .color() / Firefox

2006-09-18 Thread Justin Carter
On 9/18/06, Klaus Hartl [EMAIL PROTECTED] wrote:
 color() returns the computed style and in Firefox this is the RGB
 notation, no matter how you specified the color in the style sheet
 (name, hex, rgb). So this is not a bug.

 I'd write a RgbToHex function that transforms the Rgb value into Hex
 again or simply passes back the value if it is already hex...

Thanks for clearing that up. I was hoping I could just use jQuery to
get a predictable value back from all browsers rather than resorting
to a custom function just to satisfy the Firefox edge case :)


On 9/18/06, Stamen Georgiev [EMAIL PROTECTED] wrote:
 I'm using this function (getCV) to do the trick:
 Hope it helps

Thanks for sharing your code!


Does anyone else think this is something that jQuery should
standardize, or is it just not worth it? Or should it be a new
function .colorHex()?

thanks,
Justin.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] spin 360°

2006-09-15 Thread Justin Carter
On 9/16/06, Armand Datema [EMAIL PROTECTED] wrote:
 here is a YUI version of rotate

 http://blog.360.yahoo.com/blog-ktYYK_s5fqJ2Hu1ryv2QSL0-?cq=1p=245;

Holy crap that page sucks, it uses 100% CPU time on my machine (AMD64
3500+) in each of IE7, Opera 9 and Firefox 1.5.0.3!...

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] spin 360°

2006-09-15 Thread Justin Carter
On 9/16/06, Justin Carter [EMAIL PROTECTED] wrote:
 Holy crap that page sucks, it uses 100% CPU time on my machine (AMD64
 3500+) in each of IE7, Opera 9 and Firefox 1.5.0.3!...

I mean, of course, the two example pages with the rotating stuff, not
that URL itself :)

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Tabs plugin update: autoheight, effects

2006-09-12 Thread Justin Carter
On 9/12/06, abba bryant [EMAIL PROTECTED] wrote:
 In firefox 1.5.0.6 the autoheight seems set to the first tab in the example,
 and when you click the third tab the content overflows onto the tested
 with section below it. The container background seems sized correctly but
 the actual lorem ipsum text overflows.

Klaus, I see the exact same behaviour described here by abba, using
Windows XP and Opera 9.01, Firefox 1.5.0.3, and IE7 Beta 3 (haven't
had time to bother upgrading the last 2 browsers on this PC yet!). So
Windows 2000 doesn't seem to be the common link here.

Maybe you have a cached version of the JS and we're getting a
different version? I'm not sure... But there is definitely something
funny happening!

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Tabs plugin update: autoheight, effects

2006-09-12 Thread Justin Carter
On 9/12/06, Klaus Hartl [EMAIL PROTECTED] wrote:
 This looks exactly like an issue with the height calculation of hidden
 elements John and I thought we had resolved.

Or as you say, maybe something has regressed somewhere along the line...

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Tabs plugin update: autoheight, effects

2006-09-12 Thread Justin Carter
On 9/12/06, Klaus Hartl [EMAIL PROTECTED] wrote:
 I need to know: which version of jQuery do you use? Do you simply go to
 demo page? If so, please make sure that you do not load from cache...

Sorry I should have said that I am just viewing your demo page. I had
never viewed that page before in IE7 Beta 3 nor Firefox 1.5.0.3,
however I may have viewed it before in Opera 9.01 BUT I have just
cleared my cache and it is still happening. So it's definitely not a
caching issue at my end :)

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery easing plugin - pre release

2006-09-07 Thread Justin Carter
On 9/7/06, George Smith [EMAIL PROTECTED] wrote:
 I've been working hard on this, and I reckon I've got it sorted, so now over
 to you for some real world testing before giving it a proper 1.0 status. Any
 and all comments welcome.

 Thanks
 George.

Hi George,

I fired up IE7 and each animation is working fine there - nice work.
Some are quite slick!

However in Opera 9.00 it seems that all the animations are identical,
like it is not overriding the default jQuery animation for some
reason. I've refreshed the page a few times, tried closing the
browser, but still the animations are identical.

I'll upgrade Opera to 9.01 now and see if that helps.

cheers,
Justin.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery easing plugin - pre release

2006-09-07 Thread Justin Carter
 On 9/7/06, George Smith [EMAIL PROTECTED] wrote:
  I've been working hard on this, and I reckon I've got it sorted, so now over
  to you for some real world testing before giving it a proper 1.0 status. Any
  and all comments welcome.
 
  Thanks
  George.

On 9/7/06, Justin Carter [EMAIL PROTECTED] wrote:
 ... in Opera 9.00 it seems that all the animations are identical,
 like it is not overriding the default jQuery animation for some
 reason. I've refreshed the page a few times, tried closing the
 browser, but still the animations are identical.

 I'll upgrade Opera to 9.01 now and see if that helps.

Hmm, nope seems it's still broken in Opera 9.01 (Win).

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery easing plugin - pre release

2006-09-07 Thread Justin Carter
On 9/7/06, George Smith [EMAIL PROTECTED] wrote:
 Hi Justin,

 I've sorted this for Opera now. Opera RegExp seems to be the strictest, I'm
 thinking that will be a good place to start testing RegExp's in the future.

 Thanks,
 George.

Looks good! :)

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jCarousel

2006-09-04 Thread Justin Carter
On 9/5/06, John Resig [EMAIL PROTECTED] wrote:
 What everyone is getting at - and I agree - is that the extra
 (non-semantic) markup should be included dynamically by the plugin.

Thats right, and I didn't mean for the controls to always be included
by the plugin, just in generic cases where no controls were provided.
Also, at first I wasn't sure of the performance implications of having
the script work directly on the list but it seems that wrap() works
pretty well.

I can see this is going to be a very popular jQuery plugin :D

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jCarousel

2006-09-01 Thread Justin Carter
On 9/1/06, jsorgalla [EMAIL PROTECTED] wrote:
 Hi there,

 i'm the next one staying in the line of jQuery plugin authors.
 I've created a new plugin called jCarousel. Its inspired by Bill Scott's
 Carousel Component for YUI.

 Check it out at http://sorgalla.com/pages/jcarousel.html
 and let me know what you think.

 Thanks, Jan

Looks very very polished for a first release, well done :)

To make it a bit less obtrusive for browsers with javascript turned
off might there be a better way to insert the Prev / Next buttons
after the script kicks in, instead of having to put them into the
HTML?

Another reason I would consider that option is from a CMS users point
of view where they know very little HTML, it would save them inserting
the two images, because in those cases the less they need to know
about structural HTML the better!

In an ideal world it would actually be nice to achieve with just a
class name on the unordered list, but I know that might be taking it a
bit too far :)

Again, congrats, I think a lot of people would use your plugin on a
production site today without any worries at all!

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/