The following fails in IE 6 & 7 in about 1 out of 4/5 goes:

function showAdjacentThumb(link, increment){
        var thumbs = $$('#photo_block div.thumbnail img');
        var caption = link.up().previous();
        var image = caption.previousSibling;
        .......

The following always works:
function showAdjacentThumb(link, increment){
        var thumbs = $$('#photo_block div.thumbnail img');
        var caption = $(link.parentNode.previousSibling);
        var image = caption.previousSibling;

AFAICT there's no particular rhyme or reason why the code fails some
times and not others. It just comes up with js Syntax Error. Doing a
try/catch and inspecting the link doesn't show anything amiss.

Any thoughts as to how I might narrow down what's causing the problem?

Cheers
Chris


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to