You are here

22 April 2011

ColorBox for images is loaded on first load, so all images loaded by ajax are colorBox free. To enable ColorBox for ajax loaded images you have to scan the html for images after load is complete. Here is an jQuery load example:

Source code viewer
  1. jQuery("#content").load("url", function(){
  2. jQuery("a").colorbox({transition:"fade"});
  3. })
Programming Language: Javascript