• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Radio Button in Dialogue box using javascript

 
Angela D'souza
Ranch Hand
Posts: 469
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 469
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic