Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional 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
  #1 (permalink)  
Old August 21st, 2003, 08:18 AM
Registered User
 
Join Date: Aug 2003
Location: Malvern, Worcestershire, United Kingdom.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Modal Dialogs

I am developing ASP pages using VBScript and I have 2 seperate problems:

1. I have a modal dialog spawned from an ASP page containing checkboxes. How can I retrieve the state of the checkboxes once the dialog has been closed.

2. I want to spawn a dialog when a menu selection has changed, e.g.

<Script For="selMyMenu" Event="onChange" Language="VBScript">

  Dim strResult
  strResult = ShowModalDialog("mycode.asp" & GetTags("")etc..

</Script>

The function ShowModalDialog doesn't seem to be activated. Is it possible to do this?


Thanks.

  #2 (permalink)  
Old August 21st, 2003, 08:55 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 256
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:
1. I have a modal dialog spawned from an ASP page containing checkboxes. How can I retrieve the state of the checkboxes once the dialog has been closed.
You can't unless you POST or GET them to your server. Your dialog has no existence, as far as your server is concerned and you must specifically send the values it contains to the server. Maybe have a "Close Windows" button whose value is "Close Window", but which is actually a submit button, which posts to a page which closes itself onLoad?
  #3 (permalink)  
Old August 21st, 2003, 08:19 PM
Friend of Wrox
Points: 2,376, Level: 20
Points: 2,376, Level: 20 Points: 2,376, Level: 20 Points: 2,376, Level: 20
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , Australia.
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default

The MSDN article talks of a return value although I have not tried it.

http://msdn.microsoft.com/library/de...odaldialog.asp

======================================
They say, best men are moulded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dialogs in VC++ pj_bennett Visual C++ 1 February 10th, 2007 02:20 PM
Dialogs in ASP.NET using server-side-blocked-calls inchl ASP.NET 1.0 and 1.1 Basics 1 September 27th, 2006 08:41 PM
multiple dialogs using MFC?? sachin_dm Visual C++ 0 April 22nd, 2005 05:33 AM
Windows like dialogs Trevor Miles Classic ASP Basics 3 January 27th, 2005 06:24 PM





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