Tony wrote on 26 jan 2006 in comp.lang.javascript
:
Evertjan. wrote: Tony wrote on 26 jan 2006 in comp.lang.javascript:
> Basically, I have to find a way to hold up execution of a script
> while I wait for a button to be clicked, in the same manner as
> alert() or confirm() do, but without using either of those.
>
>
You cannot, that is not the way js works.
Rewrite your code, so that the rest of the code is in a function
executed on pressing the relevant button.
That's what I was afraid of - I have a whole team of other developers
working on the server-side code that generates these alerts & confirms
- that's going to add a lot of extra work. I was hoping to avoid that
:(
Ah, well, I guess I should consider it job security...
It is a question of the way old programming looked at a programme as a
long line of statements, where the user was not in charge and reluctantly
was allowed to answer preformed questions, while new programming sees the
user as the one GIVING assignments to the programme by pressing a choice
of buttons.
The concept of modularity, started by abolishing the Basic "Goto"
statement, fits perfectly in this concept.
The ww-web also gives the power to the user, and the frustrated
struggling programmers on these NGs are repeatedly asking for independent
server originated actions where all actions should start from the browser
asking the server for action.
;-} / ;-{
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)