Team:TU Delft/fbtest
From 2010.igem.org
(Difference between revisions)
(New page: <html> <div id="photobox"></div> <script> $(function() { //https://graph.facebook.com/112242102125963/albums var url = "https://graph.facebook.com/112242102125963/albums"; $.get(url, ...) |
|||
Line 1: | Line 1: | ||
<html> | <html> | ||
+ | <div id="fb_scriptload"></div> | ||
<div id="photobox"></div> | <div id="photobox"></div> | ||
- | <script> | + | <script type="text/javascript"> |
- | + | function fb_albums(data) { | |
- | + | alert("fb_albums"); | |
+ | |||
+ | } | ||
- | + | $(function() { | |
- | + | //https://graph.facebook.com/112242102125963/albums | |
- | / | + | |
- | + | ||
- | + | ||
- | $("# | + | var url = "https://graph.facebook.com/112242102125963/albums?callback=fb_albums"; |
+ | $("#fb_scriptload").html( | ||
+ | "<script src=\"" + url + "\" type=\"text/javascript\"></script>\""); | ||
}); | }); |
Revision as of 23:55, 15 June 2010
\""); });