I am trying to find out how to display the actual image, instead of the path to it? here is the code:
<!-- #include virtual="./includes/header2.asp" --><%
LocationID = Request.Form("zipcode"
Set Weather = Server.CreateObject("S3Weather.Current"
Weather.CompanyName = "Pacific"
Weather.RegistrationKey = "DEFWQ:O5C2K:MN618:V92AU"
Weather.DesktopEmail = "brii@cox.net"
Weather.DesktopPassword = "b"
Weather.UseCelsius = False
ErrorNumber = Weather.GetWeather(LocationID)
If ErrorNumber = 0 Then
%>
<link href="file://///Pacific/Inetpub/ rel="stylesheet" type="text/css">
<blockquote>
<pre>
Barometer: <%= Weather.Barometer %>
BarometerDirection: <%= Weather.BarometerDirection %>
City: <%= Weather.City %>
FeelsLike: <%= Weather.FeelsLike %>
Forecast: <%= Weather.Forecast %>
Humidity: <%= Weather.Humidity %>
ImageID: <%= Weather.ImageID %>
ImageSmall: <%= Weather.ImageSmall %>
ImageBig: <%= Weather.ImageBig %>
ImageOldAnimated: <%= Weather.ImageOldAnimated %>
ImageOldTrans: <%= Weather.ImageOldTrans %>
Precipitation: <%= Weather.Precipitation %>
Reported: <%= Weather.Reported %>
State: <%= Weather.State %>
Sunrise: <%= Weather.Sunrise %>
Sunset: <%= Weather.Sunset %>
Temperature: <%= Weather.Temperature %>
TemperatureLow: <%= Weather.TemperatureLow %>
TemperatureHigh: <%= Weather.TemperatureHigh %>
WeatherAlert: <%= Weather.WeatherAlert %>
WeatherAlertText: <%= Weather.WeatherAlertText %>
WeatherAlertLink: <%= Weather.WeatherAlertLink %>
Wind: <%= Weather.Wind %>
WindSpeed: <%= Weather.WindSpeed %>
WindDirection: <%= Weather.WindDirection %>
</pre>
</blockquote>
<%
Else
%>
<pre>
The following error information produced:
<br>
Error Number: <%= ErrorNumber %>
Error Message: <%= Weather.ErrorMessage %>
</pre>
<%
End If
Set Weather = Nothing
%>
The output looks like this:
Barometer: 29.92
BarometerDirection: steady
City: Mission Viejo
FeelsLike: 93
Forecast: Fair
Humidity: 31
ImageID: 34
ImageSmall: ImageBig: Precipitation: 0
Reported: 6/30/03 2:53 PM PDT as reported at Chino, CA
State: CA
Sunrise: 5:44 AM
Sunset: 8:05 PM
Temperature: 93
TemperatureLow: 59
TemperatureHigh: N/A
WeatherAlert: False
WeatherAlertText: N/A
WeatherAlertLink: N/A
Wind: From the West Northwest at 14
WindSpeed: 14
WindDirection: WNW
I want lines 8 and 9 to be the actual image and not the path to the image. If anyone can help I would really appreciate it. I tried doing it like the website suggested but I could not get it to work. Here is what they gave me:
Set objWeather = Server.CreateObject("S3Weather.Current"
objWeather.CompanyName = "Company Name"
objWeather.RegistrationKey = "Registration Key"
objWeather.UseCelsius = False
ErrorResponse = objWeather.GetWeather("90210"
If ErrorResponse = 0 Then
‘No error has occurred
WeatherImage = objWeather.ImageSmall
Response.Write(“<img src=""" & WeatherImage & """>"
Else
‘An error has occurred
End If
Set objWeather = Nothing
<!-- #include virtual="./includes/header2.asp" --><%
LocationID = Request.Form("zipcode"
Set Weather = Server.CreateObject("S3Weather.Current"
Weather.CompanyName = "Pacific"
Weather.RegistrationKey = "DEFWQ:O5C2K:MN618:V92AU"
Weather.DesktopEmail = "brii@cox.net"
Weather.DesktopPassword = "b"
Weather.UseCelsius = False
ErrorNumber = Weather.GetWeather(LocationID)
If ErrorNumber = 0 Then
%>
<link href="file://///Pacific/Inetpub/ rel="stylesheet" type="text/css">
<blockquote>
<pre>
Barometer: <%= Weather.Barometer %>
BarometerDirection: <%= Weather.BarometerDirection %>
City: <%= Weather.City %>
FeelsLike: <%= Weather.FeelsLike %>
Forecast: <%= Weather.Forecast %>
Humidity: <%= Weather.Humidity %>
ImageID: <%= Weather.ImageID %>
ImageSmall: <%= Weather.ImageSmall %>
ImageBig: <%= Weather.ImageBig %>
ImageOldAnimated: <%= Weather.ImageOldAnimated %>
ImageOldTrans: <%= Weather.ImageOldTrans %>
Precipitation: <%= Weather.Precipitation %>
Reported: <%= Weather.Reported %>
State: <%= Weather.State %>
Sunrise: <%= Weather.Sunrise %>
Sunset: <%= Weather.Sunset %>
Temperature: <%= Weather.Temperature %>
TemperatureLow: <%= Weather.TemperatureLow %>
TemperatureHigh: <%= Weather.TemperatureHigh %>
WeatherAlert: <%= Weather.WeatherAlert %>
WeatherAlertText: <%= Weather.WeatherAlertText %>
WeatherAlertLink: <%= Weather.WeatherAlertLink %>
Wind: <%= Weather.Wind %>
WindSpeed: <%= Weather.WindSpeed %>
WindDirection: <%= Weather.WindDirection %>
</pre>
</blockquote>
<%
Else
%>
<pre>
The following error information produced:
<br>
Error Number: <%= ErrorNumber %>
Error Message: <%= Weather.ErrorMessage %>
</pre>
<%
End If
Set Weather = Nothing
%>
The output looks like this:
Barometer: 29.92
BarometerDirection: steady
City: Mission Viejo
FeelsLike: 93
Forecast: Fair
Humidity: 31
ImageID: 34
ImageSmall: ImageBig: Precipitation: 0
Reported: 6/30/03 2:53 PM PDT as reported at Chino, CA
State: CA
Sunrise: 5:44 AM
Sunset: 8:05 PM
Temperature: 93
TemperatureLow: 59
TemperatureHigh: N/A
WeatherAlert: False
WeatherAlertText: N/A
WeatherAlertLink: N/A
Wind: From the West Northwest at 14
WindSpeed: 14
WindDirection: WNW
I want lines 8 and 9 to be the actual image and not the path to the image. If anyone can help I would really appreciate it. I tried doing it like the website suggested but I could not get it to work. Here is what they gave me:
Set objWeather = Server.CreateObject("S3Weather.Current"
objWeather.CompanyName = "Company Name"
objWeather.RegistrationKey = "Registration Key"
objWeather.UseCelsius = False
ErrorResponse = objWeather.GetWeather("90210"
If ErrorResponse = 0 Then
‘No error has occurred
WeatherImage = objWeather.ImageSmall
Response.Write(“<img src=""" & WeatherImage & """>"
Else
‘An error has occurred
End If
Set objWeather = Nothing