473,803 Members | 4,392 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating a yes/no messagebox in Javascript

Hi all,

Is it possible to create a Javascript messagebox that shows the buttons Yes
and No instead of normal confirm?

Regards
John.

Nov 17 '05 #1
5 120497
The Javascript function is alert with some special parameters:

http://www.planetpdf.com/mainpage.asp?WebPageID=318

On Sat, 19 Jul 2003 02:33:54 +0100, John <a@b.com> wrote:
Hi all,

Is it possible to create a Javascript messagebox that shows the buttons
Yes
and No instead of normal confirm?

Regards
John.


--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 17 '05 #2
OK, major braincramp on that one....I knew there was a way, did a quick
search, bam, my last answer...didn't apply whatsoever....

sorry bout that: try confirm:

http://javascript.internet.com/messa...o-confirm.html


On Fri, 18 Jul 2003 21:50:56 -0500, Craig Deelsnyder [MVP]
<cd******@nospa myahoo.com> wrote:
The Javascript function is alert with some special parameters:

http://www.planetpdf.com/mainpage.asp?WebPageID=318

On Sat, 19 Jul 2003 02:33:54 +0100, John <a@b.com> wrote:
Hi all,

Is it possible to create a Javascript messagebox that shows the buttons
Yes
and No instead of normal confirm?

Regards
John.



--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 17 '05 #3
Hi

No but you can create your own using showModalDialog for example
http://msdn.microsoft.com/library/de...odaldialog.asp

--
Best Regards
Vidar Petursson
=============== ===============
Microsoft Internet Client & Controls MVP
=============== ===============
"John" <a@b.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Hi all,

Is it possible to create a Javascript messagebox that shows the buttons Yes and No instead of normal confirm?

Regards
John.

Nov 17 '05 #4
All of which have become virtually useless as they are trapped
and blocked by the PopUp blockers.

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET cs*********@REM OVETHISTEXTmetr omilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

LaGarde StoreFront 5 Affiliate: e-Commerce Software Development
SEE: http://www.storefront.net/default.as...RER=-201499070
"Craig Deelsnyder [MVP]" <cd******@nospa myahoo.com> wrote in message news:op******** ******@news.mic rosoft.com...
OK, major braincramp on that one....I knew there was a way, did a quick
search, bam, my last answer...didn't apply whatsoever....

sorry bout that: try confirm:

http://javascript.internet.com/messa...o-confirm.html


On Fri, 18 Jul 2003 21:50:56 -0500, Craig Deelsnyder [MVP]
<cd******@nospa myahoo.com> wrote:
The Javascript function is alert with some special parameters:

http://www.planetpdf.com/mainpage.asp?WebPageID=318

On Sat, 19 Jul 2003 02:33:54 +0100, John <a@b.com> wrote:
Hi all,

Is it possible to create a Javascript messagebox that shows the buttons
Yes
and No instead of normal confirm?

Regards
John.



--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET

Nov 17 '05 #5
mine doesn't do that....why would a popup blocker get involved with that
javascript? It's an 'alert' box, not a separate window.....even though
some sites love to also use alerts to advertise...

not to say blockers don't do this, I just didn't know they got that
'intrusive' (in my opinion).....


On Sat, 19 Jul 2003 10:15:37 -0500, clintonG
<cs*********@RE MOVETHISTEXTmet romilwaukee.com > wrote:
All of which have become virtually useless as they are trapped
and blocked by the PopUp blockers.


--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 17 '05 #6

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

Similar topics

15
6752
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use javascript or vbscript it works. I will appreciate any help. I do the following (C#):
3
4967
by: Christer | last post by:
Hi all! I recently created a MessageBox webcontrol for asp.net. This can be used as is, but I also want to take ude of it in other webcontrols. Right now i creating a ValidationSummary control, that makes use of my messagebox to show the summary of failing validators. So far I've been successfull achieving this. However, the serverside nature of the MessageBox currently forces all validators (and the validationsummary) to have...
5
1560
by: Curt Emich | last post by:
I always thought writing a simple diagnostic message in a message box would be pretty simple. Not in .NET. First, I wrote this amazingly complex piece of code: MessageBox.Show("yer mama") It wouldn't even complile. "Gee...", I mused. "Maybe there's no reference to that method in my project". I muzed correctly. So I added a reference to System.Windows.Forms, which is where our beloved "MessageBox" method
10
2355
by: Russ | last post by:
I've been trying to figure out how to show a simple messagebox with an OK button in my web client program (C#). I have looked at every reference to JScript and MessageBox that seemed even remotely like it could help, both in the VS help and in this NG. I found lots of examples of people saying how easy it is and showing examples, and examples in the help. But I have two problems: 1. All the examples show all the code in HTML, usually...
13
5679
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 have created an Is_Dirty routine checking for field changes on my page then if the user clicks on the "exit" button I check for Is_Dirty = true and want to ask then "do you want to exit without saving?". It's a code behind where if the value of...
10
6022
by: Andrew | last post by:
Hi, I have a messagebox that pops up due to an event. I did it in javascript. ie. alert("Time's up. Assessment Ended"); I want to capture the OK and Cancel events of this alert messagebox. My code is in C#/ASP.NET. TIA. Andrew.
4
24209
by: Coleen | last post by:
Hi All :-) Can anyone give me a URL where I can find a good example of code on how to create a temporary SQL table using VB.net? I've checked the Microsoft site at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/createdb/cm_8_des_04_8jtx.asp which is okay at explaining the process but gives me absolutely no code examples. Unfortunately, I am one of those programmers that can read and
3
6499
by: VMI | last post by:
I know this isn't the best group to post aspnet question, but the MS asp.net NG hasn't been very helpful lately. I've been trying to add a messagebox following the examples I've seen on the web, but with no luck. I have an aspx page where the user enters a bunch of data and clicks 'Submit'. When the user clicks on the 'Submit', I want to run an SP that returns true/false depending on the data. If false, then my MessageBox will pop up...
1
8303
by: kret | last post by:
Hi, this is my first post so first of all I would like to say hello :) Now getting to my problem. In my job I have to create an ActiveX control in .NET 1.1 that can be lunched from IE. This part is done but next requirement is that after closing ActiveX I have to redirect parent page to location X or Y depending on how the
0
10542
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10289
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10068
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7600
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6840
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5496
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3795
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2968
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.