Team:TU Delft/pieter/loadtest

From 2010.igem.org

(Difference between revisions)
Line 19: Line 19:
$(function(){
$(function(){
-
// Initialize history plugin.
+
 
-
// The callback is called at once by present location.hash.
+
-
$j.history.init(pageload);
+
-
+
-
// set onlick event for buttons
+
-
$j("a[@rel='history']").click(function(){
+
-
//
+
-
var hash = this.href;
+
-
hash = hash.replace(/^.*#/, '');
+
-
// moves to a new page.
+
-
// pageload is called at once.
+
-
$j.history.load(hash);
+
-
return false;
+
-
});
+
});
});

Revision as of 10:13, 21 July 2010

Ajax load
load 1
load 2
load 3


Loaded html: