473,466 Members | 1,324 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Confirm Alert

Can I have a confirm alert with *Yes* *No* button istead of *Ok*
*Cancel* buttons.

Any help................

Regards,
Amit Arora

Feb 23 '06 #1
7 1531
wrote on 23 feb 2006 in comp.lang.javascript:
Can I have a confirm alert with *Yes* *No* button istead of *Ok*
*Cancel* buttons.


yes/no, you will have to build it yourself.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 23 '06 #2
ar*********@gmail.com wrote:
Can I have a confirm alert with *Yes* *No* button istead of *Ok*
*Cancel* buttons.


You can't. Only if you code up an html modal window object by yourself.
--
Jonas Raoni Soares Silva
http://www.jsfromhell.com
Feb 23 '06 #3
Jonas Raoni said the following on 2/23/2006 12:04 PM:
ar*********@gmail.com wrote:
Can I have a confirm alert with *Yes* *No* button istead of *Ok*
*Cancel* buttons.
You can't.


Correct.
Only if you code up an html modal window object by yourself.


"html modal window object"?

Why not throw a few more buzz words in there with it to make it an even
more catch all statement? You can roll your own without using a window.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 23 '06 #4
Randy Webb wrote:
Jonas Raoni said the following on 2/23/2006 12:04 PM:
Only if you code up an html modal window object by yourself.


"html modal window object"?

Why not throw a few more buzz words in there with it to make it an even
more catch all statement? You can roll your own without using a window.


Haha, I don't think I understood the last phrase right =/

But that's what I meant to say, I didn't asked him to use an window
(window.open), since the window communication can be problematic and
everything can be made with dom and etc :]

But he won't be able to make such flexible code anymore:

if(confirm("Ok?"))
:

Since there's nothing to block the code flow, he will need to add a
listener =/

MyConfirm("message", notificationFunction);

That's the why I preffer to keep using the default window.confirm :)
--
Jonas Raoni Soares Silva
http://www.jsfromhell.com
Feb 23 '06 #5
If I am right then there exits a method in VB

MSgBox("STRING_MESSAGE",VBYesNo), it works for having *Yes* *No*
buttons.
Can't JavaScript give me this???????

Feb 24 '06 #6
ar*********@gmail.com wrote:
If I am right then there exits a method in VB

MSgBox("STRING_MESSAGE",VBYesNo), it works for having *Yes* *No*
buttons.
Can't JavaScript give me this???????


Nope, I saw that it's possible to call a VBScript function from
JavaScript, but since VBScript isn't a standard, it isn't good to make
such wrappers.
--
Jonas Raoni Soares Silva
http://www.jsfromhell.com
Feb 24 '06 #7
ar*********@gmail.com said the following on 2/24/2006 4:56 AM:
If I am right then there exits a method in VB

MSgBox("STRING_MESSAGE",VBYesNo), it works for having *Yes* *No*
buttons.
VBScript has that.
Can't JavaScript give me this???????


No.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 24 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Andy Fish | last post by:
Hi, now I know what the alert() function does, but can anyone tell me where I can find the specification or standards for functions like alert() and confirm(). They don't seem to be part of...
2
by: Terry | last post by:
anyone know how to pop up a confirm window with (Y) & (N)?? I want to pop up a "Do you want to continue?" message box (javascript only, can't use vbscript) with (Y) & (N). when click (N), then...
7
by: Tasha's Dad | last post by:
A description of the problem: 1) Go to a page with various settings and a timeout (forces re-login if over 10 minutes) 2) Before the timeout, make some changes to settings. 3) Press a "reset to...
2
by: Hans | last post by:
Hi! I have an asp application where I use a lot of javascript for validations etc and as it is today I use alert, confirm and prompt dialogs. Now we are adding support for unicode and I have...
2
by: Little Pete | last post by:
I use a simple .js script to shuffle files on my computer to which I'd like to add alert and confirmation boxes. Unfortunately I haven't been able to figure out what object I need to create that...
2
by: ad | last post by:
We must do with Javascirpt when develop web UI. I write a alert function which can call from server side like: public static void alert(Page myPage, string sMsg) { string myScritpt; myScritpt...
8
by: Eric | last post by:
I have a confirm alert before the user goes to a delete page, and it doesn't matter if the user clicks ok or cancel - they always go to the delete page. I have the following code: <a...
3
by: tshad | last post by:
Is there a way to do a Javascript confirm box when an aspx page initially loads (not postback)? I can make the confirm box come up by doing the following:...
3
by: atiger | last post by:
I am doing some validation in an ascx page. I have two textboxes. if user types char in the box, an alert box will be displayed, if user doesn't enter anything, a confirm box need to be displayed....
5
by: ahilar12 | last post by:
hi all, i wanted to check whether the password entered matches with the confirm password.either through javascript or through php.i have enclosed my code somebody help on this <html> ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
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...
0
isladogs
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.