SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard
    Join Date
    Aug 2002
    Location
    N.Ireland
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    RSS Feed - set number of results

    I have an RSS Feed on my page showing the latest BBC Technology news. However, it currently shows all headlines and I want to restrict it to 2/3.

    I'm a novice when it comes to JS, can anyone help please?

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,424
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    You shouldn't be using javascript for this. The script that is parsing the RSS should be doing this.

  3. #3
    SitePoint Wizard
    Join Date
    Aug 2002
    Location
    N.Ireland
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I should have explained that the site is content managed, so its a data table object which sends a request and imports the feed as xml and a format template exports it as html. I need a script in between which will restrict the number of headlines it displays.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •