addClass('reflect') is definitely running before the images are
loading - the hazards of living in an AJAX world. setTimeout is a step
in the right direction, but you really want to add you reflections
after the response.

There are a couple of options: the flickr plugin can accept a
callback: setting to have a custom function work with the flickr
response (maybe not the best option if you are not familiar with the
flickr api) the other option would be to add your code [$
('img').addClass('reflect');] to the plug-in code inside the response
method ( just below the [if (this.s.litebox) $('#flickr').litebox();]
at the end of the code.)

On Aug 2, 1:27 am, b0bd0gz <[EMAIL PROTECTED]> wrote:
> Hi,
> Im trying to use the  http://cow.neondragon.net/stuff/reflection/reflection
> plugin  with the  http://www.projectatomic.com/flickr/#a_codeflickr plugin
> but  no reflection is added.
>
> How I have it setup at the moment is once the html is loaded, load a set of
> flickr images then add a class called reflect to all img tags on the
> document like so.
>
> $(document).ready(function()
> {
>         $('#gallery').flickr({
>                 api_key: 'api key',
>                 type: 'search',
>                 user_id: 'users id',
>                 tags: 'siskin',
>                 thumb_size: 's',
>                 litebox: true
>         });
>
>         $('img').addClass('reflect');
>
> });
>
> The problem is it only adds a reflection to images that are not loaded using
> the flickr plugin.  You can see this in  http://b0bd0gz.adsl24.co.uk/jQuery/
> action here  where the flickr images don't have a reflection and the other
> image underneath does have a reflection.
>
> I hope that explains my problem, if not let me know and I'll try again.
> Thanks in advance for any help:-D
>
> b0bd0gz
> --
> View this message in 
> context:http://www.nabble.com/jquery.flickr-%2B-reflection-tf4204797s15494.ht...
> Sent from the JQuery mailing list archive at Nabble.com.

Reply via email to