Connecting Tech Pros Worldwide Help | Site Map

set refresh rate for an active browser window

Bill Nguyen
Guest
 
Posts: n/a
#1: Nov 27 '06
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


lord.zoltar@gmail.com
Guest
 
Posts: n/a
#2: Nov 27 '06

re: set refresh rate for an active browser window



Bill Nguyen wrote:
Quote:
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.

Bill Nguyen
Guest
 
Posts: n/a
#3: Nov 27 '06

re: set refresh rate for an active browser window


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.zoltar@gmail.comwrote in message
news:1164663617.823419.141130@j44g2000cwa.googlegr oups.com...
Quote:
>
Bill Nguyen wrote:
Quote:
>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.
>

lord.zoltar@gmail.com
Guest
 
Posts: n/a
#4: Nov 28 '06

re: set refresh rate for an active browser window



Bill Nguyen wrote:
Quote:
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?

Scott M.
Guest
 
Posts: n/a
#5: Nov 28 '06

re: set refresh rate for an active browser window


Why not have the client's refresh themselves by adding the following HTML to
the page:

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



<lord.zoltar@gmail.comwrote in message
news:1164750163.372139.316310@h54g2000cwb.googlegr oups.com...
Quote:
>
Bill Nguyen wrote:
Quote:
>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?
>

Bill Nguyen
Guest
 
Posts: n/a
#6: Nov 28 '06

re: set refresh rate for an active browser window


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.nospamwrote in message
news:elRlulzEHHA.3768@TK2MSFTNGP06.phx.gbl...
Quote:
Why not have the client's refresh themselves by adding the following HTML
to the page:
>
<META Http-Equiv="Refresh" CONTENT="300"/>
>
>
>
<lord.zoltar@gmail.comwrote in message
news:1164750163.372139.316310@h54g2000cwb.googlegr oups.com...
Quote:
>>
>Bill Nguyen wrote:
Quote:
>>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?
>>
>
>

Scott M.
Guest
 
Posts: n/a
#7: Nov 29 '06

re: set refresh rate for an active browser window


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.comwrote in message
news:e0Gxys0EHHA.3660@TK2MSFTNGP06.phx.gbl...
Quote:
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.nospamwrote in message
news:elRlulzEHHA.3768@TK2MSFTNGP06.phx.gbl...
Quote:
>Why not have the client's refresh themselves by adding the following HTML
>to the page:
>>
><META Http-Equiv="Refresh" CONTENT="300"/>
>>
>>
>>
><lord.zoltar@gmail.comwrote in message
>news:1164750163.372139.316310@h54g2000cwb.googleg roups.com...
Quote:
>>>
>>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?
>>>
>>
>>
>
>

Bill Nguyen
Guest
 
Posts: n/a
#8: Nov 29 '06

re: set refresh rate for an active browser window


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.nospamwrote in message
news:ebi5HJ8EHHA.3768@TK2MSFTNGP02.phx.gbl...
Quote:
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.comwrote in message
news:e0Gxys0EHHA.3660@TK2MSFTNGP06.phx.gbl...
Quote:
>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.nospamwrote in message
>news:elRlulzEHHA.3768@TK2MSFTNGP06.phx.gbl...
Quote:
>>Why not have the client's refresh themselves by adding the following
>>HTML to the page:
>>>
>><META Http-Equiv="Refresh" CONTENT="300"/>
>>>
>>>
>>>
>><lord.zoltar@gmail.comwrote in message
>>news:1164750163.372139.316310@h54g2000cwb.google groups.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?
>>>>
>>>
>>>
>>
>>
>
>

Scott M.
Guest
 
Posts: n/a
#9: Dec 2 '06

re: set refresh rate for an active browser window


Yep, you got it.


"Bill Nguyen" <billn_nospam_please@jaco.comwrote in message
news:ef%23ZS59EHHA.4092@TK2MSFTNGP03.phx.gbl...
Quote:
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.nospamwrote in message
news:ebi5HJ8EHHA.3768@TK2MSFTNGP02.phx.gbl...
Quote:
>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.comwrote in message
>news:e0Gxys0EHHA.3660@TK2MSFTNGP06.phx.gbl...
Quote:
>>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.nospamwrote 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.zoltar@gmail.comwrote in message
>>>news:1164750163.372139.316310@h54g2000cwb.googl egroups.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?
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>

Bill Nguyen
Guest
 
Posts: n/a
#10: Dec 4 '06

re: set refresh rate for an active browser window


This works well so far.

Thanks Scott.

Bill
"Scott M." <s-mar@nospam.nospamwrote in message
news:uDpHIfjFHHA.3668@TK2MSFTNGP02.phx.gbl...
Quote:
Yep, you got it.
>
>
"Bill Nguyen" <billn_nospam_please@jaco.comwrote in message
news:ef%23ZS59EHHA.4092@TK2MSFTNGP03.phx.gbl...
Quote:
>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.nospamwrote in message
>news:ebi5HJ8EHHA.3768@TK2MSFTNGP02.phx.gbl...
Quote:
>>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.comwrote 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.nospamwrote 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.zoltar@gmail.comwrote in message
>>>>news:1164750163.372139.316310@h54g2000cwb.goog legroups.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?
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>

Scott M.
Guest
 
Posts: n/a
#11: Dec 5 '06

re: set refresh rate for an active browser window


HTH :)


"Bill Nguyen" <billn_nospam_please@jaco.comwrote in message
news:OT7lrf8FHHA.3616@TK2MSFTNGP06.phx.gbl...
Quote:
This works well so far.
>
Thanks Scott.
>
Bill
"Scott M." <s-mar@nospam.nospamwrote in message
news:uDpHIfjFHHA.3668@TK2MSFTNGP02.phx.gbl...
Quote:
>Yep, you got it.
>>
>>
>"Bill Nguyen" <billn_nospam_please@jaco.comwrote in message
>news:ef%23ZS59EHHA.4092@TK2MSFTNGP03.phx.gbl...
Quote:
>>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.nospamwrote 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.comwrote 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.nospamwrote 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.zoltar@gmail.comwrote in message
>>>>>news:1164750163.372139.316310@h54g2000cwb.goo glegroups.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?
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>

Closed Thread