Created
September 6, 2012 01:11
-
-
Save rounders/3649418 to your computer and use it in GitHub Desktop.
load url via ajax, extract only the content you need and display in a fancybox
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.some_class').bind 'click', (e) -> | |
e.preventDefault(); | |
$.get $(this).attr('href'), (data) -> | |
$.fancybox | |
content: $(data).find('#main_content_wrapper') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment