Thread: ajax question
View Single Post
09-11-2007, 10:22 AM
#4
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

The response from the AJAX call is:
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">

<head>

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

	<title>RSS Feeds Example</title>

	<style type="text/css">

	   li a { display: block; }

	   li span { color: #f90; font-size: 85%; }

	</style>

</head>

<body>

   <h1>RSS Feeds Example</h1>

	</body>

</html>
When that's inserted into the DOM, the html, head and body tags are removed leaving the h1 as the visible element. It looks like the "one line" that it returns is because the rss.php file isn't returning the feed items in the HTML.