Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Using ASP to display RSS


  • Please log in to reply

#1
Jim Bell

Jim Bell

    Member

  • Member
  • PipPip
  • 16 posts
I wonder if any of you guys can help me with this one. I am currently using Bytescout.com RSS2HTML.ASP for ASP version 1.23 to display RSS feeds on my website. I just wondered if any of you knew how to get the main feed title and link of the RSS feed to display at the top of the news items.

Many thanks in advance
  • 0

Advertisements


#2
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Something in this way?

RSS Feeds

Ron
  • 0

#3
Jim Bell

Jim Bell

    Member

  • Topic Starter
  • Member
  • PipPip
  • 16 posts
Yeah - but just something similar to the bit in blue. I have the code to display the individual news items (the code of which can be viewed in the link to the Bytescout link I sent in my first post), but I would like to add onto this code the ability to add the RSS feed title automatically from the feed (eg. BBC News | World | UK Edition), using ASP.

Thanks.

Edited by Jim Bell, 19 June 2007 - 12:52 AM.

  • 0

#4
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Basically for each feed I have this:

<script type="text/javascript">
xjrf_title = 'Giveaway of the Day!';
xjrf_show_content = true;
xjrf_items = 5;
xjrf_open_target = '_blank';
xjrf_use_css_only = true;
com.bigllc.xjr.feeds.showFeed('http://www.giveawayoftheday.com/feed/');
</script>

That's for the Giveaway of the Day feed. But then I'm using a different feed method. maybe try reordering these to get title at top:

if J<MaxNumberOfItems then
ItemContent = Replace(ItemTemplate,"{LINK}",RSSlink)
ItemContent = Replace(ItemContent,"{TITLE}",RSSTitle)
ItemContent = Replace(ItemContent,"{DATE}",RSSDate)
ItemContent = Replace(ItemContent,"{COMMENTSLINK}",RSSCommentsLink)
ItemContent = Replace(ItemContent,"{CATEGORY}",RSSCategory)

Just a guess as I haven't tried this.

Ron
  • 0

#5
Jim Bell

Jim Bell

    Member

  • Topic Starter
  • Member
  • PipPip
  • 16 posts
Alterering the code like that jsu displayed the feeds the same. I am trying to do this sort of thing. At the moment the Bytescout code offers this:

Item Title
Item Description.....
.............................
Item Title
Item Description.....
.............................
Item Title
Item Description.....
.............................

And so on throught the RSS feed, with feed I want to add code to the bytescout code to let me do this:

Feed Title


Item Title
Item Description.....
.............................
Item Title
Item Description.....
.............................
Item Title
Item Description.....
.............................


Collecting the feed title from the RSS feed itself.

Thanks
  • 0

#6
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Hi:

Did you get this solved yet? Will ask for help to other techs if not.

Ron
  • 0

#7
Jim Bell

Jim Bell

    Member

  • Topic Starter
  • Member
  • PipPip
  • 16 posts
No I didnt, that would be great.

Thanks a lot for all your help
  • 0

#8
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Have posted in tech forum for help for you. Hang in there.

Ron
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP