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.
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@gm ail.comwrote in message
news:1164663617 .823419.141130@ j44g2000cwa.goo glegroups.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.
>
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?
Why not have the client's refresh themselves by adding the following HTML to
the page:
<META Http-Equiv="Refresh" CONTENT="300"/>
<lord.zoltar@gm ail.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?
>
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 programmaticall y?
Also, will it refresh if the new URL is same as the existing one?
Thanks a million
Bill
"Scott M." <s-mar@nospam.nosp amwrote in message
news:elRlulzEHH A.3768@TK2MSFTN GP06.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@gm ail.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?
>>
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:
"Bill Nguyen" <billn_nospam_p lease@jaco.comw rote in message
news:e0Gxys0EHH A.3660@TK2MSFTN GP06.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 programmaticall y?
Also, will it refresh if the new URL is same as the existing one?
>
Thanks a million
>
Bill
>
"Scott M." <s-mar@nospam.nosp amwrote in message
news:elRlulzEHH A.3768@TK2MSFTN GP06.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@g mail.comwrote in message
>news:116475016 3.372139.316310 @h54g2000cwb.go oglegroups.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?
>>>
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;UR L=someNewURL" />
I'll check on how to add this line to an existing HTML file
programmaticall y.
Thanks
Bill
"Scott M." <s-mar@nospam.nosp amwrote in message
news:ebi5HJ8EHH A.3768@TK2MSFTN GP02.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;UR L=someNewURL" />
>
>
>
"Bill Nguyen" <billn_nospam_p lease@jaco.comw rote in message
news:e0Gxys0EHH A.3660@TK2MSFTN GP06.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 programmaticall y?
>Also, will it refresh if the new URL is same as the existing one?
>>
>Thanks a million
>>
>Bill
>>
>"Scott M." <s-mar@nospam.nosp amwrote in message
>news:elRlulzEH HA.3768@TK2MSFT NGP06.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:11647501 63.372139.31631 0@h54g2000cwb.g ooglegroups.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;
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;UR L=someNewURL" />
>
I'll check on how to add this line to an existing HTML file
programmaticall y.
>
Thanks
>
Bill
>
>
>
"Scott M." <s-mar@nospam.nosp amwrote in message
news:ebi5HJ8EHH A.3768@TK2MSFTN GP02.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;UR L=someNewURL" />
>>
>>
>>
>"Bill Nguyen" <billn_nospam_p lease@jaco.comw rote in message
>news:e0Gxys0EH HA.3660@TK2MSFT NGP06.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 programmaticall y?
>>Also, will it refresh if the new URL is same as the existing one?
>>>
>>Thanks a million
>>>
>>Bill
>>>
>>"Scott M." <s-mar@nospam.nosp amwrote in message
>>news:elRlulzE HHA.3768@TK2MSF TNGP06.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:1164750 163.372139.3163 10@h54g2000cwb. googlegroups.co m...
>>>>>
>>>>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
"Scott M." <s-mar@nospam.nosp amwrote in message
news:uDpHIfjFHH A.3668@TK2MSFTN GP02.phx.gbl...
Yep, you got it.
>
>
"Bill Nguyen" <billn_nospam_p lease@jaco.comw rote in message
news:ef%23ZS59E HHA.4092@TK2MSF TNGP03.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;UR L=someNewURL" />
>>
>I'll check on how to add this line to an existing HTML file
>programmatical ly.
>>
>Thanks
>>
>Bill
>>
>>
>>
>"Scott M." <s-mar@nospam.nosp amwrote in message
>news:ebi5HJ8EH HA.3768@TK2MSFT NGP02.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;UR L=someNewURL" />
>>>
>>>
>>>
>>"Bill Nguyen" <billn_nospam_p lease@jaco.comw rote in message
>>news:e0Gxys0E HHA.3660@TK2MSF TNGP06.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 programmaticall y?
>>>Also, will it refresh if the new URL is same as the existing one?
>>>>
>>>Thanks a million
>>>>
>>>Bill
>>>>
>>>"Scott M." <s-mar@nospam.nosp amwrote in message
>>>news:elRlulz EHHA.3768@TK2MS FTNGP06.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.zolta r@gmail.comwrot e in message
>>>>news:116475 0163.372139.316 310@h54g2000cwb .googlegroups.c om...
>>>>>>
>>>>>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" <billn_nospam_p lease@jaco.comw rote in message
news:OT7lrf8FHH A.3616@TK2MSFTN GP06.phx.gbl...
This works well so far.
>
Thanks Scott.
>
Bill
"Scott M." <s-mar@nospam.nosp amwrote in message
news:uDpHIfjFHH A.3668@TK2MSFTN GP02.phx.gbl...
>Yep, you got it.
>>
>>
>"Bill Nguyen" <billn_nospam_p lease@jaco.comw rote in message
>news:ef%23ZS59 EHHA.4092@TK2MS FTNGP03.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;UR L=someNewURL" />
>>>
>>I'll check on how to add this line to an existing HTML file
>>programmatica lly.
>>>
>>Thanks
>>>
>>Bill
>>>
>>>
>>>
>>"Scott M." <s-mar@nospam.nosp amwrote in message
>>news:ebi5HJ8E HHA.3768@TK2MSF TNGP02.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;UR L=someNewURL" />
>>>>
>>>>
>>>>
>>>"Bill Nguyen" <billn_nospam_p lease@jaco.comw rote in message
>>>news:e0Gxys0 EHHA.3660@TK2MS FTNGP06.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
>>>>programmati cally?
>>>>Also, will it refresh if the new URL is same as the existing one?
>>>>>
>>>>Thanks a million
>>>>>
>>>>Bill
>>>>>
>>>>"Scott M." <s-mar@nospam.nosp amwrote in message
>>>>news:elRlul zEHHA.3768@TK2M SFTNGP06.phx.gb l...
>>>>>Why not have the client's refresh themselves by adding the following
>>>>>HTML to the page:
>>>>>>
>>>>><META Http-Equiv="Refresh" CONTENT="300"/>
>>>>>>
>>>>>>
>>>>>>
>>>>><lord.zolt ar@gmail.comwro te in message
>>>>>news:11647 50163.372139.31 6310@h54g2000cw b.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
>>>>>>>refres h 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?
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
Comment