hi all, i'm new at ASP and i face a problem, the problem is that i want to broadcast commands to browsers opening MyWebSite, The idea is that their is a presenter which present something through pictures, so i want whenever the presenter select certain image or even navigate to a any image all the instances or browsers that open my web site also navigate to that image automatically. How to do this ?
This is best handled with session- and application-level variables. Here's one example of how it could be done. If the presenter navigates to "myWebSite.com/turnips.asp" this page should say:
-
if session("id") = "presenter" then
-
application("presenterPage") = "turnips"
-
else
-
response.redirect "/" & application("presenterPage") & ".asp"
-
end if
-
All the other pages should say something similar. You will need to make sure the presenter can log in (and set the session("id") to "presenter") and no one else can (or logs in as something else) then no matter what the user clicks on he will be sent to the page where the presenter is.
My Second problem is at the presenter, i post alot of discussions in many forums about the following problem( Here also
http://www.thescripts.com/forum/thread635721.html ), the problem is that the presenter Application is Windows Application and the clients are from Web Sites (Something Like E-Learning) how to tell the clients browsers to navigate to the next image and perform this process automatically. someone tell me to use HTTPRequest as faking that the presenter is from a website and click on a button, the next step is how to broadcast to all instances.
There's no good way to do this in asp, as asp is strictly "pull", that is the server only works when the browser asks. You could do something with a frame that updates regularly (every 5 seconds or so) that just asks whether application("presenterPage") has changed, then if it has changed, you can redirect the other frame. You could probably do something similar with java or javascript.
Jared