is there a way of changing the values of the confirm box from ok / cancel to
yes / no
i have the following alert/confirm box but it is worded in a way that the ok
and cancel do not make sense:
function confirmNewSupplierWelcome(){
return confirm(
'Before going on to request a new supplier\n'
+ 'are you sure there is no suitable alternative?'
+ '\nRemember, new suppliers are authorised by exception only'
);
} 8 5193
"Craig Keightley" wrote is there a way of changing the values of the confirm box from ok / cancel
to yes / no
No, there isn't. Sorry.
i have the following alert/confirm box but it is worded in a way that the
ok and cancel do not make sense:
You more or less provide the solution yourself: change the wording of the
question.
hth
--
Ivo
"Craig Keightley" <do**@spam.me> wrote in message
news:42*********************@news-text.dial.pipex.com... is there a way of changing the values of the confirm box from ok / cancel
to yes / no
i have the following alert/confirm box but it is worded in a way that the
ok and cancel do not make sense:
function confirmNewSupplierWelcome(){ return confirm( 'Before going on to request a new supplier\n' + 'are you sure there is no suitable alternative?' + '\nRemember, new suppliers are authorised by exception only' ); }
You can't change it.
The question should be phrased so those responses make sense.
For example,
Click Cancel if there is a suitable alternative;
otherwise, click OK to request a new supplier.
Remember, new suppliers are authorised by exception only.
Craig Keightley wrote: is there a way of changing the values of the confirm box from ok / cancel to yes / no
In addition to the other two answers (I would recommend to rephrase
the question, too), maybe the following thread will interest you: http://groups.google.de/groups?threa...2h9h%404ax.com
ciao, dhgm
Trust me, the question is not in my words and for an easy life, iw ould re
phrase it too (it was before, but my client is very fussy!!!)
Is there way to acheive this using VB Script?
"Dietmar Meier" <us***************@innoline-systemtechnik.de> wrote in
message news:3d*************@individual.net... Craig Keightley wrote:
is there a way of changing the values of the confirm box from ok / cancel to yes / no
In addition to the other two answers (I would recommend to rephrase the question, too), maybe the following thread will interest you: http://groups.google.de/groups?threa...2h9h%404ax.com
ciao, dhgm
You can try to use the showModalDialog() method to display your questions.
James
"Craig Keightley" <do**@spam.me> wrote in message
news:42*********************@news-text.dial.pipex.com... Trust me, the question is not in my words and for an easy life, iw ould re phrase it too (it was before, but my client is very fussy!!!)
Is there way to acheive this using VB Script?
"Dietmar Meier" <us***************@innoline-systemtechnik.de> wrote in message news:3d*************@individual.net... Craig Keightley wrote:
is there a way of changing the values of the confirm box from ok / cancel to yes / no
In addition to the other two answers (I would recommend to rephrase the question, too), maybe the following thread will interest you: http://groups.google.de/groups?threa...2h9h%404ax.com ciao, dhgm
Craig Keightley wrote:
[Yes/No Box] Is there way to acheive this using VB Script?
Yes, if you target MSIE on Windows only. VBScript is not supported on
any other platform (AFAIK). See the example below. If you implement
VBScript in your documents, and have any intrinsic JavaScript (like
`<element onwhatever="jscode">´), make sure that the VBScript block is
not the first script block in your document, since MSIE ignores the
"Content-Script-Type" HTTP header equivalent and interpretes any
intrinsic script as of the type of the first script block found in the
document ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>VB Yes No</title>
<script type="text/javascript">
function askVB(s) {
if (typeof VBYesNoQuestion != "undefined") {
return VBYesNoQuestion(s);
}
}
</script>
<script type="text/vbscript">
Public Function VBYesNoQuestion (ByVal s)
VBYesNoQuestion = MsgBox (s, 4, "Question") = 6
End Function
</script>
</head>
<body>
<a href="#"
onclick="alert(askVB('Foo Bar') + ' was returned'); return false"test it</a>
</body>
</html>
ciao, dhgm
Craig Keightley wrote:
[Yes/No Box] Is there way to acheive this using VB Script?
Yes, if you target MSIE on Windows only. VBScript is not supported on
any other platform (AFAIK). See the example below. If you implement
VBScript in your documents, and have any intrinsic JavaScript (like
`<element onwhatever="jscode">´), make sure that the VBScript block is
not the first script block in your document, since MSIE ignores the
"Content-Script-Type" HTTP header equivalent and interpretes any
intrinsic script as of the type of the first script block found in the
document ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>VB Yes No</title>
<script type="text/javascript">
function askVB(s) {
if (typeof VBYesNoQuestion != "undefined") {
return VBYesNoQuestion(s);
}
}
</script>
<script type="text/vbscript">
Public Function VBYesNoQuestion (ByVal s)
VBYesNoQuestion = MsgBox (s, 4, "Question") = 6
End Function
</script>
</head>
<body><p>
<a href="#"
onclick="alert(askVB('Foo Bar') + ' was returned'); return false"test it</a>
</p></body>
</html>
ciao, dhgm
Craig Keightley wrote: Trust me, the question is not in my words and for an easy life, iw ould re phrase it too (it was before, but my client is very fussy!!!)
Is there way to acheive this using VB Script?
You could use 'pop-up' divs that are styled to look like dialogs.
Then you can support any browser with JavaScript, rather than just
those with VBscript.
Try to make your client outcome focused: the intention is to
determine whether the user wants to request a new supplier, not get
them to say "yes" or "no".
Sticking with confirm:
Before going on to request a new supplier,
are you sure there is no suitable alternative?
Remember, new suppliers are authorised by exception only.
Click 'OK' to request a new supplier, or
click 'Cancel' to not request a new supplier.
The question is poorly worded anyway - I may not be sure, but I may
still want a new supplier. So no, I'm not sure but yes, I want a new
supplier. Hmmm.
Just suggestions...
--
Fred This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Logger |
last post by:
Help, I’m trying to implement a confirm button on an asp.net page. I have it
attached to a asp:button control. In the button1 click event I call the
CreateConfirmBox subroutine. The Box comes...
|
by: neoconwannabe |
last post by:
Hi,
I have an html form with a number of checkboxes that can be checked
to delete
items. I want to have a javascript alert prompt box to pop up to
confirm the delete.
I am building my site with...
|
by: @sh |
last post by:
Can anyone help out here please, we have a button that when pressed will
alert the user, should they cancel no action is taken, however should they
confirm, the script will disable the button and...
|
by: Remco Groot Beumer |
last post by:
Hello,
I've developed a Microsoft Access 2000 database. In a lot of events
Docmd.RunSQL is used. In my database options the 'Confirm' options are
turned off, so I don't have to confirm action...
|
by: Chris |
last post by:
I can create Javascript confirm message boxes during page creation, etc
adding them to the button attributes (many good posts on this!). But how can
I add this event after the button is pressed?
I...
|
by: rn5a |
last post by:
I have gone through a no. of posts in this NewsGroup regarding my
problem but alas, couldn't come across one which would have helped me
in resolving the issue. My problem is this:
An ASPX Form...
|
by: balakrishnan.dinesh |
last post by:
hi Frnds,
I need Confirm box with "yes" or "no" buttons, Is that
possible in JAVASCRIPT ,
Can anyone tell me the solution for this or anyother way to create
confirm box with "yes" or "no" button?...
|
by: FAQ server |
last post by:
-----------------------------------------------------------------------
FAQ Topic - How do I change the confirm box to say yes/no or default to cancel?...
|
by: leosarasua |
last post by:
I am writing a page in French and I need to create a confirm box, but
I want to change the labels of the buttons from "OK" and "Cancel" into
"Oui" and "Non".
I've looked around and it seems...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |