Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Mel Smith" Newsgroups: comp.lang.javascript Subject: Re: Smoke-js library ?? Date: Mon, 9 Sep 2013 08:42:34 -0600 Lines: 39 Message-ID: References: <522cbb98$0$9514$9b4e6d93@newsspool1.arcor-online.net> X-Trace: individual.net 2RnA4Yp518W5Y4ZAvO2T3AueHVxGlQ5FkIjLRpUpe4BdmbuPMm Cancel-Lock: sha1:ASIka1UQHAlEerwDrHiXLUgDcLk= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Original Xref: csiph.com comp.lang.javascript:21230 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. > 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