PDA

View Full Version : RSS Ticker - 2 problems



Genie
06-25-2006, 12:07 AM
The script is here: http://www.dynamicdrive.com/dynamicindex17/rsstickerajax/index.htm

I have two problems and I am sure they must be on my end but I have struggled to find the solution to no avail.

1. I have a global menu on which I want to place the sticker with current weather temps. I quickly realized that I would have to set the "absolute path" to lastrss/bridge.php in the rssticker.js file. It is not working on the subdirectory pages. This is the way I have it configured. Is there a problem with this?

MyPage: http://www.myspacecoast.com/main_title1.htm




//Relative URL syntax:
//var lastrssbridgeurl="lastrss/bridge.php"

//Absolute URL syntax. Uncomment below line if you wish to use an absolute reference:
var lastrssbridgeurl="http://"myspacecoast.com/lastrss/bridge.php"





2. Secondly, the demo works fine when I run it with the default feeds, configs.
When I include the script statements with different feeds (validated), I get both called feeds alternating in the one of two multiple feeds and the other feed script just continues to say "initializing". This is the main problem.

MyPage: http://www.myspacecoast.com/main_title1.htm


Here is the script:


<script type="text/javascript">
//rssticker_ajax(RSS_id, cachetime, divId, divClass, delay, optionalswitch)
//1) RSS_id: "Array key of RSS feed in PHP script"
//2) cachetime: Time to cache the feed in minutes (0 for no cache)
//3) divId: "ID of DIV to display ticker in. DIV dynamically created"
//4) divClass: "Class name of this ticker, for styling purposes"
//5) delay: delay between message change, in milliseconds
//6) optionalswitch: "optional arbitrary" string to create additional logic in call back function

document.write("Current Weather Temp")
new rssticker_ajax("weather.gov", 600, " ", "weatherclass ", 3000, " ")
document.write("Florida Today<br />") //add a divider for demo
new rssticker_ajax("FLToday", 600, " ", "weatherclass ", 3000, " ")
</script>



Interesting Note:

Viewed in IE beta 7, of these two scripts, the primary first feed whizzes by unreadable and the second feed (rotating in the first slot) displays it's configed time delay.

Viewed in FireFix 1.5, just the opposite happens. They both rotate in the secondary slot, with the primary first feed displaying at normal speed while the second feed rotates too fast to read.

I hate to give up on this but thought I would ask for help.