i have a solution, sorry for my bad english...
this is de solution:
in the librarie tools.overlay-1.1.2.js add the next code before of
function overlay():
$.fn.addObjectToOverlay = function(element, confOverlay){
el = new Overlay($(element), confOverlay);
instances.push(el);
$(this).data("overlay", el);
};
// jQuery plugin initialization
$.fn.overlay = function(conf) {
then you have to call the function like this
$('#avisoFav').remove();
$video = $(respuesta);
$video.css("display", "none");
$("#contenidoFav").append($video);
$.each($video.find('.linkRMTP'), function (index, obj){
$video.addObjectToOverlay(obj, confOverlay);
});
$video.slideDown('fast');
the variable "confOverlay" is the configuration of my overlay, example:
confOverlay = {
effect: 'drop',
expose: '#789',
top:25,
closeOnClick : false,
fastInSpeed : 'fast',
onBeforeLoad: function(){
idVideo = $(this.getTrigger()).attr("idVideo");
idiomaActual = $(this.getTrigger()).attr("idiomaActual");
onBeforeLoad(idVideo, idiomaActual);
},
onLoad: function(){
$("#contenedorVideo > *").remove();
url= $(this.getTrigger()).attr('link');
onLoaded(url);
},
onClose: function (){
$("#contenedorVideo > *").remove();
}
};
so thats all that you have to do for the overlay worked with new create elements in real time.
Atte.
Salvador Romero