Re: Controlling Javascript from server side



In comp.lang.javascript message <1188414817.968016.204180@xxxxxxxxxxxxxx
oglegroups.com>, Wed, 29 Aug 2007 12:13:37, Bart Van der Donck
<bart@xxxxxxxxxx> posted:

ajax('file.py?' + (new Date()).getTime(), '', '');

That is conceptually better, yes. But any idea about which scale we're
talking here ? Math.random() gives me 15 to 18 digits after comma,
let's say 16 for easy calculation.

In that case, it probably gives about 2^53 different values. However,
Opera 9.21 & 9.23 give only about 2^31 values, or so it seems.

In cases where each state of the PRNG gives a different value to
Math.random(), the latter will NOT repeat until all states have been
traversed.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6.
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
I find MiniTrue useful for viewing/searching/altering files, at a DOS prompt;
free, DOS/Win/UNIX, <URL:http://www.idiotsdelight.net/minitrue/> unsupported.
.



Relevant Pages

  • Re: getElementById returns empty
    ... "This is called the freedom of speech ... @Bart Van der Donck: ...
    (comp.lang.javascript)
  • Re: checking email address for @ and . characters
    ... Bart Van der Donck wrote: ... I'm actually more at home in PERL/PHP then javascript :-). ...
    (comp.lang.javascript)
  • Re: This newsgroup has become vicious
    ... Bart Van der Donck wrote: ... They seemed to be too busy arguing about who was ... Exploring the extremes of any technology gives you a vast knowlegde ...
    (comp.lang.javascript)
  • Re: How do I make a form field take focus ?
    ... Bart Van der Donck wrote: ... because onLoad is explicitly executed just after the whole page is ... On the other hand, from the "School of practical experience" I've never seen that giving the element the focus from a script placed after the end of the form causes any problems, and with some browsers allows the user to start typing the instant the form appears, without having to click in the focussed field. ...
    (comp.lang.javascript)
  • Re: Controlling Javascript from server side
    ... Dr J R Stockton wrote: ... oglegroups.com>, Wed, 29 Aug 2007 12:13:37, Bart Van der Donck ... Math.randomgives me 15 to 18 digits after comma, ...
    (comp.lang.javascript)