473,320 Members | 2,071 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,320 software developers and data experts.

Browsers Control

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 ?

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.
May 29 '07 #1
1 1148
jhardman
3,406 Expert 2GB
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:
Expand|Select|Wrap|Line Numbers
  1. if session("id") = "presenter" then
  2.    application("presenterPage") = "turnips"
  3. else
  4.    response.redirect "/" & application("presenterPage") & ".asp"
  5. end if
  6.  
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
May 31 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

53
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
12
by: confused | last post by:
After expressing my interest in expanding my new knowledge of HTML and CSS into the wild realm of JavaScript, I was advised that it is wiser to avoid it, since not all browsers are use it or are...
12
by: code_wrong | last post by:
Hi, as the subject says How many browsers must we support? How many are there exactly? When I run this JavaScript in Firefox and IE6: function init(){ if(document.getElementById) alert("W3C...
4
by: Frank Rizzo | last post by:
I am trying to make sure that my app works fine with browsers other than IE. I am finding that many features simply don’t work on other browsers. For instance, the Validators are actually doing...
8
by: Frank Rizzo | last post by:
I am trying to make sure that my app works fine with browsers other than IE. I am finding that many features simply don’t work on other browsers. For instance, the Validators are actually doing...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.