zoom.js fails when I load the need-to-be-zoomed images dynamically

hack3r

New Member
I am using zoom.js to zoom the images (Which is a list in one of a div named "thumbsDiv"). Statically, it is giving excellent response. But I am trying to load the images dynamically (Which is actually a list of profile pictures from Facebook).Here's the code I am using. . . (I am performing this function after an ajax call, and the necessary data is being returned from the controller..)\[code\]function callback(data){ var t=0 for (t=0;t<data.sizee;t++){ if (t==0){ document.getElementById('thumbsDiv').innerHTML="<ul id=thumbs><li class=\"i current\"><img src=http://stackoverflow.com/""+data.icon[t]+"\" class=page-"+t+" height=70 width=70><span>"+t+"</span></li></ul>" } else if (t>0){ $('#thumbs').append($("<li class=d> <img src="http://stackoverflow.com/questions/11326152/+data.icon[t]+" class=page-"+t+" height=70 width=70><span>"+t+"</span></li>")); } } }\[/code\]Please help, and let me know if I am doing anything wrong...
 
Top