Team:TU Delft/menu test
From 2010.igem.org
(Difference between revisions)
Line 82: | Line 82: | ||
var btn= $(".menu_button_" + page); | var btn= $(".menu_button_" + page); | ||
var pageURL = "https://2010.igem.org/Team:TU_Delft/pages/" + page + "?action=render"; | var pageURL = "https://2010.igem.org/Team:TU_Delft/pages/" + page + "?action=render"; | ||
- | btn.click(function() { | + | btn.click(function(event) { |
var cpw = $("#content_page_wrap"); | var cpw = $("#content_page_wrap"); | ||
cpw.fadeOut(200); | cpw.fadeOut(200); | ||
+ | event.preventDefault(); | ||
$.get(pageURL, function(data) { | $.get(pageURL, function(data) { | ||
cpw.html(data); | cpw.html(data); |
Revision as of 11:15, 5 June 2010