Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
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 August 30th, 2006, 10:33 AM
Friend of Wrox
Join Date: Mar 2004
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts
Default passing values from a dialog


I'm creating a modal dialogue box:
if (window.showModalDialog)
  window.showModalDialog("login.htm",window,"dialogW idth:255px;dialogHeight:250px");

Now login.htm is a form, and I want to be able to pass the form values into a string back to the parent window. How can I do this?

Old August 30th, 2006, 10:55 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

The return value of showModalDialog is specified in the actual modal window by using window.returnValue = ?


Joe (Microsoft MVP - XML)
Old August 30th, 2006, 02:22 PM
Friend of Wrox
Join Date: Mar 2004
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts


Similar Threads
Thread Thread Starter Forum Replies Last Post
passing values between two tables bright_mulenga Access 1 January 24th, 2007 11:27 AM
Passing data from modal dialog to window. ganga Javascript 1 September 26th, 2006 06:45 AM

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