Jambalaya said the following on 10/13/2005 4:30 AM:
[color=blue][color=green][color=darkred]
>>>>Oh wait, I see now. If you had bothered to quote what you were replying
>>>>to it would be easier to see that your approach has a simple flaw in it.
>>>>Instead of just trying to guess at a random number, you append the
>>>>current time in milliseconds.[/color][/color]
>
>[color=green][color=darkred]
>>>There was no flaw. Just a different method to accomplish the goal.[/color][/color]
>
>[color=green]
>>And what method is that?[/color]
>
>
> You really do seem smarter than this, Randy. I was showing the end
> result of the concatenation so that the original poster would
> understand the concept. I wasn't writing the code for him. I assume
> since he is using xmlhttp that he has sufficient javascript knowledge
> to be able to generate a random number and append it to a string.[/color]
Now it makes sense :)
[color=blue]
>[color=green]
>>Since you did not elaborate and your code was
>>hard-coded and showed no signs of being generated, it indicated that one
>>should hard-code that random number.[/color]
>
>
> No, if you will reread my first post, it indicates the opposite. I
> quote myself, "Just make sure to use a different random number for each
> call."[/color]
Fair enough.
[color=blue]
>[color=green]
>>That is a flaw in the approach -
>>not a different method to accomplish the same goal.[/color]
>
>
> I guess I'll admit there was a flaw. And that is that I didn't write
> all the javascript for the original poster. I guess I'm more of a
> teach-a-man-to-fish sort of guy versus a give-a-man-a-fish guy.[/color]
That's probably why I didn't write the script either, huh? <g>
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly