![]() |
|
Allen
Forum Regular
|
The last part of your question I'm not sure I understand but as far as my RSS Reader pulling updates, it did that right after I uploaded 3 webpage changes to HMS.... (my RSS Reader alerted me of these 3 updates within seconds). Its pop-up message and bell kinda startled me actually... I wasn't expecting it.
This would probably apply to the 2nd part of your question... on the webpages themselves, I just changed around those XLM and RSS logos (no new text). Of course my RSS reader wouldn't know that, it only recognized changes. The real changes I made was in the feed file like for this item:
Note that I made my description a little longer and also added <guid> and <pubDate> (I added <guid> because I saw some others used it and assumed it probably had to do with accomodating different brands of readers) I also dropped the "www" in my links since I remembered the validator couldn't find my file with that in my URL. But assuming you mean that if I changed my wepage text it would automatically reflect those changes in my feed file, then no, I don't know how to do that. I just figured I'd have to change the feed file to relect changes in the webpage... each time. |
|||||||||||||
|
|
||||||||||||||
|
bobum
Elvis Fanatic
![]()
|
That's exactly what I meant. It'll be a lot easier on you if you make your RSS feed dynamic so that as you change your webpage, the feed will automatically update itself. Right now not only are you going to have to manually update your HTML pages...now you are also going to have to update your RSS feed...more work...blah You're sloooowly building your site up to have some nice features...I can see you going data driven in the not too distant future with it...you'll have to abandon FrontPage though at that point and learn a little ASP I suspect. |
|||||||||||||
|
|
||||||||||||||
|
Allen
Forum Regular
|
Thanks Bobum... yeah, I suppose you're right, I'm probably migrating in that direction. However it will be the features I want which will dictate how far I go and how fast. Although right now I can't think of any more of them blasted new-fangled gadgets that I want. Maybe I'll change my tune in the next year or so... who knows? Labor-saving devices aren't important to me now either, after all, I only have one website to look after with not much else to do... I retired you know. As it is, for all the time I spent learning CSS, it still hasn't paid me back in time saved. It still owes me about 200 hours!!! I should sue!! This is the way I look at it... the hours I'll save has got to be greater the hours spent learning it. I'm too danged old to think it will pay off sometime down the line... not unless I'm still doing this at 90. That's the main reason I like FrontPage... I don't have to learn much of anything new. Not if I don't want to. It's all about FREEDOM brother!!! Yup, I'm just a hermit who wants everything like it was 50 years ago... but if I must have a website, then by God it will be old-fashioned one. It wasn't always this good though... not before I kicked out the old lady.
|
||||||||||||
|
|
|||||||||||||
|
bobum
Elvis Fanatic
![]()
|
LOL - you'll be fine then just maintaining it in Frontpage - but if it grows much past where you are now it might be worth it to look into building a dymaic site with some admin controls. If you ever get to that point, post here and we'll see if we can't get you going. It doesn't have to be home rolled either - there are some great packages out there available for free that will get you a complete site, data driven, with your admin features that will allow you to update your site without having to fire up something like Frontpage. Those will usually allow you the freedom to make your site as cusom as you want it without having to learn all the intricacies of programming ASP or PHP etc...
|
||||||||||||
|
|
|||||||||||||
|
Allen
Forum Regular
|
Thanks a lot Bobum... I appreciate your kindness and you've been a great help. So for now at least, I'm fixed up... but who knows what wizardry from **** I might want in the coming months. I'll drop in once in awhile to browse around.
|
||||||||||||
|
|
|||||||||||||
|
bobum
Elvis Fanatic
![]()
|
Outstanding! Can't ask for more than that!
|
||||||||||||
|
|
|||||||||||||
| RSS Feed Sample code |
|
tobiansj
HostMySite Supervisor
|
This information was taken from http://home.att.net/~codeLibrary/XML/rss_p.htm
Gathering News Headline Feeds using ASP Introduction Soon everyone from major newspapers to individuals who just want to rant over the world wide web will be offering RSS (Rich Site Summary) feeds on the internet, free for the taking. With a simple ASP/ASPX script run on a Microsoft IIS web server and an xml style sheet, you can consolidate as many RSS feed as you want onto a single web page. That way, you can show the latest rantings of a friend or news headlines about your favorite subject, all in one place. This is called news consolidation (not related to the usenet news:// protocol). RSS is an xml format for encoding information about news headlines. It is quickly becoming the standard method for sending headlines, and related things, across the world wide web. This popularity is primarily due to it's simplicity and the extraordinary growth in the popularity of web logs (daily personal rants published to the web). RSS defines a number of xml tags suitable for storing news headlines. Here's some of the most important RSS xml tags; <rss> <channel> <title>Name of the news feed.</title> <link>A url for the source website.</link> <description>A short description of the news feed.</description> <item> <title>Headline #1</title> <link>A url for the entire news article under headline #1.</link> <description>A short blurb about the news article under headline #1.</description> </item> </channel> </rss> The <item> tag repeats for each news headline in the RSS feed. ASP Script Below are a ASP classic and a ASP.net script that load the remote RSS feed and displays it on the page. You can execute this script from an ASP database page containing the url of the RSS xml source or hard code the RSS feeds that you want to include on the page. ASP Classic The following ASP routine loads the specified RSS formatted xml file, loads a standard xsl style sheet and displays an HTML table. Place this script at the top of your ASP page; <% Sub getXML(sourceFile) dim styleFile dim source, style styleFile = Server.MapPath("news.xsl") set source = Server.CreateObject("Msxml2.DomDocument") source.async = false source.setProperty "ServerHTTPRequest", true source.load CStr(sourceFile) set style = Server.CreateObject("Msxml2.DomDocument") style.async = false style.load styleFile source.transformNodeToObject style, Response set source = nothing set style = nothing End Sub %> <html> NOTE: Thanks to Mike Sharp for the MSXML3 version of this script. The following ASP script displays the specified RSS xml feed as a table on your ASP page. Place it on the page where you want the table to be displayed and change the URL in the getXML function call to point to your RSS xml source file. <% getXML("http://radio.weblogs.com/0106935/rss.xml") %> ASP.net The following ASP.net function loads the specified RSS formatted xml file into an xml document when the page loads. Place this script at the top of your ASP page and add the URL to the RSS xml source file in the getXML function call; <script language="VB" runat="server"> Sub Page_Load (sender As Object, e As EventArgs) myXml.Document = getXML("http://radio.weblogs.com/0106935/rss.xml") End Sub Function getXML(sourceFile As String) Dim myRequest As System.Net.WebRequest = System.Net.WebRequest.Create(sourceFile) Dim myResponse As System.Net.WebResponse = myRequest.GetResponse() Dim myReader As System.Xml.XmlTextReader = new System.Xml.XmlTextReader(myResponse.GetResponseStream()) Dim doc As System.Xml.XmlDocument = New System.Xml.XmlDocument() doc.Load(myReader) getXML = doc End Function </script> The following xml web server control displays the specified RSS xml feed as a table on your ASP page using the xsl style sheet in the TransformSource attribute (NOTE: the xsl source file must be in the server path of the ASP file, not a http: url). Place it on the page where you want the table to be displayed. <asp:Xml id="myXml" TransformSource="news.xsl" runat="server" /> XSL Style Sheet An RSS source is rendered as an HTML table using an xsl style sheet. The style sheet recurses (for-each) each <item> tag in the rss feed into a numbered list with the <title> as a link <link> to the full article and the <description> below the title. The style sheet can be modified to present the feed in other formats. For example, you can limit the number of articles displayed by adding an <xsl:if> statement to the xsl style sheet as follows; <xsl:for-each select="//*[local-name()='item']"> <xsl:if test="position() < 6"> ... </xsl:if> </xsl:for-each> The 'if' statement limits the output to only the first 5 items (i.e. position is less than 6) Implementation Save the xsl style sheet (Right-Click... Save Target As...) as a text file called news.xsl in the same folder as your ASP/ASPX page. Create the .asp or .aspx page as described in the ASP Script section. Access the page (.asp or .aspx) from your Microsoft IIS web server. |
||||||||||||
|
|
|||||||||||||
| RSS Feeds |
|
||
|



