PDA

View Full Version : How do i create a Yes/No msg box


Rekuyki
03-15-2004, 09:10 AM
hello all,

Right now i am tring to change my javascript msgbox to change from it saying OK/Cancel to Yes/No. I just think it looks silly to have a yes/no question and then have ok and cancel as the response. So if you could help me out that would be great. Thanks for all you help in advaced

-Rekuyki

Terry
03-15-2004, 10:55 PM
Not sure of the answer but you may find it here:
http://developer.irt.org/script/script.htm

fyrye
04-14-2004, 11:34 PM
not sure about java but in VBSCRIPT there is a number value to select
here is my VBSCRIPT example

< SCRIPT LANGUAGE="VBScript" >
MsgBox("Please Click Yes or No", 4)
</SCRIPT>


Styles
VBOKOnly 0 Show OK button
VBOKCancel 1 Show OK and cancel buttons
VBAbortRetryIgnore 2 Show abort, retry, ignore buttons
VBYesNoCancel 3 Show yes, no cancel buttons
VBYesNo 4 Show yes, no buttons
VBRetryCancel 5 Show retry, cancel buttons
VBCritical 16 Show critical message icon
VBQuestion 32 Show warning query button
VBExclamation 48 Show warning message icon
VBInformation 64 Show information message icon
VBDefaultButton1 0 First button is default
VBDefaultButton2 256 Second button is default
VBDefaultButton3 512 Third button is default
VBDefaultButton4 768 Fourth button is default
VBApplicationModal 0 Demands that the user respond to the dialog before allowing continuation of work in current application
VBSystemModal 4096 Causes suspension of all applications until the user responds to the dialog