472,811 Members | 4,199 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,811 software developers and data experts.

set refresh rate for an active browser window

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
Nov 27 '06 #1
10 2671

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.

Nov 27 '06 #2
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

<lo*********@gmail.comwrote in message
news:11**********************@j44g2000cwa.googlegr oups.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.

Nov 27 '06 #3

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?

Nov 28 '06 #4
Why not have the client's refresh themselves by adding the following HTML to
the page:

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

<lo*********@gmail.comwrote in message
news:11**********************@h54g2000cwb.googlegr oups.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?

Nov 28 '06 #5
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-***@nospam.nospamwrote in message
news:el**************@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"/>

<lo*********@gmail.comwrote in message
news:11**********************@h54g2000cwb.googlegr oups.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?


Nov 28 '06 #6
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" <bi*****************@jaco.comwrote in message
news:e0**************@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-***@nospam.nospamwrote in message
news:el**************@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"/>

<lo*********@gmail.comwrote in message
news:11**********************@h54g2000cwb.googleg roups.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?



Nov 29 '06 #7
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-***@nospam.nospamwrote in message
news:eb**************@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" <bi*****************@jaco.comwrote in message
news:e0**************@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-***@nospam.nospamwrote in message
news:el**************@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"/>

<lo*********@gmail.comwrote in message
news:11**********************@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?



Nov 29 '06 #8
Yep, you got it.
"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:ef****************@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-***@nospam.nospamwrote in message
news:eb**************@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" <bi*****************@jaco.comwrote in message
news:e0**************@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-***@nospam.nospamwrote in message
news:el**************@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"/>

<lo*********@gmail.comwrote in message
news:11**********************@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?
>




Dec 2 '06 #9
This works well so far.

Thanks Scott.

Bill
"Scott M." <s-***@nospam.nospamwrote in message
news:uD**************@TK2MSFTNGP02.phx.gbl...
Yep, you got it.
"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:ef****************@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-***@nospam.nospamwrote in message
news:eb**************@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" <bi*****************@jaco.comwrote in message
news:e0**************@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-***@nospam.nospamwrote in message
news:el**************@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"/>
>
>
>
<lo*********@gmail.comwrote in message
news:11**********************@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?
>>
>
>




Dec 4 '06 #10
HTH :)
"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:OT**************@TK2MSFTNGP06.phx.gbl...
This works well so far.

Thanks Scott.

Bill
"Scott M." <s-***@nospam.nospamwrote in message
news:uD**************@TK2MSFTNGP02.phx.gbl...
>Yep, you got it.
"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:ef****************@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-***@nospam.nospamwrote in message
news:eb**************@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" <bi*****************@jaco.comwrote in message
news:e0**************@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-***@nospam.nospamwrote in message
news:el**************@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"/>
>>
>>
>>
><lo*********@gmail.comwrote in message
>news:11**********************@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?
>>>
>>
>>
>
>




Dec 5 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Andrus Moor | last post by:
I want to add a refresh button to my web page which works like browser refresh button: it must re-load current page from server. How to implement this in javascript ?
19
by: Jay | last post by:
I'm trying to refresh browser when some new information is available in DB. is there any way to force to refresh browser? Thanks. -Kev
2
by: Raj | last post by:
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence of events are 1) I click a button in the parent...
0
by: Brad White | last post by:
Overview: I have a custom web app that has an 'Inbox' that refreshes every 30 seconds. One user uses Outlook to host the web page. Using IE, the refresh works fine. If the user is working in...
17
by: Jim Little | last post by:
Hello, I'm driving myself crazy either because I'm missing something about ASP.NET, or what I'm trying to do simply can't be done. First, I am not using session variables to track state. My...
2
by: Bill | last post by:
Hi all, I have little experience of B/S application. I face a project that marketing want a pure B/S structure.But the refresh rate is 60 times/sec at the most,For example,a realtime curve. Do you...
4
by: Sarita Sai Bhushan | last post by:
Hi, While I was developing a active desktop web page in ASP.Net using server controls I faced a problem with the autopostback property of server control. The sever control I used in my aspx page...
8
by: Jason S | last post by:
Hi, is there any way of getting my VB (6.0) program to automatically 'Refresh' an IE window that might be active (window status not applicable). It needs to be able to determine which active IE...
15
by: ABC | last post by:
Hi, I have a problem with Double submission in html forms. I am using PHP as the server side scripting language, i have found a means to capture the second form submission while the first form...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.