Display current weather conditions / forecast on your website.

Brian Thalken

I wanted to share a little javascript plugin I wrote that enables you to display current weather conditions or forecasts for a specific location by zipcode on your website. Choose from several different display types (see the examples below). Just change two parameters in the script and make it work for you.

Try it out for yourself, let me know what you think. Comments/suggestions are always welcome.



I would strongly suggest you not use Javascript for this and simply have the .NET script return an image. For one, I sure would not put just anyone's Javascript on my site since it leaves it wide open for a XSS (Cross-Site-Script) attack.
Try using the HTML code below to directly access the ASP.NET generated image instead of using JavaScript. Unfortunately there are people out there that would try to exploit holes in code.

<a href="http://www.nebraskastorms.com/current_conditions_plugin.htm">
<img src="http://www.prairieweather.com/app1/weatherforecastpluginimage.aspx?zip=68505&display=1"></a>
Last edited by a moderator: