Skip to content

Instantly share code, notes, and snippets.

@gerardo
Created May 6, 2011 03:18
Show Gist options
  • Select an option

  • Save gerardo/958384 to your computer and use it in GitHub Desktop.

Select an option

Save gerardo/958384 to your computer and use it in GitHub Desktop.
$('a.more').live('click', function(event) {
$.fancybox.showActivity();
$.ajax({
type : "POST",
cache : false,
url : "load.html",
data : $(this).serializeArray(),
success : function(data) {
// Aplico el selector solo al contenido de data
// que en este caso va a ser el contenido de load.html
var selectedDiv = $('div#validate', listItem).html();
$.fancybox(selectedDiv);
// Si no funciona este, intenta con esta linea
// Basicamente paso el objeto jquery directo sin
// renderizar con .html()
$.fancybox($('div#validate', listItem));
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment