I pasted what you posted in. The page just displays this"
$(function() { $.ajax({ url: "backend.php", cache:
false, success: function(html) { $(".target").html(html); } });
Should the 'function' be between <head> and </head>?
This is the current .html file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/
TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Collecting Data...</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
$(function() {
$.ajax({
url: "backend.php",
cache: false,
success: function(html) {
$(".target").html(html);
}
});
</head>
<body>
<div class="target"></div>
<div id="content"></div>
</body>
</html>