Link to home
Start Free TrialLog in
Avatar of farmakis
farmakis

asked on

on line contest

Hi experts

 My problem is as follows

 I want to do an online contest and I want those who are online  watch, I have the code for random numbers but i can not present the same numbers in all online clients. each client  getting different random numbers.

Is there any way to do this ?

Same time in all online clients a pop up window running my random number script but having the same result in all ?

 Thank you
ASKER CERTIFIED SOLUTION
Avatar of wilcoxon
wilcoxon
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of farmakis
farmakis

ASKER

Thank you both for your answers

Maybe I was not quite clear

I be;ieve that the script must run on server side because i want to generate a 8 digit random number once,
My problem is that i want all online clients can see the generation of the number same time in a pop up window. All clients must see the generation process at their screens and the number must be the same for all. The one that the server generates.

You can take it like an online lottery that only one can win ( the number that server generates ) buy onli must see the generation process when this is happend.

I don;t know if i can give you a link so you can see exactly what the script do so ypu can help me.

Thanks again

Ilias
This is more of a web programming question, then.  It looks like you need to notify the clients when the number becomes available.  Most likely you are talking AJAX.
It could certainly be done with AJAX (not really my area of expertise).

It should also be possible to be done in more of a client-server style.  The server generates the random number seed and then the web page that each person looks at simply retrieves the seed and re-generates the list of random numbers (given the same seed and same PRNG, the list of random numbers will stay the same).  The upside to this method is that you can skip AJAX - the downside is that the viewer won't necessarily know as soon as the random numbers are available.

In any case, as bounsy says, this is a web programming question.
OK Thanks again both for your aswers.

I;ll ask there

Anyway If you think you give mr your opinions the page is here

http://www.travelbookstore.gr/index/Win4Popup.htm

Many Thanks again

Ilias
@farmakis

Like "bounsy" was suggesting, you may want to change the zones of your question.

You could ask advise from the moderators:
https://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/requestAttention.jsp?attention&refType=10&refID=26843181
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.