www.webdeveloper.com
Results 1 to 5 of 5

Thread: Rss Feed

  1. #1

    Rss Feed

    I've set up a simple rss feed (shown below). I'm wondering if there is a way to set this up so that a user who has no idea what it is doesn't have to use an aggregator or something. If there is, how? I'm really new to xml and so far I've only set up a pod cast and an rss feed.

    Could I style the page to say something like: This page isn't meant to be viewed by humans. To subscribe to it, you will need a News Reader or other similar application, plug-in, or another website that supports RSS aggregation (such as Google, Yahoo!, etc).

    XML file
    HTML Code:
    <rss version="2.0">
    <channel>
    
    <title>Feed Title</title>
    <link>link to page containing all updates</link>
    <description>description</description>
    <copyright>Copyright 2006</copyright>
    
    <item>
    <title>item title (probably include date</title>
    <link>link to item (same as above but with anchor link)</link>
    <description>shortened version of what's on the actual page</description>
    </item>
    
    </channel>
    </rss>
    I know XHTML and CSS, but my knowledge is below basic in any other language.

  2. #2
    Join Date
    May 2004
    Location
    FL
    Posts
    3,447
    The browser will generally do that. You can add the following script. The idea is to provide an alert window with the URL of the RSS feed that can be copied into the visitor's RSS feed reader. Here is an adapted version of the script. (Note: the onClick portion should all be written on the same line.)

    Code:
    <a href="http://www.yourdomain/feed.xml" target="_blank"
    onClick="prompt('To subscribe to this RSS feed, copy this link
      and paste it into your aggregator software.\nOr, if you are using
      Firefox, just click the orange icon in the address bar
      above.','http://www.yourdomain/feed.xml'); return false;">
      <img src="/img/rss_xml.gif" width="71" height="14" border="0" alt=""></a>
    You can also use the method shown here
    Lee

    ""Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."" -- Sir Winston Churchill

  3. #3
    Ok I'll try that later. The image is just something like this, right? With FireFox live bookmarks, is it just a link to whatever page the <link> is in the <item> ?
    I know XHTML and CSS, but my knowledge is below basic in any other language.

  4. #4
    Is that correct about firefox live bookmarks? (look at previous post)
    I know XHTML and CSS, but my knowledge is below basic in any other language.

  5. #5
    Join Date
    Jul 2006
    Posts
    2
    just use xslt to say that over the file..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles