REFRESH BROADCAST MESSAGE

J

Jeff Clark

HI !!
I'M .... SHOUTING !!!!

Sorry about that.

I have this application variable that i response.write to my web -page. It
is a broadcast message to all my worshiper...er ah users.

So when i decide to change the message, i want all users to see it within a
minute.

How to accomplish?

THANKS!
 
N

Nicolas Noakes

Jeff,

Firstly, note that ASP has NO (shout) direct control over the client.
What I mean is the ASP server cannot instruct the client to change it's
message, the client has to initiate all requests.

Therefore, you have to look at a client side solution. Here are some
options, I 'm sure other would have more (including perhaps even client
side activex components):

1) Put a META refresh tag in every page so that all pages refresh
themselves every 1 minute. This could be rather eritating to all your
humble subjects.

2) Design your site around a frame structure, with your message
completly seperate in its own frame displaying the message page (again
with a META refresh to update itself - note again here: the page has to
update ITSELF)

3) It may be possible (I haven't tried this before) be possible to write
a javascript function for the client which reads an asp page and updates
just a portion (say the contents of a div block) of the page at your 1
minute intervals.

Always remember, ASP (or whatever server) is designed not to give the
king complete control over all his humble peasants - he can only tell
the what to do if they ask.

Cheers,
Nic
 
J

Jeff Clark

Yah I HEAR YOU.
Solution 3 is proably the best, and it is the one in which I am most
interested.
Although it is realistically not much different than solution 2.
DOES ANYONE HAVE A SOLUTION FOR 3 WHICH IS:
Give me a javascript function that updates a DIV from a database every
minute ?

Bow your heads
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,140
Messages
2,570,810
Members
47,357
Latest member
sitele8746

Latest Threads

Top