473,387 Members | 1,485 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

forcing a page reload?


Sorry if this is obvious to everyone (except me). I've done a Google search
and I'm not seeing anything encouraging that addresses my issue.

My very large multispecialty medical practice needs to alert various nurses
and med techs - squirreled away in back offices - when an arrived parient
requires their services. It's a simple matter for me to implement a little
MSAccess database with +/- buttons to increment the arrivals queue.
MedTechs can look at this page and and see if they need to go out to the
waiting room to get a patient that requires their services.

I believe I can include something like:

<META HTTP-EQUIV="refresh" CONTENT="90">

in my HTML and cause the "client" to refresh every 90 seconds.

But, what I really want to do is force the page to reload at the nurse
stations only each time a change is made. I want to iterate through the
active sessions and execute something like:

Response.Write("<script language='javascript'>location.reload();</script>")

and cause the screen at the nurses' stations to refresh each time the girls
at the fromt desk queue up a patient for blood work or whatever.

Can anyone help us out with this?
Nov 20 '05 #1
3 1202
Hi Wazoo,

If you do not get any better you can try this sample I once made.
This is a webclock and I think it take to much from your connection, however
when nothing helps, you can bring it down and let it fire more slow.

If you do not understand some things, feel free to ask.

I hope it helps anyhow?

Cor

\\\Form 1 Needs a imagebox on the page
' The application name has to be WebClock
Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Me.Image1.Height = New Unit(32)
Me.Image1.Width = New Unit(200)
Image1.Visible = True
Dim scriptString As String = "<script language=JavaScript>" & _
"setclock(); function setclock(){document.images.Image1.src = " & _

"'http://localhost/WebClock/WebForm2.aspx';setTimeout('setclock()',1000)}</s
cript>"
Page.RegisterStartupScript("setclock", scriptString)
End Sub
///
\\\Form2 needs nothing
Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Response.Cache.SetExpires(DateTime.Now.AddTicks(50 0))
Dim myForeBrush As Brush = Brushes.Black
Dim myFont As New Font("Times New Roman", 8, FontStyle.Regular)
Dim textHeight As Single
Dim bm As New Bitmap(120, 20)
Dim g As Graphics = Graphics.FromImage(bm)
g.Clear(Color.White)
Dim textSize As SizeF = g.MeasureString("now.tostring", myFont)
g.DrawString(Now.ToString, myFont, myForeBrush, _
New RectangleF(0, 0, 120, 20))
Dim ms As New IO.MemoryStream
Dim arrImage() As Byte
bm.Save(ms, Imaging.ImageFormat.Bmp)
arrImage = ms.GetBuffer
Response.BinaryWrite(arrImage)
g.dispose
End Sub
///

Nov 20 '05 #2
use a hidden frame to do the polling, and reload the parent only when there
is a change. this is a pretty lightweight, as the hiddenframe content is
very small.
-- bruce (sqlwork.com)

"WAZOO" <wa***@NOSPAM.nycap.rr.com> wrote in message
news:nW*******************@twister.nyroc.rr.com...

Sorry if this is obvious to everyone (except me). I've done a Google search and I'm not seeing anything encouraging that addresses my issue.

My very large multispecialty medical practice needs to alert various nurses and med techs - squirreled away in back offices - when an arrived parient
requires their services. It's a simple matter for me to implement a little MSAccess database with +/- buttons to increment the arrivals queue.
MedTechs can look at this page and and see if they need to go out to the
waiting room to get a patient that requires their services.

I believe I can include something like:

<META HTTP-EQUIV="refresh" CONTENT="90">

in my HTML and cause the "client" to refresh every 90 seconds.

But, what I really want to do is force the page to reload at the nurse
stations only each time a change is made. I want to iterate through the
active sessions and execute something like:

Response.Write("<script language='javascript'>location.reload();</script>")
and cause the screen at the nurses' stations to refresh each time the girls at the fromt desk queue up a patient for blood work or whatever.

Can anyone help us out with this?

Nov 20 '05 #3
> "WAZOO" <wa***@NOSPAM.nycap.rr.com> wrote :
But, what I really want to do is force the page to reload at the nurse
stations only each time a change is made. I want to iterate through the
active sessions and execute something like:
"bruce barker" <no***********@safeco.com> wrote: use a hidden frame to do the polling, and reload the parent only when there is a change. this is a pretty lightweight, as the hiddenframe content is
very small.


Or you might consider using a webservice, download via xmlhttp through
javascript, and transform to html.
I've succesufully used this method using asp3.0...
rgds
Øystein Fallo
Nov 20 '05 #4

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

Similar topics

0
by: Earl Teigrob | last post by:
I have a page that reads values from an XML file to display to the user. The page also has a control panel that allows administrators to update the XML file with new values. When an administrator...
4
by: WAZOO | last post by:
Sorry if this is obvious to everyone (except me). I've done a Google search and I'm not seeing anything encouraging that addresses my issue. My very large multispecialty medical practice needs...
3
by: newcomsas | last post by:
Hello. I'm trying to solve a problem related to JS and CSS. I produced an HTML page with several links and buttuns. I then created a CSS file in order to display a yellow background when a link...
1
by: Rob Meade | last post by:
Hi all, I've got a little shopping cart app which when you use all of the links on the pages, and buttons etc, things are good, the "shopping basket" on the left navigation updates and shows a...
3
by: kaston3 | last post by:
I use screen.width to check escreen resolution and then document.write to write different width tables accordingly. It all works OK with Mozilla Firefox, however it seems that in IExplorer it only...
10
by: hughestroop | last post by:
I have updated my CSS and if you view the main page with the old css cached, it breaks the page. Is there any way to force viewers that have the old css cached to get the new css? Our viewers...
2
by: Sonnich | last post by:
Hi all! Probably simple - once one knows. I have a window, which open using <input type="button" class="box" name="main" value=" Add... " onClick=window.open('add.asp')> The window has...
1
devonknows
by: devonknows | last post by:
hi ive got this at the end of my settings page, and i want it show the fmrSearch form change the check1.value, but everytime i do it, it takes two or three attempts for it to change (having to go...
5
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi, I used the following code to refresh the parent page, and it works very well (Thanks to Peter Bromberg "). Response.Write("<script language='javascript' type='text/javascript'{...
3
by: Willy | last post by:
I have a website that uses querystrings on a certain page to show multiple contents. I have created mapped pages to hide the gory details of these querystrings. So instead of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.