Home All Groups Group Topic Archive Search About

set refresh rate for an active browser window

Author
27 Nov 2006 9:36 PM
Bill Nguyen
I would like to be able to get an active browser window  to refresh the URL
(reload) every 5 minutes. Is it possible in VB.NET?

Thanks

Bill

Author
27 Nov 2006 9:40 PM
lord.zoltar
Bill Nguyen wrote:
> I would like to be able to get an active browser window  to refresh the URL
> (reload) every 5 minutes. Is it possible in VB.NET?
>
> Thanks
>
> Bill

Probably. Simplest way would be to attach a timer to the form and then
when the timer tick hits 5 minutes, refresh, reset the tick counter.
another way might be to have a seperate thread to refresh, adn then
make the thread sleep for 5 minutes, then when it wakes up, it
refreshes, and then goes back to sleep.
Author
27 Nov 2006 10:16 PM
Bill Nguyen
I ahve multiple browsers on a single form (created during runtime). I need
to be able to detect all these active browsers  so that I can refresh them.
Any idea how to accomplish this?

Thanks again

Bill

<lord.zol***@gmail.com> wrote in message
Show quoteHide quote
news:1164663617.823419.141130@j44g2000cwa.googlegroups.com...
>
> Bill Nguyen wrote:
>> I would like to be able to get an active browser window  to refresh the
>> URL
>> (reload) every 5 minutes. Is it possible in VB.NET?
>>
>> Thanks
>>
>> Bill
>
> Probably. Simplest way would be to attach a timer to the form and then
> when the timer tick hits 5 minutes, refresh, reset the tick counter.
> another way might be to have a seperate thread to refresh, adn then
> make the thread sleep for 5 minutes, then when it wakes up, it
> refreshes, and then goes back to sleep.
>
Author
28 Nov 2006 9:42 PM
lord.zoltar
Bill Nguyen wrote:
> I ahve multiple browsers on a single form (created during runtime). I need
> to be able to detect all these active browsers  so that I can refresh them.
> Any idea how to accomplish this?
>
> Thanks again
>
> Bill
>
Would it be possible to have multiple timers/timed threads? and have
one for each browser?
Author
28 Nov 2006 10:07 PM
Scott M.
Why not have the client's refresh themselves by adding the following HTML to
the page:

<META Http-Equiv="Refresh"  CONTENT="300"/>



<lord.zol***@gmail.com> wrote in message
Show quoteHide quote
news:1164750163.372139.316310@h54g2000cwb.googlegroups.com...
>
> Bill Nguyen wrote:
>> I ahve multiple browsers on a single form (created during runtime). I
>> need
>> to be able to detect all these active browsers  so that I can refresh
>> them.
>> Any idea how to accomplish this?
>>
>> Thanks again
>>
>> Bill
>>
> Would it be possible to have multiple timers/timed threads? and have
> one for each browser?
>
Author
29 Nov 2006 12:13 AM
Bill Nguyen
Scott;

Great idea!
However, the webpage was saved as HTML page using Mappoint COM. How can I
add the <META...> line to an existing HTML document programmatically?
Also, will it refresh if the new URL is same as the existing one?

Thanks a million

Bill

Show quoteHide quote
"Scott M." <s-mar@nospam.nospam> wrote in message
news:elRlulzEHHA.3768@TK2MSFTNGP06.phx.gbl...
> Why not have the client's refresh themselves by adding the following HTML
> to the page:
>
> <META Http-Equiv="Refresh"  CONTENT="300"/>
>
>
>
> <lord.zol***@gmail.com> wrote in message
> news:1164750163.372139.316310@h54g2000cwb.googlegroups.com...
>>
>> Bill Nguyen wrote:
>>> I ahve multiple browsers on a single form (created during runtime). I
>>> need
>>> to be able to detect all these active browsers  so that I can refresh
>>> them.
>>> Any idea how to accomplish this?
>>>
>>> Thanks again
>>>
>>> Bill
>>>
>> Would it be possible to have multiple timers/timed threads? and have
>> one for each browser?
>>
>
>
Author
29 Nov 2006 2:27 PM
Scott M.
Hmmm, I'm not familiar with MapPoint COM (I assumed your question was
ASP.NET).

I'm sure there is a way, but I'm not the person to tell you what it is.

As for the refresh, yes, it will act just as if the user had hit the refresh
button every 5 minutes (the same page will re-load).  If you wanted a
re-direct to a different page, you'd write:

<META Http-Equiv="Refresh"  CONTENT="300;URL=someNewURL" />



Show quoteHide quote
"Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message
news:e0Gxys0EHHA.3660@TK2MSFTNGP06.phx.gbl...
> Scott;
>
> Great idea!
> However, the webpage was saved as HTML page using Mappoint COM. How can I
> add the <META...> line to an existing HTML document programmatically?
> Also, will it refresh if the new URL is same as the existing one?
>
> Thanks a million
>
> Bill
>
> "Scott M." <s-mar@nospam.nospam> wrote in message
> news:elRlulzEHHA.3768@TK2MSFTNGP06.phx.gbl...
>> Why not have the client's refresh themselves by adding the following HTML
>> to the page:
>>
>> <META Http-Equiv="Refresh"  CONTENT="300"/>
>>
>>
>>
>> <lord.zol***@gmail.com> wrote in message
>> news:1164750163.372139.316310@h54g2000cwb.googlegroups.com...
>>>
>>> Bill Nguyen wrote:
>>>> I ahve multiple browsers on a single form (created during runtime). I
>>>> need
>>>> to be able to detect all these active browsers  so that I can refresh
>>>> them.
>>>> Any idea how to accomplish this?
>>>>
>>>> Thanks again
>>>>
>>>> Bill
>>>>
>>> Would it be possible to have multiple timers/timed threads? and have
>>> one for each browser?
>>>
>>
>>
>
>
Author
29 Nov 2006 5:46 PM
Bill Nguyen
Scott;
For clarity, please confirm the following:

If I want the browser to refresh the same document (being opened), the
syntax is:
<META Http-Equiv="Refresh"  CONTENT="300" />

If I want to redirect to a new URL, the syntax is:
<META Http-Equiv="Refresh"  CONTENT="300;URL=someNewURL" />

I'll check on how to add this line to an existing HTML file
programmatically.

Thanks

Bill



Show quoteHide quote
"Scott M." <s-mar@nospam.nospam> wrote in message
news:ebi5HJ8EHHA.3768@TK2MSFTNGP02.phx.gbl...
> Hmmm, I'm not familiar with MapPoint COM (I assumed your question was
> ASP.NET).
>
> I'm sure there is a way, but I'm not the person to tell you what it is.
>
> As for the refresh, yes, it will act just as if the user had hit the
> refresh button every 5 minutes (the same page will re-load).  If you
> wanted a re-direct to a different page, you'd write:
>
> <META Http-Equiv="Refresh"  CONTENT="300;URL=someNewURL" />
>
>
>
> "Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message
> news:e0Gxys0EHHA.3660@TK2MSFTNGP06.phx.gbl...
>> Scott;
>>
>> Great idea!
>> However, the webpage was saved as HTML page using Mappoint COM. How can I
>> add the <META...> line to an existing HTML document programmatically?
>> Also, will it refresh if the new URL is same as the existing one?
>>
>> Thanks a million
>>
>> Bill
>>
>> "Scott M." <s-mar@nospam.nospam> wrote in message
>> news:elRlulzEHHA.3768@TK2MSFTNGP06.phx.gbl...
>>> Why not have the client's refresh themselves by adding the following
>>> HTML to the page:
>>>
>>> <META Http-Equiv="Refresh"  CONTENT="300"/>
>>>
>>>
>>>
>>> <lord.zol***@gmail.com> wrote in message
>>> news:1164750163.372139.316310@h54g2000cwb.googlegroups.com...
>>>>
>>>> Bill Nguyen wrote:
>>>>> I ahve multiple browsers on a single form (created during runtime). I
>>>>> need
>>>>> to be able to detect all these active browsers  so that I can refresh
>>>>> them.
>>>>> Any idea how to accomplish this?
>>>>>
>>>>> Thanks again
>>>>>
>>>>> Bill
>>>>>
>>>> Would it be possible to have multiple timers/timed threads? and have
>>>> one for each browser?
>>>>
>>>
>>>
>>
>>
>
>
Author
2 Dec 2006 5:33 PM
Scott M.
Yep, you got it.


Show quoteHide quote
"Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message
news:ef%23ZS59EHHA.4092@TK2MSFTNGP03.phx.gbl...
> Scott;
> For clarity, please confirm the following:
>
> If I want the browser to refresh the same document (being opened), the
> syntax is:
> <META Http-Equiv="Refresh"  CONTENT="300" />
>
> If I want to redirect to a new URL, the syntax is:
> <META Http-Equiv="Refresh"  CONTENT="300;URL=someNewURL" />
>
> I'll check on how to add this line to an existing HTML file
> programmatically.
>
> Thanks
>
> Bill
>
>
>
> "Scott M." <s-mar@nospam.nospam> wrote in message
> news:ebi5HJ8EHHA.3768@TK2MSFTNGP02.phx.gbl...
>> Hmmm, I'm not familiar with MapPoint COM (I assumed your question was
>> ASP.NET).
>>
>> I'm sure there is a way, but I'm not the person to tell you what it is.
>>
>> As for the refresh, yes, it will act just as if the user had hit the
>> refresh button every 5 minutes (the same page will re-load).  If you
>> wanted a re-direct to a different page, you'd write:
>>
>> <META Http-Equiv="Refresh"  CONTENT="300;URL=someNewURL" />
>>
>>
>>
>> "Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message
>> news:e0Gxys0EHHA.3660@TK2MSFTNGP06.phx.gbl...
>>> Scott;
>>>
>>> Great idea!
>>> However, the webpage was saved as HTML page using Mappoint COM. How can
>>> I add the <META...> line to an existing HTML document programmatically?
>>> Also, will it refresh if the new URL is same as the existing one?
>>>
>>> Thanks a million
>>>
>>> Bill
>>>
>>> "Scott M." <s-mar@nospam.nospam> wrote in message
>>> news:elRlulzEHHA.3768@TK2MSFTNGP06.phx.gbl...
>>>> Why not have the client's refresh themselves by adding the following
>>>> HTML to the page:
>>>>
>>>> <META Http-Equiv="Refresh"  CONTENT="300"/>
>>>>
>>>>
>>>>
>>>> <lord.zol***@gmail.com> wrote in message
>>>> news:1164750163.372139.316310@h54g2000cwb.googlegroups.com...
>>>>>
>>>>> Bill Nguyen wrote:
>>>>>> I ahve multiple browsers on a single form (created during runtime). I
>>>>>> need
>>>>>> to be able to detect all these active browsers  so that I can refresh
>>>>>> them.
>>>>>> Any idea how to accomplish this?
>>>>>>
>>>>>> Thanks again
>>>>>>
>>>>>> Bill
>>>>>>
>>>>> Would it be possible to have multiple timers/timed threads? and have
>>>>> one for each browser?
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Author
4 Dec 2006 5:16 PM
Bill Nguyen
This works well so far.

Thanks Scott.

Bill
Show quoteHide quote
"Scott M." <s-mar@nospam.nospam> wrote in message
news:uDpHIfjFHHA.3668@TK2MSFTNGP02.phx.gbl...
> Yep, you got it.
>
>
> "Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message
> news:ef%23ZS59EHHA.4092@TK2MSFTNGP03.phx.gbl...
>> Scott;
>> For clarity, please confirm the following:
>>
>> If I want the browser to refresh the same document (being opened), the
>> syntax is:
>> <META Http-Equiv="Refresh"  CONTENT="300" />
>>
>> If I want to redirect to a new URL, the syntax is:
>> <META Http-Equiv="Refresh"  CONTENT="300;URL=someNewURL" />
>>
>> I'll check on how to add this line to an existing HTML file
>> programmatically.
>>
>> Thanks
>>
>> Bill
>>
>>
>>
>> "Scott M." <s-mar@nospam.nospam> wrote in message
>> news:ebi5HJ8EHHA.3768@TK2MSFTNGP02.phx.gbl...
>>> Hmmm, I'm not familiar with MapPoint COM (I assumed your question was
>>> ASP.NET).
>>>
>>> I'm sure there is a way, but I'm not the person to tell you what it is.
>>>
>>> As for the refresh, yes, it will act just as if the user had hit the
>>> refresh button every 5 minutes (the same page will re-load).  If you
>>> wanted a re-direct to a different page, you'd write:
>>>
>>> <META Http-Equiv="Refresh"  CONTENT="300;URL=someNewURL" />
>>>
>>>
>>>
>>> "Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message
>>> news:e0Gxys0EHHA.3660@TK2MSFTNGP06.phx.gbl...
>>>> Scott;
>>>>
>>>> Great idea!
>>>> However, the webpage was saved as HTML page using Mappoint COM. How can
>>>> I add the <META...> line to an existing HTML document programmatically?
>>>> Also, will it refresh if the new URL is same as the existing one?
>>>>
>>>> Thanks a million
>>>>
>>>> Bill
>>>>
>>>> "Scott M." <s-mar@nospam.nospam> wrote in message
>>>> news:elRlulzEHHA.3768@TK2MSFTNGP06.phx.gbl...
>>>>> Why not have the client's refresh themselves by adding the following
>>>>> HTML to the page:
>>>>>
>>>>> <META Http-Equiv="Refresh"  CONTENT="300"/>
>>>>>
>>>>>
>>>>>
>>>>> <lord.zol***@gmail.com> wrote in message
>>>>> news:1164750163.372139.316310@h54g2000cwb.googlegroups.com...
>>>>>>
>>>>>> Bill Nguyen wrote:
>>>>>>> I ahve multiple browsers on a single form (created during runtime).
>>>>>>> I need
>>>>>>> to be able to detect all these active browsers  so that I can
>>>>>>> refresh them.
>>>>>>> Any idea how to accomplish this?
>>>>>>>
>>>>>>> Thanks again
>>>>>>>
>>>>>>> Bill
>>>>>>>
>>>>>> Would it be possible to have multiple timers/timed threads? and have
>>>>>> one for each browser?
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Author
5 Dec 2006 1:19 AM
Scott M.
HTH :)


Show quoteHide quote
"Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message
news:OT7lrf8FHHA.3616@TK2MSFTNGP06.phx.gbl...
> This works well so far.
>
> Thanks Scott.
>
> Bill
> "Scott M." <s-mar@nospam.nospam> wrote in message
> news:uDpHIfjFHHA.3668@TK2MSFTNGP02.phx.gbl...
>> Yep, you got it.
>>
>>
>> "Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message
>> news:ef%23ZS59EHHA.4092@TK2MSFTNGP03.phx.gbl...
>>> Scott;
>>> For clarity, please confirm the following:
>>>
>>> If I want the browser to refresh the same document (being opened), the
>>> syntax is:
>>> <META Http-Equiv="Refresh"  CONTENT="300" />
>>>
>>> If I want to redirect to a new URL, the syntax is:
>>> <META Http-Equiv="Refresh"  CONTENT="300;URL=someNewURL" />
>>>
>>> I'll check on how to add this line to an existing HTML file
>>> programmatically.
>>>
>>> Thanks
>>>
>>> Bill
>>>
>>>
>>>
>>> "Scott M." <s-mar@nospam.nospam> wrote in message
>>> news:ebi5HJ8EHHA.3768@TK2MSFTNGP02.phx.gbl...
>>>> Hmmm, I'm not familiar with MapPoint COM (I assumed your question was
>>>> ASP.NET).
>>>>
>>>> I'm sure there is a way, but I'm not the person to tell you what it is.
>>>>
>>>> As for the refresh, yes, it will act just as if the user had hit the
>>>> refresh button every 5 minutes (the same page will re-load).  If you
>>>> wanted a re-direct to a different page, you'd write:
>>>>
>>>> <META Http-Equiv="Refresh"  CONTENT="300;URL=someNewURL" />
>>>>
>>>>
>>>>
>>>> "Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message
>>>> news:e0Gxys0EHHA.3660@TK2MSFTNGP06.phx.gbl...
>>>>> Scott;
>>>>>
>>>>> Great idea!
>>>>> However, the webpage was saved as HTML page using Mappoint COM. How
>>>>> can I add the <META...> line to an existing HTML document
>>>>> programmatically?
>>>>> Also, will it refresh if the new URL is same as the existing one?
>>>>>
>>>>> Thanks a million
>>>>>
>>>>> Bill
>>>>>
>>>>> "Scott M." <s-mar@nospam.nospam> wrote in message
>>>>> news:elRlulzEHHA.3768@TK2MSFTNGP06.phx.gbl...
>>>>>> Why not have the client's refresh themselves by adding the following
>>>>>> HTML to the page:
>>>>>>
>>>>>> <META Http-Equiv="Refresh"  CONTENT="300"/>
>>>>>>
>>>>>>
>>>>>>
>>>>>> <lord.zol***@gmail.com> wrote in message
>>>>>> news:1164750163.372139.316310@h54g2000cwb.googlegroups.com...
>>>>>>>
>>>>>>> Bill Nguyen wrote:
>>>>>>>> I ahve multiple browsers on a single form (created during runtime).
>>>>>>>> I need
>>>>>>>> to be able to detect all these active browsers  so that I can
>>>>>>>> refresh them.
>>>>>>>> Any idea how to accomplish this?
>>>>>>>>
>>>>>>>> Thanks again
>>>>>>>>
>>>>>>>> Bill
>>>>>>>>
>>>>>>> Would it be possible to have multiple timers/timed threads? and have
>>>>>>> one for each browser?
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>