my dog learned polymorphism*
The moose likes HTML, CSS and JavaScript and the fly likes Radio Button in Dialogue box using javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Radio Button in Dialogue box using javascript" Watch "Radio Button in Dialogue box using javascript" New topic
Author

Radio Button in Dialogue box using javascript

Angela D'souza
Ranch Hand

Joined: Jan 16, 2002
Posts: 469
Hi,
I have addressbook where I can detect duplicate contact. If any duplicate name then I want to display following dialogue box:
The contact name alreay exits.
Would you like to:
(radio button) Add this as new contact anyway
(radio button) Update new information from this contact
Ok Button Cancel Button
How can I include radio button in dialogue box?
Thanks,
Angela
Michael McNally
Ranch Hand

Joined: Aug 22, 2002
Posts: 53
I think Javascript has limitations with alert, prompt, and confirm boxes. I think that only a few characters are accepted..such as \n for newline. You cant use any html tags..so I dont think its possible.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
you would have to do it with layers....
i have a script here, that would have to be changed a bit to fit your needs, I will do it later today when I get off of work.
http://www10.brinkster.com/A1ien51/Customize/
Angela D'souza
Ranch Hand

Joined: Jan 16, 2002
Posts: 469
Thanks Eric,
I saw you two links belows examples alert:
Alert #1 & Alert # 2
It works fine in Netscape 6.2 and IE. But in netscape4.78 it displays but when I click on Continue button looks like click event doesn't work.
Please help me out.
Thanks,
Angela
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Radio Button in Dialogue box using javascript