Hello fellow monks, I have a question for you all, and hopefully you can give me some insight into which direction I should take this project. Please bear with me, the explanation is quite long.
I work for a university and we just moved off of our custom in-house CMS system to post news as it was old and quite frankly, didnt work very well. We are actually using Blogger now, departments can just log in and post news themselves.
I have to write code that will take the Atom feed from blogger, parse it, and display a 'Top 5' of news headlines. I cannot directly use perl since some department pages dont have perl enabled, so it has to be some sort of javasrcipt solution.
The two ways I have come up with are as follows:
1) Write a perl script to parse the Atom feed and return javascript, for example:
<script language="JavaScript" src="foo/bar.pl" type="text/javascript"></script>
2) Write a perl script that runs every so often that would generate a javascript file with the updated news headlines in the file itself.
For example,
displayNews()
We are worried about speed and how much a performance impact solution #1 would have on the mainpage, as it gets a lot of hits.
Thoughts?
janitored by ybiC: Retitle from less-than-descriptive "I need direction" for better site search
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.