Old 04-11-2009, 03:21 AM   #1 (permalink)
Junior Member
 
Join Date: Apr 2009
Posts: 6
Default browser issues

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);
I'm hoping that the problem is my coding, and not your method for external feed grabbing.

Please help!

Cheers,
Doug
cardi777 is offline   Reply With Quote
Old 04-11-2009, 03:51 AM   #2 (permalink)
Junior Member
 
Join Date: Apr 2009
Posts: 6
Default i found solution

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]);
}

?>
Then in the flash, try this:

Code:
xml.load("http://www.yourdomain.com/news2.php?fileName=http://sports.yahoo.com/nascar/rss.xml");
Hope this helps

Cheers,
Doug
cardi777 is offline   Reply With Quote
Old 04-11-2009, 09:09 AM   #3 (permalink)
OYXLUSFlash.com Staff Member
 
Adrian's Avatar
 
Join Date: May 2008
Posts: 1,981
Send a message via Yahoo to Adrian Send a message via Skype™ to Adrian
Default

That's great. Thank you for sharing.
Adrian is offline   Reply With Quote
Old 04-12-2009, 12:26 AM   #4 (permalink)
Junior Member
 
Join Date: Apr 2009
Posts: 6
Default actually...

hmm ... no .. on much testing, this hasn't solved it. It seems much more random. No idea how to fix this
cardi777 is offline   Reply With Quote
Old 04-12-2009, 01:09 AM   #5 (permalink)
Junior Member
 
Join Date: Apr 2009
Posts: 6
Default OKAY, I think I found THE solution.

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);

?>
In the flash, put this...

Code:
xml.load("http://www.yourwebsite.com/news2.php");
Works for me so far.... last time I thought I had nailed it, things stopped working. I am confident that the flash file code is REALLY SUPA MEGA AWSOME, its just cross domain issues.

Hope that this helps people

Cheers,
Doug
cardi777 is offline   Reply With Quote
Old 04-13-2009, 06:36 AM   #6 (permalink)
Junior Member
 
Join Date: Apr 2009
Posts: 6
Default not sure whats going on...

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.

cardi777 is offline   Reply With Quote
Old 04-13-2009, 08:15 AM   #7 (permalink)
Junior Member
 
Join Date: Apr 2009
Posts: 6
Default mm working again

Okay,

Changing the url so local instead of the full url made it work...

If it continues to work, ill let you know!
cardi777 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:26 PM.