Issue occurs because of script which initialize Vimeo popup executes too early when grid links is not rendered yet. To fix it change your code like the following:
[code]
function doOnLoad(){
mygrid = new dhtmlXGridObject("gridbox");
....
mygrid.load("data.xml",doOnDataLoaded);
}
function doOnDataLoaded(){
$("#testdiv").click(function() {
$.fancybox('http://google.ca', {
'padding' : 0,
'type' : 'iframe'
});
});
// Using manual call - dynamic url change
$("a#vimeo_test").click(function() {
$.fancybox({
'padding' : 0,
'autoScale' : false,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'title' : this.title,
'width' : 500,
'height' : 365,
'href' : this.href.replace(new RegExp("([0-9])","i"),'moogaloop.swf?clip_id=$1'),
'type' : 'swf'
});
return false;
});
// Testing grouping and full-screen
function formatTitle(title, currentArray, currentIndex, currentOpts) {
return '
';
}
var fb_opts = {
'padding' : 0,
'cyclic' : true,
'autoScale' : false,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'width' : 640,
'height' : 360,
'type' : 'swf',
'showNavArrows' : false,
'titlePosition' : 'inside',
'titleFormat' : formatTitle,
'swf' : {
'wmode' : 'transparent',
'allowfullscreen' : 'true'
}
};
$("#vimeo_test3").fancybox(
$.extend(fb_opts, {'href' : 'http://vimeo.com/moogaloop.swf?clip_id=3979490&fullscreen=1'})
);
$("#vimeo_test4").fancybox(
$.extend(fb_opts, {'href' : 'http://vimeo.com/moogaloop.swf?clip_id=3979989&fullscreen=1'})
);
$("#vimeo_test5").fancybox(
$.extend(fb_opts, {'href' : 'http://vimeo.com/moogaloop.swf?clip_id=6058176&fullscreen=1'})
);
jQuery(document).ready(function() {
/*
//just test for auto-open
$.fancybox('
Hi!
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam quis mi eu elit tempor facilisis id et neque
', {
'autoDimensions' : false,
'width' : 350,
'height' : 'auto',
'transitionIn' : 'none',
'transitionOut' : 'none'
});
*/
//$("#vimeo_test3").trigger('click');
});
}[/code]