473,756 Members | 4,863 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

refresh some pages every 2 seconds

Hi guys,
I want to refresh some pages every 2 seconds.
however, these html pages are not in my site, they could be any pages from
yahoo.com or msn.com.
I can create a page, which redirect to public internet html page, but how
can I do this in a loop?
do I need to write a console application to make it work?
thanks
k


Nov 19 '05 #1
3 2113
Kevin,

Two ways I can think of:

1) Use a frame / iframe to call the other page. Then use client side code to
refresh the frame.
2) Get a copy of the page via an html request object, place the entire page
into a literal control within your own page. (This method may cause
unexpected results depending on the code contained in the other pages. For
example if they include a form tag or two it could mess things up a great
deal. You may need to parse the string returned to eliminate things like
that.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Kevin" <pe******@hotma il.com> wrote in message
news:OH******** ********@tk2msf tngp13.phx.gbl. ..
Hi guys,
I want to refresh some pages every 2 seconds.
however, these html pages are not in my site, they could be any pages from
yahoo.com or msn.com.
I can create a page, which redirect to public internet html page, but how
can I do this in a loop?
do I need to write a console application to make it work?
thanks
k

Nov 19 '05 #2
I don't think frame/iframe is possible.

for example:
having navigation.html and main.html in the frame.
I don't think a frame can contain aspx page. therefore just plain html is
not possible.
<META HTTP-EQUIV="Refresh"
CONTENT="5;URL= http://www./your_host.com/your_site/your_page.html" >

so this refresh can only refresh page on nav.html. The point is I want
refresh happen on main.html every 2 seconds.
I understand client code needs to be on nav.html. but still, it's not
possible
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate. com> wrote in
message news:OV******** *****@TK2MSFTNG P10.phx.gbl...
Kevin,

Two ways I can think of:

1) Use a frame / iframe to call the other page. Then use client side code
to refresh the frame.
2) Get a copy of the page via an html request object, place the entire
page into a literal control within your own page. (This method may cause
unexpected results depending on the code contained in the other pages. For
example if they include a form tag or two it could mess things up a great
deal. You may need to parse the string returned to eliminate things like
that.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Kevin" <pe******@hotma il.com> wrote in message
news:OH******** ********@tk2msf tngp13.phx.gbl. ..
Hi guys,
I want to refresh some pages every 2 seconds.
however, these html pages are not in my site, they could be any pages
from yahoo.com or msn.com.
I can create a page, which redirect to public internet html page, but how
can I do this in a loop?
do I need to write a console application to make it work?
thanks
k


Nov 19 '05 #3
Kevin,

Here's the way it would work:

You split your page into two frames any size. Let's say the top frame is
very small. Then load a page into the top frame, let's call it refresh.html.

The refresh.html page will contain a javascript with a timer that refreshes
the bottom frame, something like

window.parent.m ainFrame.locati on.reload();

Now, load your .aspx page into the bottom frame.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Kevin" <pe******@hotma il.com> wrote in message
news:eu******** *****@TK2MSFTNG P15.phx.gbl...
I don't think frame/iframe is possible.

for example:
having navigation.html and main.html in the frame.
I don't think a frame can contain aspx page. therefore just plain html is
not possible.
<META HTTP-EQUIV="Refresh"
CONTENT="5;URL= http://www./your_host.com/your_site/your_page.html" >

so this refresh can only refresh page on nav.html. The point is I want
refresh happen on main.html every 2 seconds.
I understand client code needs to be on nav.html. but still, it's not
possible
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate. com> wrote in
message news:OV******** *****@TK2MSFTNG P10.phx.gbl...
Kevin,

Two ways I can think of:

1) Use a frame / iframe to call the other page. Then use client side code
to refresh the frame.
2) Get a copy of the page via an html request object, place the entire
page into a literal control within your own page. (This method may cause
unexpected results depending on the code contained in the other pages.
For example if they include a form tag or two it could mess things up a
great deal. You may need to parse the string returned to eliminate things
like that.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Kevin" <pe******@hotma il.com> wrote in message
news:OH******** ********@tk2msf tngp13.phx.gbl. ..
Hi guys,
I want to refresh some pages every 2 seconds.
however, these html pages are not in my site, they could be any pages
from yahoo.com or msn.com.
I can create a page, which redirect to public internet html page, but
how can I do this in a loop?
do I need to write a console application to make it work?
thanks
k



Nov 19 '05 #4

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

Similar topics

8
5170
by: Bilal | last post by:
Hi I have an application with numerous pages. A couple of these pages include a functionality that allows it to be refreshed every 15 secs. My problem is that this "refreshing" works too well: THe page that is refreshed always comes into focus even when I'm using another page. I was wondering whether there is a way for the page with the refreshed functionality to remain in the background. I thank you all in advance for any suggestions. My...
2
2024
by: Lam | last post by:
Hi I try to write a C# windows program which will read some data from database and display on the screen. It has to refresh the output every 10 seconds because the database keep growing every seconds. so how can I do the refresh? Thanks
0
1682
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 another window, the web page quietly refreshes in the background. Hosted in Outlook, the refresh causes Outlook to come to the front on every refresh. Or in XP, causes the toolbar icon to flash.
8
9400
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 window to refresh, based on its caption. For example, there is a web site that I want to keep active where I normally have to refresh it manually before it times out (every 15 min or so). I might be doing something else at the time so I don't...
12
6041
by: martin1 | last post by:
All, is there window form refresh property? I try to set up window form refresh per minute. Thanks
10
32883
by: phforum | last post by:
Hi, I wrote a PHP page for user input the information to search the database. And the database data will update every second. I want to set the auto refresh to get the data from database every minute. But the page always display the dialog box ask me to resend the information. How to disable this warning message. I using POST and REQUEST to get the data from user input page. Thanks all
3
4460
by: marik | last post by:
Hi, people. I have a question: Can somebody link me to a simple javascript piece of code, that allows me to get input from a combo box and set the refresh interval of the page to be that number? Thank you, marik
10
3158
by: Piotr Nowak | last post by:
Hi, Say i have a server process which listens for some changes in database. When a change occurs i want to refresh my page in browser by notyfinig it. I do not want to refresh my page i.e. every 5 seconds, i just want to refresh it ONLY on server change just like desktop applications do. The problem is that refreshing evry n seconds has to much impact on my web server. The refresh action should be taken only when something
16
6880
by: Hemavathi | last post by:
can someone help me with code to refresh my PHP pages every ten seconds?
0
9303
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9117
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9894
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9676
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9541
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8542
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4955
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3651
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3141
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.