npc100
11-26-2009, 08:54 PM
1) Script Title: gajaxpausescroller
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex18/gajaxpausescroller.htm
3) Describe problem:
I use PHP to extract the feeds I want added to the scroller from a MYSQL database.
I can add feeds ok, but I can't see a function that would allow me to remove feeds.
I have tried re-setting the feed to its initial state (before any feeds were added) by writing a function, and calling it when a user clicks the appropriate button:
function removeFeeds() {
this.linktarget=linktarget || "" //link target of RSS entries
this.feedlabels=[] //array holding lables for each RSS feed
this.feedurls=[]
this.feeds=[] //array holding combined RSS feeds' entries from Feed API (result.feed.entries)
this.feedsfetched=0 //number of feeds fetched
}
But it doesn't seem to have any effect.
A separate issue is when I use the 'example2' css, if I add 3 or more feeds, the scroll function no longer works correctly - entries will scroll up and off the screen.
I'm a complete newbie to Javascript, so any pointers would be greatly appreciated!
TIA
Neil
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex18/gajaxpausescroller.htm
3) Describe problem:
I use PHP to extract the feeds I want added to the scroller from a MYSQL database.
I can add feeds ok, but I can't see a function that would allow me to remove feeds.
I have tried re-setting the feed to its initial state (before any feeds were added) by writing a function, and calling it when a user clicks the appropriate button:
function removeFeeds() {
this.linktarget=linktarget || "" //link target of RSS entries
this.feedlabels=[] //array holding lables for each RSS feed
this.feedurls=[]
this.feeds=[] //array holding combined RSS feeds' entries from Feed API (result.feed.entries)
this.feedsfetched=0 //number of feeds fetched
}
But it doesn't seem to have any effect.
A separate issue is when I use the 'example2' css, if I add 3 or more feeds, the scroll function no longer works correctly - entries will scroll up and off the screen.
I'm a complete newbie to Javascript, so any pointers would be greatly appreciated!
TIA
Neil