| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|---|
| 2 |
<html> |
|---|
| 3 |
<head> |
|---|
| 4 |
<meta http-equiv="content-type" content="text/html; charset=windows-1250"> |
|---|
| 5 |
<title>Memory leak test</title> |
|---|
| 6 |
<script type="text/javascript" src="prototype-1.6.0.2.js"></script> |
|---|
| 7 |
</head> |
|---|
| 8 |
<body> |
|---|
| 9 |
<div id='ajaxdiv'> |
|---|
| 10 |
<div id='observedDiv'> |
|---|
| 11 |
I am observed! |
|---|
| 12 |
</div> |
|---|
| 13 |
</div> |
|---|
| 14 |
<div id='launchAjax'> |
|---|
| 15 |
Click here to Ajax Update! |
|---|
| 16 |
</div> |
|---|
| 17 |
</body> |
|---|
| 18 |
<script type="text/javascript"> |
|---|
| 19 |
$('observedDiv').observe('click', function(){ |
|---|
| 20 |
alert('Clicked'); |
|---|
| 21 |
}); |
|---|
| 22 |
$('launchAjax').observe('click', function(){ |
|---|
| 23 |
new Ajax.Updater($('ajaxdiv'), 'file.html'); |
|---|
| 24 |
}); |
|---|
| 25 |
</script> |
|---|
| 26 |
</html> |
|---|