HighDots Forums  

FAQ Topic - How do I change the confirm box to say yes/no or default to cancel? (2009-11-02)

Javascript JavaScript language (comp.lang.javascript)


Discuss FAQ Topic - How do I change the confirm box to say yes/no or default to cancel? (2009-11-02) in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
FAQ server
 
Posts: n/a

Default FAQ Topic - How do I change the confirm box to say yes/no or default to cancel? (2009-11-02) - 11-01-2009 , 07:00 PM






-----------------------------------------------------------------------
FAQ Topic - How do I change the confirm box to say yes/no
or default to cancel?
-----------------------------------------------------------------------

The buttons on a confirm box cannot be changed, nor can you
specify a default button. However, you should be able to change
the question so that "OK" is suitable as the default.
e.g. change "We will now buy ourselves a Porsche with your credit
card, Do you want to continue with this transaction _OK_ Cancel"
to "We will now buy ourselves a Porsche with your credit card,
Would you like to abandon this transaction? _OK_ Cancel"


The complete comp.lang.javascript FAQ is at
http://jibbering.com/faq/

--

The sendings of these daily posts are proficiently hosted
by http://www.pair.com.

Reply With Quote
  #2  
Old   
Dr J R Stockton
 
Posts: n/a

Default Re: FAQ Topic - How do I change the confirm box to say yes/no or default to cancel? (2009-11-02) - 11-03-2009 , 10:24 AM






In comp.lang.javascript message <4aee2108$0$274$14726298 (AT) news (DOT) sunsite.dk
Quote:
, Mon, 2 Nov 2009 00:00:02, FAQ server <javascript (AT) dotinternet (DOT) be
posted:

It occurs to me that the following Subject style is inappropriate; it
commonly leads to answers of limited utility, especially when provided
by monomaniacal pedants. A responder should be aware that, more often
than not, a questioner asks a question which does not accurately reflect
the situation (there are exceptions)

Quote:
----------
FAQ Topic - I want to change the confirm box to say yes/no,
or to default to cancel ^
^^ without a "to" there, this and the original Subject parse
ambiguously.
Quote:
----------
The buttons on a confirm box cannot be changed, nor can you
specify a default button. However, you should be able to change
the question so that "OK" is suitable as the default.
e.g. change "We will now buy ourselves a Porsche with your credit
e.g. should not be used to start a sentence : it is ugly. use "For
example," instead.
card, Do you want to continue with this transaction _OK_ Cancel"
to "We will now buy ourselves a Porsche with your credit card,
Would you like to abandon this transaction? _OK_ Cancel"

Who are "We"? In English, it can either exclude or include the person
being addressed. Far better to use "I will now buy myself ...", unless
you are speaking formally as a Sovereign or Pontiff.

The advice currently offered is limited and not necessarily sufficient.
To it should be added a description of, or a link to, how a script can
create a new window or pseudo-window with more general controls - a
window with 'open', a pseudo-window perhaps by changing display:none on
part of the current page.

--
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk BP7, Delphi 3 & 2006.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
<URL:http://www.bancoems.com/CompLangPascalDelphiMisc-MiniFAQ.htm> clpdmFAQ;
NOT <URL:http://support.codegear.com/newsgroups/>: news:borland.* Guidelines

Reply With Quote
  #3  
Old   
David Mark
 
Posts: n/a

Default Re: FAQ Topic - How do I change the confirm box to say yes/no ordefault to cancel? (2009-11-02) - 11-03-2009 , 03:23 PM



On Nov 3, 10:24*am, Dr J R Stockton <reply0... (AT) merlyn (DOT) demon.co.uk>
wrote:
Quote:
In comp.lang.javascript message <4aee2108$0$274$14726... (AT) news (DOT) sunsite.dk>, Mon, 2 Nov 2009 00:00:02, FAQ server <javascr... (AT) dotinternet (DOT) be

posted:

It occurs to me that the following Subject style is inappropriate; it
commonly leads to answers of limited utility, especially when provided
by monomaniacal pedants. *A responder should be aware that, more often
than not, a questioner asks a question which does not accurately reflect
the situation (there are exceptions)

----------

*FAQ Topic - I want to change the confirm box to say yes/no,
*or to default to cancel * * * * * * * * * * * * * * * * * ^
* * ^^ without a "to" there, this and the original Subject parse
*ambiguously.

----------

*The buttons on a confirm box cannot be changed, nor can you
*specify a default button. However, you should be able to change
*the question so that "OK" is suitable as the default.
*e.g. change "We will now buy ourselves a Porsche with your credit
e.g. should not be used to start a sentence : it is ugly. *use "For
example," instead.
*card, Do you want to continue with this transaction _OK_ Cancel"
*to "We will now buy ourselves a Porsche with your credit card,
*Would you like to abandon this transaction? _OK_ Cancel"

This is wrong. It should not be a question with OK/Cancel. Use a
statement. Questions are for Yes/No dialogs.

Reply With Quote
  #4  
Old   
Osmo Saarikumpu
 
Posts: n/a

Default Re: FAQ Topic - How do I change the confirm box to say yes/no ordefault to cancel? (2009-11-02) - 11-04-2009 , 04:40 AM



David Mark kirjoitti:
Quote:
FAQ Topic - I want to change the confirm box to say yes/no
....
to "We will now buy ourselves a Porsche with your credit card,
Would you like to abandon this transaction? _OK_ Cancel"

This is wrong. It should not be a question with OK/Cancel. Use a
statement. Questions are for Yes/No dialogs.
I agree. The proposed question is very confusing. Would OK cancel the
transaction? Or vice versa?

How about something like:

*OK* will confirm the transaction and your credit card will be charged.
*Cancel* will terminate the transaction without a contract of sale.

--
BR,
Osmo

Reply With Quote
  #5  
Old   
Dr J R Stockton
 
Posts: n/a

Default Re: FAQ Topic - How do I change the confirm box to say yes/no or default to cancel? (2009-11-02) - 11-04-2009 , 11:16 AM



In comp.lang.javascript message <9c94de38-2d31-44f2-94e9-532c528f2a57@k4
g2000yqb.googlegroups.com>, Tue, 3 Nov 2009 12:23:59, David Mark
<dmark.cinsoft (AT) gmail (DOT) com> posted:
Quote:
On Nov 3, 10:24*am, Dr J R Stockton <reply0... (AT) merlyn (DOT) demon.co.uk
wrote:
In comp.lang.javascript message <4aee2108$0$274$14726... (AT) news (DOT) sunsite
.dk>, Mon, 2 Nov 2009 00:00:02, FAQ server <javascr... (AT) dotinternet (DOT) be

posted:

It occurs to me that the following Subject style is inappropriate; it
commonly leads to answers of limited utility, especially when provided
by monomaniacal pedants. *A responder should be aware that, more often
than not, a questioner asks a question which does not accurately reflect
the situation (there are exceptions)

----------

*FAQ Topic - I want to change the confirm box to say yes/no,
*or to default to cancel * * * * * * * * * * * * * * * * * ^
* * ^^ without a "to" there, this and the original Subject parse
*ambiguously.

----------

*The buttons on a confirm box cannot be changed, nor can you
*specify a default button. However, you should be able to change
*the question so that "OK" is suitable as the default.
*e.g. change "We will now buy ourselves a Porsche with your credit
e.g. should not be used to start a sentence : it is ugly. *use "For
example," instead.
*card, Do you want to continue with this transaction _OK_ Cancel"
*to "We will now buy ourselves a Porsche with your credit card,
*Would you like to abandon this transaction? _OK_ Cancel"


This is wrong. It should not be a question with OK/Cancel. Use a
statement. Questions are for Yes/No dialogs.
If you had trimmed your quotes, in accordance with the FAQ and with
accepted Usenet custom, it might have been possible to tell what you
meant by "This" and "It". As is, your contribution is valueless.

--
(c) John Stockton, nr London UK. replyYYWW merlyn demon co uk Turnpike 6.05.
Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html> -> Timo Salmi: Usenet Q&A.
Web <URL:http://www.merlyn.demon.co.uk/news-use.htm> : about usage of News.
No Encoding. Quotes precede replies. Snip well. Write clearly. Mail no News.

Reply With Quote
  #6  
Old   
David Mark
 
Posts: n/a

Default Re: FAQ Topic - How do I change the confirm box to say yes/no ordefault to cancel? (2009-11-02) - 11-04-2009 , 12:11 PM



On Nov 4, 4:40*am, Osmo Saarikumpu <o... (AT) weppipakki (DOT) com> wrote:
Quote:
David Mark kirjoitti:

*FAQ Topic - I want to change the confirm box to say yes/no
...
*to "We will now buy ourselves a Porsche with your credit card,
*Would you like to abandon this transaction? _OK_ Cancel"
This is wrong. *It should not be a question with OK/Cancel. *Use a
statement. *Questions are for Yes/No dialogs.

I agree. The proposed question is very confusing. Would OK cancel the
transaction? Or vice versa?

How about something like:

*OK* will confirm the transaction and your credit card will be charged.
*Cancel* will terminate the transaction without a contract of sale.
You can't mention the button names. You just assert something (e.g.
We will now process your payment). When in doubt, read aloud. Not
sure how this got botched in the FAQ as we had this same discussion
months ago.

Reply With Quote
  #7  
Old   
Garrett Smith
 
Posts: n/a

Default Re: FAQ Topic - How do I change the confirm box to say yes/no ordefault to cancel? (2009-11-02) - 11-05-2009 , 02:38 AM



Dr J R Stockton wrote:
Quote:
In comp.lang.javascript message <4aee2108$0$274$14726298 (AT) news (DOT) sunsite.dk
, Mon, 2 Nov 2009 00:00:02, FAQ server <javascript (AT) dotinternet (DOT) be
posted:

It occurs to me that the following Subject style is inappropriate; it
commonly leads to answers of limited utility, especially when provided
by monomaniacal pedants. A responder should be aware that, more often
than not, a questioner asks a question which does not accurately reflect
the situation (there are exceptions)

----------
FAQ Topic - I want to change the confirm box to say yes/no,
or to default to cancel ^
^^ without a "to" there, this and the original Subject parse
ambiguously.
----------

Fixed locally, will be included in next update.
--
Garrett
comp.lang.javascript FAQ: http://jibbering.com/faq/

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.