On 16 February 2011 15:09, Rajat Mittal <[email protected]> wrote:

> Hi All,
>
> I recently built this : http://lifeinafolder.com/batman/. Its a gallery
> view of items related to keyword "batman" on eBay. It has no backend and I
> am using JSONP to talk to the API.
>
> The problem is related to the *Image object in JavaScript *that I am
> using to load these images. For certain images, when the *onload fires* the
> object *width* and *height* property which should be the image's( that
> just loaded ) width/height are 0. This results in my polaroid frame to
> collapse. This is very weird as that image has actually been loaded
> successfully by the browser.
>

Just as a quick test, try adding a timestamp to the end of your image URL,
so it will force the browser to not cache the images. If that works, then
you know it's a browser caching issue. Whether or not you decide to use that
trick to break the user's browser cache is up to you. :-)

-- 
Matt King
[email protected]

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to