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() {
+
function fb_albums(data) {
-
//https://graph.facebook.com/112242102125963/albums
+
alert("fb_albums");
 +
 
 +
}
-
var url = "https://graph.facebook.com/112242102125963/albums";
+
$(function() {
-
$.get(url, function(data) {
+
//https://graph.facebook.com/112242102125963/albums
-
/*  $('.result').html('<p>' + data.foo + '</p>'
+
-
    + '<p>' + data.baz[1] + '</p>');
+
-
*/
+
-
$("#photobox").html(data);
+
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

\""); });