have a look at this page,
the page is using an xml feed to grab content of the dmoz directory... though as you'll see there are a few problems with the Spanish words and ? comes up a few times.
'heres the code
'=======================================
<%
If Request("ID"
= "" Then
Response.Redirect "index.asp"
End If
Function getit(strAdd,strFrom,strTo)
Dim objXMLHTTP, strGot, strSource
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP"
objXMLHTTP.Open "GET", strAdd, False
objXMLHTTP.Send
strSource = objXMLHTTP.responseText
Set objXMLHTTP = Nothing
Dim b,e
b=Instr(strSource,strFrom)
If b<>0 Then
b=b+Len(strFrom)
e=Instr(b,strSource,strTo)
strGot=Mid(strSource, b, e-b)
Else
Response.Write " "
End If
getit = strGot
End Function
dim Grabbed, CopyFrom, CopyTo
Grabbed = " & request.querystring("ID"
CopyFrom = "</form>"
CopyTo = "<table width=""95%"" cellpadding=0 cellspacing=0>"
Dim strSource
strSource = getit(Grabbed,CopyFrom,CopyTo)
strSource=Replace(strSource,"<b>"," "
strSource=Replace(strSource,"</b>"," "
strSource=Replace(strSource,"<hr>"," "
strSource=Replace(strSource,"+1","2"
Dim once, twice
once = Replace(strSource,"<a href=""desc.html","<a href="" & Request("ID"
& "desc.html" & """" & " target=""_new"
twice = Replace(once,"href=""/","href=""directory.asp?ID="
If twice = "" Then
%>
</p>
<table border="1" width="100%">
<tr>
<td width="100%" align="center"><font face="Arial">Sorry This
Page Is Currently Un-Available<BR>
<A HREF="javascript:history.back();"><<< BACK</A></font></td>
</tr>
</table>
<%
Else
response.write twice
End If
%>
hope u can help, much appreciated.
Thanks
Michael.
the page is using an xml feed to grab content of the dmoz directory... though as you'll see there are a few problems with the Spanish words and ? comes up a few times.
'heres the code
'=======================================
<%
If Request("ID"
Response.Redirect "index.asp"
End If
Function getit(strAdd,strFrom,strTo)
Dim objXMLHTTP, strGot, strSource
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP"
objXMLHTTP.Open "GET", strAdd, False
objXMLHTTP.Send
strSource = objXMLHTTP.responseText
Set objXMLHTTP = Nothing
Dim b,e
b=Instr(strSource,strFrom)
If b<>0 Then
b=b+Len(strFrom)
e=Instr(b,strSource,strTo)
strGot=Mid(strSource, b, e-b)
Else
Response.Write " "
End If
getit = strGot
End Function
dim Grabbed, CopyFrom, CopyTo
Grabbed = " & request.querystring("ID"
CopyFrom = "</form>"
CopyTo = "<table width=""95%"" cellpadding=0 cellspacing=0>"
Dim strSource
strSource = getit(Grabbed,CopyFrom,CopyTo)
strSource=Replace(strSource,"<b>"," "
strSource=Replace(strSource,"</b>"," "
strSource=Replace(strSource,"<hr>"," "
strSource=Replace(strSource,"+1","2"
Dim once, twice
once = Replace(strSource,"<a href=""desc.html","<a href="" & Request("ID"
twice = Replace(once,"href=""/","href=""directory.asp?ID="
If twice = "" Then
%>
</p>
<table border="1" width="100%">
<tr>
<td width="100%" align="center"><font face="Arial">Sorry This
Page Is Currently Un-Available<BR>
<A HREF="javascript:history.back();"><<< BACK</A></font></td>
</tr>
</table>
<%
Else
response.write twice
End If
%>
hope u can help, much appreciated.
Thanks
Michael.