Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #12896

Enhanced prompt

From Hans-Georg Michna <hans-georgNoEmailPlease@michna.com>
Newsgroups comp.lang.javascript
Subject Enhanced prompt
Date 2012-03-19 13:53 +0100
Organization albasani.net
Message-ID <2jaem7prfgdk7n7oencgf7glna4eo83kft@4ax.com> (permalink)

Show all headers | View raw


I have a requirement here that is very similar to
window.prompt(...), but slightly exceeds it. Let's assume the
requirement is that the prompt text contain a clickable link.

I have tried to write an enhancedPrompt(...) function in
DOM/JavaScript, but so far failed, because this function would
have to wait for the user to click on the [OK] or [Cancel]
button, then return to the calling routine.

So far it seems to me that this cannot be programmed in
DOM/JavaScript. I may have to split the calling routine into a
first part that creates the dialog (for example, an absolutely
positioned element with a higher z-index) and a second part that
gets called when the user clicks a button.

I can do that, but I would still like to know whether I am
overlooking something here. It looks like a somewhat painful
limitation of the DOM/JavaScript combo.

All good thoughts are welcome.

Hans-Georg

Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Enhanced prompt Hans-Georg Michna <hans-georgNoEmailPlease@michna.com> - 2012-03-19 13:53 +0100
  Re: Enhanced prompt Scott Sauyet <scott.sauyet@gmail.com> - 2012-03-19 06:45 -0700
    Re: Enhanced prompt Hans-Georg Michna <hans-georgNoEmailPlease@michna.com> - 2012-03-19 17:54 +0100
      Re: Enhanced prompt Scott Sauyet <scott.sauyet@gmail.com> - 2012-03-19 10:53 -0700
        Re: Enhanced prompt Hans-Georg Michna <hans-georgNoEmailPlease@michna.com> - 2012-03-20 19:45 +0100
  Re: Enhanced prompt Martin Honnen <mahotrash@yahoo.de> - 2012-03-19 18:07 +0100
    Re: Enhanced prompt Hans-Georg Michna <hans-georgNoEmailPlease@michna.com> - 2012-03-20 19:46 +0100

csiph-web