Hello,
I hope someone is able to help me with this script. I do not understand anything of vbscripting, I did work with javascript only. I got a ASP page with vbscript init but my provider is not suporting asp is it posible to make the vbscript work in html pages? I hope you are able to get this script started for me.
<SCRIPT LANGUAGE="VBScript">
<!--
dim objXMLHTTP
dim thezipcode
thezipcode = 48430
URL = " & thezipcode & "&metric=0"
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP"
objXMLHTTP.Open "GET", URL, false
objXMLHTTP.Send
If InStr(objXMLHTTP.responsetext, "<tr bgcolor=""#ffffff"">" = 0 Then
start = 0
else
start = InStr(objXMLHTTP.responsetext, "<tr bgcolor=""#ffffff"">"
end if
If InStr(objXMLHTTP.responsetext, "<tr bgcolor=""#E5E1D9"">" = 0 Then
finish = 1
else
finish = InStr(objXMLHTTP.responsetext, "<tr bgcolor=""#E5E1D9"">"
amount = finish - start
extract = Mid(objXMLHTTP.responsetext,start,amount)
end if
extract = Replace(extract, " ""
extract = Replace(extract, "RealFeel[TM]", "Feels Like"
extract = Replace(extract, "RF", "Feels Like"
'Response.Write "<hr>"
'Response.Write "<h4>HTML Code for "&URL&"</h4>"
'Response.Write "<textarea rows=30 cols=120>"
Response.write "<table width=""315"" cellpadding=""6"" cellspacing=""0"" border=""0"">"
Response.Write extract 'objXMLHTTP.responseText
Response.write "</table>"
Response.write " <font size=""-1""><a href="" by Weather Connect</b></a></font>"
'Response.Write "</textarea>"
Set objXMLHTTP = Nothing
-->
</SCRIPT>
Thanks for your help.
Greatings
Marcel
I hope someone is able to help me with this script. I do not understand anything of vbscripting, I did work with javascript only. I got a ASP page with vbscript init but my provider is not suporting asp is it posible to make the vbscript work in html pages? I hope you are able to get this script started for me.
<SCRIPT LANGUAGE="VBScript">
<!--
dim objXMLHTTP
dim thezipcode
thezipcode = 48430
URL = " & thezipcode & "&metric=0"
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP"
objXMLHTTP.Open "GET", URL, false
objXMLHTTP.Send
If InStr(objXMLHTTP.responsetext, "<tr bgcolor=""#ffffff"">" = 0 Then
start = 0
else
start = InStr(objXMLHTTP.responsetext, "<tr bgcolor=""#ffffff"">"
end if
If InStr(objXMLHTTP.responsetext, "<tr bgcolor=""#E5E1D9"">" = 0 Then
finish = 1
else
finish = InStr(objXMLHTTP.responsetext, "<tr bgcolor=""#E5E1D9"">"
amount = finish - start
extract = Mid(objXMLHTTP.responsetext,start,amount)
end if
extract = Replace(extract, " ""
extract = Replace(extract, "RealFeel[TM]", "Feels Like"
extract = Replace(extract, "RF", "Feels Like"
'Response.Write "<hr>"
'Response.Write "<h4>HTML Code for "&URL&"</h4>"
'Response.Write "<textarea rows=30 cols=120>"
Response.write "<table width=""315"" cellpadding=""6"" cellspacing=""0"" border=""0"">"
Response.Write extract 'objXMLHTTP.responseText
Response.write "</table>"
Response.write " <font size=""-1""><a href="" by Weather Connect</b></a></font>"
'Response.Write "</textarea>"
Set objXMLHTTP = Nothing
-->
</SCRIPT>
Thanks for your help.
Greatings
Marcel