#99569 - 2003-03-14 07:22 PM
Weather Report
|
Incognito
Getting the hang of it
Registered: 2001-07-09
Posts: 66
|
Hey guys, I had a crazy idea of showing a graphic of a Sun (sunny), a sun and clouds (partly cloudy) and a picture of rain (duh) as a side form predicting the weather as the user logs into the network..
I wonder if there is some automated weather service that I can pass the variables from.. Anyone ever try anything like this before?
Also, What's the best way to trap the time of day (morning, noon, night) into a variable.. I did it, but it's pretty messy with way too many if statements.
|
Top
|
|
|
|
#99570 - 2003-03-14 07:33 PM
Re: Weather Report
|
Jochen
KiX Supporter
   
Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
|
|
Top
|
|
|
|
#99573 - 2003-03-14 09:48 PM
Re: Weather Report
|
Incognito
Getting the hang of it
Registered: 2001-07-09
Posts: 66
|
That picture is perfect.. That was exactly what I was looking for - Thanks Ramius!
Now, how would I fire up a small kixforms window with that information in it when the user logs in?
Should I fire up IE as a com object and navigate to that site?
I'm getting geeked about this now since we are a shipping copnay and I want to have the weather for all of our ports listed during login in small boxes.. Very cool.
|
Top
|
|
|
|
#99574 - 2003-03-14 10:07 PM
Re: Weather Report
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
I'd go with a kixform with a combobox / option button that would provide the weather for the selected area
|
Top
|
|
|
|
#99575 - 2003-03-14 10:26 PM
Re: Weather Report
|
Incognito
Getting the hang of it
Registered: 2001-07-09
Posts: 66
|
This is going to sound really stupid, but I am just getting a novice handle with scripting with forms and objects.
I am trying to figure out how to get a box - the size of the weather channel page that you listed above into a box without it looking like a browser window and withoud dead space..
When I create an IE application object and use the navigate command, does that object become whatever the web page is that I specify as the URL?? Is that something I can embed into a KIX form? How could I get a web page to be an object that I can place in a form? Am I even on the right path??
I'm so damn confused..
|
Top
|
|
|
|
#99576 - 2003-03-15 12:13 AM
Re: Weather Report
|
Incognito
Getting the hang of it
Registered: 2001-07-09
Posts: 66
|
* Bump *
|
Top
|
|
|
|
#99578 - 2003-03-16 05:48 PM
Re: Weather Report
|
Incognito
Getting the hang of it
Registered: 2001-07-09
Posts: 66
|
I just need a little help because I never did that before..
IS there a step by step help file that covers that or an example someone can post to get me started? Any help would be greatly appreciated.
Thanks!
|
Top
|
|
|
|
#99579 - 2003-03-17 12:48 AM
Re: Weather Report
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
the gurus chatted about this last night. there is no easy way for this to work yet, but Shawn mentioned the the best way for this to work is to build into kforms access to the IE activex control (or something to that effect)
so right now, you may need to kludge something (perhaps some IE wizard to pull the magnet jpgs on a daily basis)
|
Top
|
|
|
|
#99581 - 2003-03-17 05:52 PM
Re: Weather Report
|
Incognito
Getting the hang of it
Registered: 2001-07-09
Posts: 66
|
I have registered the Kixforms.dll on every station as a preperation of what I am attempting to accomplish.
How would I trap the webpage into a string?
$IE.Navigate("http://blahblah.com") or something simmilar?
|
Top
|
|
|
|
#99588 - 2003-03-17 07:24 PM
Re: Weather Report
|
Incognito
Getting the hang of it
Registered: 2001-07-09
Posts: 66
|
Mna, you guys are amazing.. This project has been a great lesson for me.
Thanks for all of your assistance - I will let you know how it works out.
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 1574 anonymous users online.
|
|
|