Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 11th, 2009, 11:16 AM
Authorized User
Join Date: Sep 2004
Posts: 68
Thanks: 1
Thanked 0 Times in 0 Posts
Default JavaScript Popup with Multiple Choices

Good morning all.

Upon clicking a hyperlink which will allow a user to edit a calendar entry, I want to prompt the user to see if he wants to edit the single calendar entry, the series (i.e. if the entry is part of a recurring series) or cancel.

So I'm strating out with a bit of typical code, window.confirm:

var strApproveYes=window.confirm("Are you sure you want to open this item?");

this provides two options for the user. Is it possible to add a 3rd option?

thank you.
Old May 11th, 2009, 11:46 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

Not really using a confirm box. You can create your own popup using a div or use something like jQuery's thickbox.
Old May 11th, 2009, 12:00 PM
Authorized User
Join Date: Sep 2004
Posts: 68
Thanks: 1
Thanked 0 Times in 0 Posts


thank you.

do you know of an example of a custom box using the <div> tag?

i assume the custom box would be coded in javascript.


Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript popup does not stay on top billbillbill Classic ASP Basics 0 July 23rd, 2007 12:15 PM
Javascript in popup. rupen Javascript 0 April 27th, 2006 08:34 AM
Popup window from javascript arnabghosh Javascript How-To 1 March 2nd, 2006 10:17 AM
Popup window from Javascript arnabghosh Javascript 3 March 1st, 2006 01:09 AM
javascript popup keeps loading Dj Kat Javascript How-To 2 January 3rd, 2006 10:22 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.