| | |
pls check my rss reader..^^
Please support our RSS, Web Services and SOAP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Jan 2009
Posts: 15
Reputation:
Solved Threads: 0
Nothing happens when i select a feed.. can you help me figure out what's wrong/missing?
The file where
$.get('http://barbz.0fees.net/proxy.php?url='+$('#diffFeeds').val(), function(d) {
is taken is this..
i'm new with this..please bare with me..thanks!^^
RSS, Web Services and SOAP Syntax (Toggle Plain Text)
<!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..
RSS, Web Services and SOAP Syntax (Toggle Plain Text)
<?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!^^
Last edited by barbz; Apr 28th, 2009 at 4:16 am.
![]() |
Other Threads in the RSS, Web Services and SOAP Forum
- Previous Thread: rss php feed not working or validating
- Next Thread: How do I set path in Tomcat 6 in windows
| Thread Tools | Search this Thread |
.htaccess 301 accept access alltop api authentication binarysecuritytoken blog card collaboration credit data development ebay email evernote flash google government highrise htaccess intel internet legal live netbeans patent paypal php podcast proxy redirect rss rssfeeds searchmonkey server service soap software swappingxmlfromflash swappingxmlnodes url web webservices webservicesecurity wiki wikipedia xerces xml xslt y!os yahoo ydn





