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


Groups > comp.lang.javascript > #21230

Re: Smoke-js library ??

From "Mel Smith" <med_cutout_syntel@aol.com>
Newsgroups comp.lang.javascript
Subject Re: Smoke-js library ??
Date 2013-09-09 08:42 -0600
Message-ID <b96530F316qU1@mid.individual.net> (permalink)
References <b91l7oF5bgdU1@mid.individual.net> <522cbb98$0$9514$9b4e6d93@newsspool1.arcor-online.net>

Show all headers | View raw


Cristoph said:

> I'm quite sure that this is the normal behavior of the function.  You'll
> have to rewrite existing code that uses window.confirm() somewhat, for
> instance:
>
>  result = confirm("The record will be deleted!");
>  if (result) {
>    // delete the record
>  } else {
>    // do something else
>  }
>
> has to be changed to:
>
>  smoke.confirm("The record will be deleted!", function(result) {
>    if (result) {
>      // delete the record
>    } else {
>      // do something else
>    }
>  });
>
> Cf. <http://smoke-js.com/docs/>
>


Hi Christoph:

    I had a response to a query from Jonathan Youngblood (creator of this 
library) last nite. He also said what you've told me.

So, I'll work on it today.

Thank you for the response.

-Mel

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


Thread

Smoke-js library ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2013-09-07 15:47 -0600
  Re: Smoke-js library ?? Christoph Michael Becker <cmbecker69@arcor.de> - 2013-09-08 20:03 +0200
    Re: Smoke-js library ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2013-09-09 08:42 -0600
      Re: Smoke-js library ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2013-09-09 17:56 -0600

csiph-web