1
jeffgr
An Example of a RSS/Ajax Block
  • 2007/3/15 14:13

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


hhttp://myottawa.ca/

On the front page, under the image that says "latest street reports". This block displays an RSS feed from my Smartsection module, using Ajax to change stories every few seconds. You can click on a story headline to visit that page

(note that when you first visit the site, there is a pop-up welcome window... this is also Ajax, but a separate thing...)

I just wanted to post this as an example here...I found it relatively easy to implement.

I used this script:

http://www.dynamicdrive.com/dynamicindex17/rsstickerajax/index.htm

Just follow the instructions on the page. It's not as hard as it first looks. After uploading the required files (again, see instructions on that page), I then added this code to a block:






In this case, I replaced the code for BBC in bridge.php (line 24) with the rss feed from my Smartsection module)

I imagine that I could add in more blocks, with different rss feeds on the page as well.

All in all, a pretty painless way to add a cool Ajax effect to a block!

jeffgr

Login

Who's Online

223 user(s) are online (72 user(s) are browsing Support Forums)


Members: 0


Guests: 223


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits