Nothing happens when i select a feed.. can you help me figure out what's wrong/missing?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>RSS Reader</title>
<script type="text/javascript" src="jquery-1.2.6.min.js" charset="utf-8">
function get_rss_feed() {
$("#feedContent").empty();
$.get('http://barbz.0fees.net/proxy.php?url='+$('#diffFeeds').val(), function(d) {
$(d).find('item').each(function() {
var $item = $(this);
var title = $item.find('title').text();
var link = $item.find('link').text();
var description = $item.find('description').text();
var pubDate = $item.find('pubDate').text();
var html = "<div class=\"entry\"><h2 class=\"postTitle\">" + title + "<\/h2>";
html += "<em class=\"date\">" + pubDate + "</em>";
html += "<p class=\"description\">" + description + "</p>";
html += "<a href=\"" + link + "\" target=\"_blank\">Read More >><\/a><\/div>";
$('#feedContent').append($(html));
});
});
};
</script>
</head>
<body>
<div id="container">
<div id="ui">
<h1>Feed Reader</h1>
<form id="selectParser" action="">
<label>Select a feed:</label>
<select id="diffFeeds">
<option value="">Select</option>
<option value="http://feeds.feedburner.com/aralbalkan">Aral Balkan</option>
<option value="http://feeds.feedburner.com/peterelst/">Peter Elst</option>
<option value="http://www.gskinner.com/blog/index.xml">Grant Skinner</option>
<option value="http://blog.andre-michelle.com/feed/">Andre Michelle</option>
<option value="http://feeds.feedburner.com/flashmagazine/rss2">Flash Magazine</option>
<option value="http://casario.blogs.com/mmworld/rss.xml">Marco Casario</option>
<option value="http://www.sephiroth.it/weblog/index.xml">Sephiroth</option>
<option value="http://www.quasimondo.com/index.xml">Quasimondo</option>
<option value="http://feeds.feedburner.com/sebleedelisle">Seb Lee-Delisle</option>
<option value="http://osflash.org/feed.php">OS Flash</option>
</select>
</form>
</div>
<div id="feedContent"> </div>
</div>
</body>
</html>
The file where
$.get('http://barbz.0fees.net/proxy.php?url='+$('#diffFeeds').val(), function(d) {
is taken is this..
<?php
// PHP Proxy
// Loads a XML from any location. Used with Flash/Flex apps to bypass security restrictions
// Author: Paulo Fierro
// January 29, 2006
// usage: proxy.php?url=http://mysite.com/myxml.xml
$session = curl_init($_GET['url']); // Open the Curl session
curl_setopt($session, CURLOPT_HEADER, false); // Don't return HTTP headers
curl_setopt($session, CURLOPT_RETURNTRANSFER, true); // Do return the contents of the call
$xml = curl_exec($session); // Make the call
header("Content-Type: text/xml"); // Set the content type appropriately
echo $xml; // Spit out the xml
curl_close($session); // And close the session
?>
i'm new with this..please bare with me..thanks!^^