[jQuery] Detecting wether an image link is going to work

2009-02-03 Thread daveJay
I've got a page set up where it loads each image on the page, one after the other. As you can see here: http://sandbox.exit42design.com/photography/folio_1.html The problem with this is that if one of the images is broken, it'll stop in it's tracks and not try to load the next. Here's an exampl

[jQuery] Re: Detecting wether an image link is going to work

2009-02-04 Thread daveJay
On Feb 3, 6:15 pm, Karl Rudd wrote: > You could try using the "error" handler: > > $(image[1]).bind('error', function(){ /* ... */ }); > > I believe it works for all the common browsers. > > Karl Rudd Thanks Karl, that works fantastically! As you can see here now, it just skips over the brok

[jQuery] Re: Detecting wether an image link is going to work

2009-02-04 Thread daveJay
> I'd try to avoid writing a routine explicitly for each image and > instead use a loop. This is thoroughly untested. Thanks a ton Brian for the help with that code, I had no idea you could load an array like that! The loops were helpful as well, I used the "each" loop on the image object array t

[jQuery] Re: Detecting wether an image link is going to work

2009-02-04 Thread daveJay
On Feb 4, 11:20 am, brian wrote: > Yeah, I thought it didn't look right. Even doing it with each() like > that . It's too bad one can't create an Image oject with with both the > dimensions and the src. Well the other factor is that I want the images to load in succession as opposed to all at on

[jQuery] Problem with jQuery performance

2008-06-06 Thread daveJay
Hi all, I'm desperate for a solution to a major performace problem I've got. Basically, I'm trying to do something along the lines of what was done here with Flash: http://karankapoor.com/ I've got the image centering and scaling worked out. The problem is when I try to do a dissolve between im

[jQuery] Re: Problem with jQuery performance

2008-06-06 Thread daveJay
Upon further investigation, it's the Mac Firefox that's giving me grief, the performance while still a tad hampered is acceptable. I guess there's not much I can do about it except hope that things will improve in the Mac FF3.

[jQuery] Re: Problem with jQuery performance

2008-06-09 Thread daveJay
Thanks for the suggestions, that's very handy! =) While I think it has helped some, it hasn't made an appreciable difference on the overall performance. I don't think it's the method of dissolve that's the problem. I tried a scriptaculous fade and had the same issue. I think it's mostly the fact

[jQuery] Fade in an Image by replacing the src

2008-06-23 Thread daveJay
I'm trying to switch out an image by dynamically changing the source value of an image. I tried using other methods of image replacement but none of them work smoothly, there's major performance problems. So anyway. Here's how I'm doing it right now. j("#image img").fadeTo(500,0,function() {

[jQuery] Re: Fade in an Image by replacing the src

2008-06-23 Thread daveJay
#x27;)' >    }).insertBefore(img).append(img); > img.css({opacity:0}).attr('src',newSrc); > img.fadeTo(500,1,function(){ img.insertAfter(div);div.remove(); }); > > JK > > -Original Message- > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On &g

[jQuery] Re: Fade in an Image by replacing the src

2008-06-24 Thread daveJay
f automated cycling.  (I use it to crossfade through 2-4 images on a timer > - the fade is perfect) > > I love the look of your gallery, BTW. > > j > > On Mon, Jun 23, 2008 at 8:23 PM, daveJay <[EMAIL PROTECTED]> > wrote: > > > > > I'm trying to switch o

[jQuery] Firefox 3 help

2008-06-27 Thread daveJay
I seem to be at a loss I'm trying to run this code right here: $("#image img").fadeTo(500,0,function() { $("#image img").attr({src : imgSrcNext}); }).fadeTo(500, 1); but in firefox 3, I see the fade away and the fade back, and THEN firefox decides to switch the img source to the new ima

[jQuery] Re: Firefox 3 help

2008-06-28 Thread daveJay
It must just be the Mac Version again. On Jun 28, 5:44 am, "Alexandre Plennevaux" <[EMAIL PROTECTED]> wrote: > works fine here (winXP SP3, FF3) > > Alexandre Plennevaux > >  ** > > On Sat, Jun 28, 2008 at 12:18 AM, daveJay <[EMAIL PROTECTED]> &g

[jQuery] Re: Firefox 3 help

2008-06-28 Thread daveJay
ac, it makes no sense at all. On Jun 28, 8:34 am, daveJay <[EMAIL PROTECTED]> wrote: > It must just be the Mac Version again. > > On Jun 28, 5:44 am, "Alexandre Plennevaux" <[EMAIL PROTECTED]> > wrote: > > > works fine here (winXP SP3, FF3) > > > Al

[jQuery] Re: Firefox 3 help

2008-06-29 Thread daveJay
Thanks all for the comments =) I'm glad you like the pictures. AND, I'm thrilled your commenting more on the pictures than you are the design of the gallery, even though they have a symbiotic relationship. I'm glad that the problem is not affecting everyone, that's somewhat of a relief, but I'm s