Team:TU Delft/pieter/loadtest

From 2010.igem.org

(Difference between revisions)
Line 1: Line 1:
<html>
<html>
-
<script type="text/javascript" src="https://2010.igem.org/Team:TU_Delft/files/jquery_history?action=raw&gen=js"></script>
+
<script type="text/javascript" src="https://2010.igem.org/Team:TU_Delft/files/jquery_hashchange_min?action=raw&gen=js"></script>
<script type="text/javascript">
<script type="text/javascript">
Line 19: Line 19:
}
}
-
function pageload(hash) {
+
function hashchangecb() {
 +
var hash=location.hash;
// hash doesn't contain the first # character.
// hash doesn't contain the first # character.
if(hash) {
if(hash) {
Line 36: Line 37:
$(function() {
$(function() {
-
 
+
$(window).hashchange(hashchangecb);
-
// Initialize history plugin.
+
-
// The callback is called at once by present location.hash.
+
// set click event for buttons
-
$.history.init(pageload);
+
-
+
-
// set onlick event for buttons
+
$("a.menu").click(function(){
$("a.menu").click(function(){
//  
//  

Revision as of 15:18, 22 July 2010

Ajax load
load 1
load 2
load 3


Loaded html: