Click to search Andy Jarrett.co.uk RSS feed

Loading Twitter

Weather CFC

I've just updated myWeather.cfc so it can go on CFC Zone. I've removed the need for the application scope as to not break encapsulation. Though be warned, if you hit the site too many times you will be banned. I've also included an example .cfm as well.

One question which was asked was by Rob (and i hope i doesnt mind me repeating here) :o)
"Can you make the CFC so that it accepts the location to do the weather lookup as an argument?"

I had a look, and i dont think it can, basically from what I can tell will not accept the location as a lookup argument mainly because the search facility on the site is for US only. Plus a search for "Portsmouth" will return four results:

  • Portsmouth, Iowa
  • Portsmouth, New Hampshire
  • Portsmouth, Ohio
  • Portsmouth, Rhode Island
  • Portsmouth, Virginia
Anyway, if anyone wants to have a go so you can parse the location as the argument please feel free. You can get the zip file here.
Just a quick survey - Does anyone have any trouble opening .rar files?

Also if anyone has any questions i wont be able to answer them for a while, im off to Sunny Ibiza tonight with the g/f for a week of the 3 S's: Sunsets at Cafe Del Mar, San Miguel Beer and the other :o)

Comments Comments (4) | Print Print | Send Send | 2652 Views

Larry C. Lyons's Gravatar Posted By Larry C. Lyons @ 9/15/04 6:22 AM
Regarding your comments about opening rar files. I had no problem on this Wind'ohs machine - fortunatley it had Aladin Systems Stuffit on it which can open those files.

regards,
larry
d!ck's Gravatar Posted By d!ck @ 6/4/05 1:28 PM
It doesn't look like your code made it to CFC Zone. I can't see it there. Any chance you could post it here?

d!ck
Andy J's Gravatar Posted By Andy J @ 6/4/05 4:34 PM
d!ck's Gravatar Posted By d!ck @ 6/8/05 12:56 AM
Thanks Andy, I did, but I was expecting the example .cfm you mentioned and removal of the application scope stuff. May you haven't updated your online version of the code?
BlogCFC by Raymond Camden + Twitter @AndyJ + ColdFusion jobs + Contact Me + Snippets/Downloads + RSS .