Joris, you're a star! I'm away to do some homework........
"Joris van Lier" <whizzrd@hotmail.com> wrote in message
news:fj4af8$ojb$1@forums.macromedia.com...
>
>
> "Mintyman" <mintyman@ntlworld.com> wrote in
message
> news:fj4937$n3h$1@forums.macromedia.com...
>> Hi Joris,
>>
>> Thanks for your input so far.
>>
>> I have managed to find a solution that words. Yay!
I'm using ASP
>> VBScript.
>>
>> In case anyone out there wants to know what worked,
here's the code I
>> used :
>>
>> <%
>> ' Url of the webpage we want to retrieve
>> thisURL = "
http://www.mysite.com"
>>
>> ' Creation of the xmlHTTP object
>> Set GetConnection =
CreateObject("Microsoft.XMLHTTP")
>
> It's recommended to use ServerXMLHTTP when working on
servers
>
http://support.microsoft.com/kb/303982
>
>
>> ' Connection to the URL
>> GetConnection.Open "get", thisURL, False
>> GetConnection.Send
>>
>> ' ResponsePage now have the response of
>> ' the remote web server
>> dim varText
>> varText = GetConnection.responseText
>>
>> Set GetConnection = Nothing
>> %>
>>
>> <%
>> 'Use logic to control content
>> If Instr(1, varText, "search text goes here") > 0
Then %>
>> Link Found
>> <%Else%>
>> Link Not Found
>> <%End If%>
>
> InStr should work with simple code fragments, as soon as
the user, or
> their editor starts reformatting your code, it will
break down, a regular
> expression allows for more flexibility in the pattern
>
>> All I need to do is work out how to get it to poll
the remote website
>> periodically as per your suggestion. I will need
this to run on a
>> remotely hosted account on which I don't have access
to the O/S. I'm
>> using MS Access as a back-end.
>>
>> Any ideas?
>
> On *nix servers it's quite common to have cron
capability, on windows this
> option is offererd less, Try asking your host about
"cron" or "Scheduling
> Tasks", they may be able to help you out.
>
> There are free services that allow calling an url, never
tried it
>
http://scheduler.webgrid.com/
>
> You can use your machine at home or at the office call
the url via Windows
> Task scheduler or cron on OS X or Linux
>
>
>