Re: Help with putting it on webpage.
Brought to you by:
iridium
From: Martin G. <gim...@gi...> - 2003-02-21 11:52:02
|
Staci <sco...@wi...> writes: > On Wed, 19 Feb 2003, Martin Geisler wrote: > >> But you've got a point: we could make a wrapper function that would >> make the report, the icons and the dropdown boxes. There's no need >> to make things harder than necessary? :-) > > What a great way of thinking about it!! > > That would sure be nice.... > > I'd really like to just have the icons/message for the weather, > rather than the dropdown etc, I know where I live, my friends know > where I live, do I have to always have the dropdown? Well, no, that depends on the wrapper function. And that's exactly the problem with these functions: it's one size fits all --- to have configurable output you'll use the function from PhpWeather directly, to have the stock report-with-icons-and-drop-down you'll use a wrapper function. We could then make the wrapper function accept arguments that control whether or not the drop-down box should be rendered... but then we're adding complexity again :-) -- Martin Geisler My GnuPG Key: 0xF7F6B57B See http://gimpster.com/ and http://phpweather.net/ for: PHP Weather => Shows the current weather on your webpage and PHP Shell => A telnet-connection (almost :-) in a PHP page. |