Created
May 6, 2011 03:18
-
-
Save gerardo/958384 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('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