Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript 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 October 3rd, 2007, 08:13 AM
Registered User
 
Join Date: Oct 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Custom Dialog Box

I am in need of a dialog box which should have options like VBScript model "Yes/No/Cancel" or "Ok/Cancel/Abort".

So that I come up with my own custom dialog box. But the thing is I need to control script execution until user clicks either of the options available in the custom dialog box similar to browser's dialog boxes. But the statements after dialog box invocation, are executing as usual. To avoid this is there any solution / workaround.

Please find time to let me know the solution.

Thanks In advance..

Regds,
Hari Kishore.
Keep Smiling that doesn't cost you much.
 
Old October 3rd, 2007, 08:41 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Without seeing your code it's hard to say. You can show a div with the relevant buttons and text and then have the buttons call function sin the page, there shouldn't need to be any code after the dialogue box is shown.

--

Joe (Microsoft MVP - XML)
 
Old October 4th, 2007, 01:54 AM
Friend of Wrox
 
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

I agree, you won't be using a "real" dialog box, but the solution should be pretty straightforward and execute with identical functionality to what you're used to in VBScript. And since it's custom you can have the buttons say anything you want, look any way you want, use CSS for appearance, include button images, or whatever.

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
 
Old October 4th, 2007, 02:09 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Or you can look into third party commercial Dialog products and save yourself some development time and frustration.

Here's one I often work with (from Telerik)
http://www.telerik.com/DEMOS/ASPNET/...DefaultCS.aspx

(Not associated with them; I just like their products)

Imar



---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dialog Box problem r_taduri ASP.NET 2.0 Professional 0 October 29th, 2006 09:33 AM
Append dialog Box paul20091968 Access VBA 1 April 28th, 2006 10:56 AM
insert dialog box in a dialog box BurhanKhan Visual C++ 7 June 1st, 2004 07:53 PM
Custom Dialog Box snakedog Access 1 March 12th, 2004 09:37 PM
Custom Login Dialog Box For Music Inventory 2001 Ben Horne Access VBA 4 March 8th, 2004 04:54 PM





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