Team:TU Delft/menu test

From 2010.igem.org

(Difference between revisions)
Line 77: Line 77:
   var page = "https://2010.igem.org/Team:TU_Delft/pages/" + page + "?action=render";
   var page = "https://2010.igem.org/Team:TU_Delft/pages/" + page + "?action=render";
   btn.click(function() {
   btn.click(function() {
-
     var main_td = $(#main_td");
+
    alert(page);
-
     main_td.fadeOut(200);
+
     var cpw = $(#content_page_wrap");
 +
     cpw.fadeOut(200);
     $.get(page, function(data) {  
     $.get(page, function(data) {  
-
         main_td.html(data);
+
         cpw.html(data);
-
         main_td.fadeIn(200);
+
         cpw.fadeIn(200);
     });
     });
   });
   });

Revision as of 23:03, 4 June 2010