|
|
#1 (permalink) |
|
Junior Member
Join Date: Apr 2009
Posts: 6
|
Hi,
I want to start by saying, great tool! Also, thanks for providing a forum. I am finding that feed loading works in IE, but not firefox, and not chrome. Get the latest nascar news! Here is my code: Code:
var RSSUrl = "http://sports.yahoo.com/nascar/rss.xml"; var domain2 = "http://www.ecommerce-ebooks.com/"; xml.load(domain2 + "news.php?url="+RSSUrl); Please help! Cheers, Doug |
|
|
|
|
|
#2 (permalink) |
|
Junior Member
Join Date: Apr 2009
Posts: 6
|
I found a solution. It seems that the news.php file you provided is not sufficient.
The answer which made everything work was from here: AWSSOFT | Support Basically, in your news.php, I deleted everything, and replaced it with this: Code:
<?php
// turn off NOTICE error reporting
error_reporting (E_ALL ^ E_NOTICE);
if (function_exists('curl_init')) {
$ch = curl_init($_REQUEST[fileName]);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
echo curl_exec($ch);
curl_close($ch);
}
else {
readfile($_REQUEST[fileName]);
}
?>
Code:
xml.load("http://www.yourdomain.com/news2.php?fileName=http://sports.yahoo.com/nascar/rss.xml");
Cheers, Doug |
|
|
|
|
|
#5 (permalink) |
|
Junior Member
Join Date: Apr 2009
Posts: 6
|
I found an article here: Loading data across domains
Basically, you make a PHP file which loads the rss into it. Not just the name of the url, but the actually contents of the rss. Effectually, this makes the php turn into the rss feed. Say you call your file "news2.php", then place this into it... Code:
<?php $dataURL = "http://sports.yahoo.com/nascar/rss.xml"; //note that this will not follow redirects readfile($dataURL); ?> Code:
xml.load("http://www.yourwebsite.com/news2.php");
Hope that this helps people Cheers, Doug |
|
|
|
|
|
#6 (permalink) |
|
Junior Member
Join Date: Apr 2009
Posts: 6
|
Okay, i don't know whats going on, but here is what CONSTANTLY happens to me.
I try a new techinique, clear my cache, and it works! Then the next day I take a look, and bam - not working. I thought I had nailed it with my last reply, but it stopped working eventually. I reverted to the same code that came with the package, and IT IS WORKING AGAIN - but for how long. If anyone knows whats going on here, I would love to know. It is acting terribly random and I can't use the tool. ![]() |
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT. The time now is 08:26 PM.









Linear Mode
