It looks to me like there should be an extra "});" at the end of the function. Is that right? Anyway, I tried it with with that and I still get a line printed with the jquery function source code. Bob
On Oct 21, 9:12 am, bobslf <bob...@gmail.com> wrote: > 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>