Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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.

Reply With Quote
  #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?
Reply With Quote
  #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.
======================================
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:02 PM.


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