views:

6

answers:

0

Spent 10 hours on this so far. Have searched every where and tried everything.

I have treeview left hand side of splitter and thumbnail view right hand. I have an AjaxManager controlling the update of the thumbnail view as you click treeview. In Thumbnail View I have my FancyBox.

When initially opening webpage and clicking FancyBox, it works, on clicking treeview (causing postback) and then Thumbnail Image - NO FANCYBOX. I expected this. I initiall had the $(document).ready etc, then used Sys.Application.add_load(InitFancyBox): function InitFancyBox() { var thumbnailViewRel = $("a[rel=ThumbnailViewRel]");

        if(thumbnailViewRel != null) {
            thumbnailViewRel.fancybox({
    'transitionIn'  : 'none',
    'transitionOut'  : 'none',
    'titlePosition'  : 'over',
    'titleFormat'  : function(title, currentArray, currentIndex, currentOpts) {
     return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
    }
   });
        }
    }

I tried the $.ajaxJSON (??) method described by http://www.wreckedmagazine.com/jasonsmall/2010/05/23/geek-blog-post-get-fancybox-to-work-after-ajax-update/ but I suspect I haven't written it properly... basically doesn't work. I debugged the javascript and indeed my function call is being processed as I click the Thumbnail but no popup. I also noticed someone on another website mentioning $("body:First") but didn't understand what he meant.

I've had enough and scrapping this piece of work until someone can help.

Really would be grateful for any help no matter what. I'm branching my work in TSVN so I can at least attempt anyone's answers.. anything please.

Desperado Hardylardy.