Brandon, i believe this is a clever little plugin. I i understand correctly,
here is a real life example i experienced just 2 days ago  where i had such
markup:


<li class="hello">
                    <img width="316" src="photos/sombra/Image_001.jpg"/>
                    <img width="629" src="photos/sombra/Image_002.jpg"/>
                    <img width="630" src="photos/sombra/Image_003.jpg"/>
                    <img width="638" src="photos/sombra/Image_004.jpg"/>
                    <img width="631" src="photos/sombra/Image_005.jpg"/>
                    <img width="630" src="photos/sombra/Image_006.jpg"/>
                    <img width="629" src="photos/sombra/Image_007.jpg"/>
                </li>


I needed to resize the LI element according to its children IMG element attr
width. What i did is loop through the jquery collection looking for the
width attribute value.

with your plugin it would be just

var newWidth = $('li.hello').attrs('width');
$('li.hello').animate({width: newWidth},"slow");

Am i correct?




On Fri, May 9, 2008 at 5:40 AM, Brandon Aaron <[EMAIL PROTECTED]>
wrote:

> jQuery.batch is a small extension (951 bytes min'd, 520 bytes gzipped) to
> jQuery that allows you to batch the results of any jQuery method, plugin
> into an array. By default the batch plugin aliases the getter methods in
> jQuery by adding an 's' to the end (attrs, offsets, vals ...). 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
>



-- 
Alexandre Plennevaux
LAb[au]

http://www.lab-au.com

Reply via email to