[jQuery] Re: Can someone tell me how to debug this?
OK. This starting to work. I didn't have 'function' surrounded by
<script> </script>. However it is not displaying what backend.php is
sending in real time. Backend.php is just counting to 3 with a delay
of 1 second after each echo function. I see the backend's display but
only after the entire php file is finished and exits. How can I see
each count in "real time"?
Bob
<!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>
<script type="text/javascript">
$(function() {
$.ajax({
url: "backend.php",
cache: false,
success: function(html) {
$(".target").html(html);
}
});
});
</script>
</head>
<body>
<div class="target"></div>
<div id="content"></div>
</body>
</html>
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home