471,854 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,854 software developers and data experts.

Looking for guidance on calling a live feed

kimbere
Hi folks. I'm a non-developer with just enough JavaScript knowledge to get me into trouble. I've got an application question and I'm hoping someone can point me in the right direction.

My organization has access to a live XML data feed from weather.com that we are going to use to post weather on our website. (I know there are other weather feeds; for reasons I won't go into I have to work with weather.com). Basically, I want to create a 300x300 box for our homepage that calls data from about half-a-dozen fields -- temperature, wind speed, etc -- and pulls in the appropriate weather.com icon (clouds for "Cloudy", etc).

What I'd like to know is, can this kind of app be created just using JavaScript? (Creating it is beyond me, I just want to make sure I'm on the right track).

Thanks!

Kim
May 25 '07 #1
3 1387
dmjpro
2,476 2GB
Welcome toTSDN.

I think u better to ask it in JAVA Forum.
do u know the URL class????

kind regards.
dmjpro.
May 25 '07 #2
pbmods
5,821 Expert 4TB
Heya, Kim. Welcome to TSDN!

Hi folks. I'm a non-developer with just enough JavaScript knowledge to get me into trouble.
Good. You have what it takes to be the world's best JavaScript programmer :)

(I know there are other weather feeds; for reasons I won't go into I have to work with weather.com)
You must post to worsethanfailure a lot.

What I'd like to know is, can this kind of app be created just using JavaScript? (Creating it is beyond me, I just want to make sure I'm on the right track).
The short answer is, 'Yes.' The long answer involves getting into some of that trouble that you have a penchant for :)

Using AJAX, you make an asynchronous request to Weather.com and grab the feed. You then parse it using your favorite XML library (such as Sarissa) and generate new content for the weather box on your site using DOM.
May 25 '07 #3
I haven't posted to worsethanfailure.com before, but it looks like I should :) Thanks for your answer -- it's very helpful.

Best,

Kim
May 25 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Paul | last post: by
11 posts views Thread by Ken Durden | last post: by
5 posts views Thread by Realtime | last post: by
reply views Thread by mitchell35 | last post: by
2 posts views Thread by =?Utf-8?B?Tmljaw==?= | last post: by
NeoPa
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.