View Full Version : gajaxpausescroller problem in IE6

12-24-2008, 06:59 PM
1) Script Title: gajaxpausescroller

2) Script URL (on DD):

3) Describe problem:
I am trying to get the script working in this site for IE v6 and above, Opera 9 and above, Firefox, Netscape, Safari, and Chrome. It's supposed to read an RSS feed file from http://www.spccaa-on.org/rss.xml


---- I call the script inside a javascript print of a wraparound table.

<script type="text/javascript">

if (is_gecko || is_ie6up||is_safari||is_opera9up) {
document.write("<div style=\"float:right;height:240px;width:180px;margin:20px;margin-top:90px;background-color:#DDEEFF;padding-left:5px;padding-right:5px;padding-top:15px;padding-bottom:5px\">")

document.write("<table style=\"border:0px\"><tr><td><a href= \"announcement.php\"><img style=\"float:left;width:20px;margin-right:10px;border:0px\" src=\"pic/rss_feed.gif\" alt=\"[RSS]\"></a></td><td><p class=\"WhatIsNew\">What&#39;s New:</p></td></tr></table>")
var cssfeed=new gfeedpausescroller("example1", "example1class", 3000, "_new")

cssfeed.addFeed("", "http://www.spccaa-on.org/rss.xml") //Specify "label" plus URL to RSS feed

cssfeed.displayoptions("date snippet") //show the specified additional fields
cssfeed.setentrycontainer("div") //Wrap each entry with a DIV tag
cssfeed.filterfeed(10, "date") //Show 10 entries, sort by date

The example1* style definitions are in http://www.spccaa-on.org/style4.css

I also have a test script
where I put the style definitions of used in the example1* id and example1 class components inside the HTML instead of placing them in the style4.css file. This script is made simpler, without the document.write lines as shown in the above code snippet

Everything goes well with the exception of IE6. Here are the problems observed:

-- In IE6, both regularindex.php and xmasindex.php shows it is stuck forever trying to fetch the RSS feed.

-- In IE6, regularindex.php, the entire RSS block fails to align correctly. The light blue section expands to large portions of the page.

If I manually press the reload button in IE6, everything displays as I intended. But I cannot explain the two above problems -- only in IE6.