PDA

View Full Version : gAjax RSS Feeds Displayer - feed sometimes linked to wrong label



plimfec
11-27-2007, 02:59 PM
1) Script Title: gAjax RSS Feeds Displayer

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex18/gajaxrssdisplayer.htm

I used the script (example 2) in this page: http://www.thaumas.nl/dagacties/indexex.htm and tested it in Opera and IE7.

I sorted by label and in both Opera and IE the labels are alphabetically listed. So that's okay, but the strange thing is that in IE - after refreshing the page - the feeds seem to wander around, now and then linking to the wrong label.

So the labels stay alphabetically listed, but the feeds are listed in a different order after several refreshes.

- I didn't edit the gfeedfetcher.js

- The code of the html-page:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript" src="http://www.google.com/jsapi?key=filled in the right api code here">
</script>

<script type="text/javascript" src="gfeedfetcher.js">

/***********************************************
* gAjax RSS Feeds Displayer- (c) Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>

<style type="text/css">

.labelfield{ /*CSS for label field in general*/
color:brown;
font-size: 90%;
}

.datefield{ /*CSS for date field in general*/
color:gray;
font-size: 90%;
}

#example1 li{ /*CSS specific to demo 1*/
margin-bottom: 4px;
}

#example2 div{ /*CSS specific to demo 2*/
margin-bottom: 5px;
}

#example2 div a{ /*CSS specific to demo 2*/
text-decoration: none;
}

#example3 a{ /*CSS specific to demo 3*/
color: #D80101;
text-decoration: none;
font-weight: bold;
}

#example3 p{ /*CSS specific to demo 3*/
margin-bottom: 2px;
}

code{ /*CSS for insructions*/
color: red;
}

</style>
</head>

<body>

<h3>Example 2: (Two RSS feeds, 6 entries, "<code>label"</code>, "<code>datetime</code>", and "<code>snippet</code>" fields enabled, sort by <code>label</code>)</h3>

<script type="text/javascript">

var socialfeed=new gfeedfetcher("example2", "example2class", "_new")
socialfeed.addFeed("1DayFly", "http://www.1dayfly.nl/rss.asp") //Specify "label" plus URL to RSS feed
socialfeed.addFeed("Dagactie", "http://www.dagactie.nl/dagactie.xml") //Specify "label" plus URL to RSS feed
socialfeed.addFeed("Hotbrandz", "http://www.hotbrandz.com/feed") //Specify "label" plus URL to RSS feed
socialfeed.addFeed("iBOOD", "http://www.ibood.com/site/nl/ibood.xml") //Specify "label" plus URL to RSS feed
socialfeed.addFeed("MassaIsKassa", "http://www.massaiskassa.nl/rss/massaiskassa.php") //Specify "label" plus URL to RSS feed
socialfeed.addFeed("Nobisbrand", "http://www.nobisbrand.com/rss") //Specify "label" plus URL to RSS feed
socialfeed.displayoptions("label datetime snippet") //show the specified additional fields
socialfeed.setentrycontainer("div") //Display each entry as a DIV
socialfeed.filterfeed(6, "label") //Show 6 entries, sort by label
socialfeed.init() //Always call this last

</script>

<br /><br />



</body>
</html>


Thanks in advance for looking at this.

ddadmin
11-28-2007, 01:51 AM
I've confirmed the problem, but haven't quite tracked down the cause yet. My guess is it has something to do with Google's caching of he RSS feeds, but regardless, unfortunately I don't have a solution right now, and will have to get back to it once I have some time.

plimfec
11-28-2007, 08:47 PM
I like the simple way the script can be used in the html page, so I'll keep an eye on it. Take your time of course. Thanks very much for doing all this.

wsdtech05
07-23-2008, 09:43 PM
Is there any chance you've found a solution to this? I am having the exact same problem with my labels -- sometimes (seemingly randomly and relatively often) the labels appear with the wrong feeds...

My website can be found here (www.whitnall.com) and I'm using your script (which is fantastic btw!) to power our school district's news tickers.

I'm also hoping you might be able to help me with another thing, I can't seem to get any Feedburner feeds to work with the script! I've also tried Yahoo Pipes and other feed aggregators and filters, none seem to work. Here's an example: http://www.whitnall.com/technology.cfm

MooseToga
08-13-2008, 02:17 PM
I think this script is the best aggregator out there, so this IE bug really has me down in the dumps. I'm using it here: http://www.ffgeekblog.com/ffgeeksource/

Works beautifully in every browser but IE, in which the names of the blogs get all messed up.

Would be very happy to hear that a solution had been cooked up.

Bensherman
11-14-2008, 08:53 PM
Has anyone had any luck figuring out the "wandering feeds" issue with gAjax? I currently have four feeds filtering in, all of which seem to be working fine with the exception of labels appearing with the wrong links when refreshed.

Thanks.

batec
04-07-2010, 11:34 AM
I am having the save switching label problem, but its only in Safari and Chrome has there been any updated on solving this issue?

Here is an example: http://www.newschool.edu/parsons/subpage.aspx?id=27324

cb

ddadmin
06-15-2010, 06:22 AM
Ok, I've finally had some time to really look into the problem, which was a timing issue in IE that caused the incorrect label to sometimes be associated with the feeds. The problem should be fixed now. Only the .js file has been modified.