Colorbox with dynamic XML

I trying to insert a iframe class from colorbox on dynamically created links from an XML using jQuery and AJAX. I've been trying many things but so far nothing, please let me know if someone can help me.Here is my code:\[code\]$(document).ready(function () { $.ajax({ type: "GET", url: "http://vimeo.com/api/v2/iglesiafls/videos.xml", dataType: "xml", success: function (xml) { $(xml).find('video').each(function () { var thumb = $(this).find('thumbnail_medium').text(); var id = $(this).find('id').text(); var title = $(this).find('title').text(); var url = $(this).find('url').text(); $('<div id="video_' + id + '"></div>').html('<p>' + title + '</p><a href="' + url + '"><img src="' + thumb + '"/></a>').appendTo('.content'); }); } });});\[/code\]I need the iframe class on the \[code\]<a>\[/code\] tag but so far no success at all.
 
Back
Top