Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 February 9th, 2005, 01:40 AM
Authorized User
 
Join Date: Jan 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default urgent-get values in parent form

hi..
i have a drop-down menu with a list of products.when i select any one product i open a popup displaying hte product categories in it.i then enter the no. of items i want.and finally when i click to the submit button i want to display a summary of selected item.to make it more elaborate:

i have 3 items in a drop-down menu and each item has further 10 different types of products.

something like u have an item soap. and then 10 different brands of soap.so all my products are in the drop down menu in the parent form.
item 1
item 2
item 3
item 4

when i select item 1 i get a popup menu which has say 20 types of item1
item1-brand1
item2-brand2
item2-brand3
etc...

now the user can select three of "item1-brand1" and 2 of "item1-brand2" .then he might click to item 2 which in turn has further 15 types like:
"item2-brand1"
"item2-brand2"..etc

he can also select two of "item2-brand2" and one of "item2-brand2"

so his final selection say in the end is
item 1 item1-brand1 3
item 1 item1-brand2 2
item 2 item1-brand1 2
item 2 item1-brand2 1

so i want to display the above summary in the parent form.here is the function which i refer in onclick event of the 2nd form.i can display it in a textbox.but how to create multiple textbox and then dispaly values in each

function validateInfo()
{
     var length = parseInt(document.tmpForm.tmpNumber.value);
     for (i=1;i<length;i++)
     {
          var your_variable = document.tmpForm["Txt["+i+"]"].value;
          opener.document.f.elements["<%=Request("name") & "Quantity"%>"].value = document.tmpForm["Txt["+i+"]"].value;
             self.close();
     }
}
 
Old February 15th, 2005, 02:01 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

hi aspuser27

Offcourse you can do this by using DOM.
just pass the information from popup window to parent widnow function.
and this function is used to create dynamic input box,check box ,wht ever you want to do .


Cheers :)

vinod
 
Old February 15th, 2005, 02:29 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

http://www.adp-gmbh.ch/xml/dom.html

Cheers :)

vinod





Similar Threads
Thread Thread Starter Forum Replies Last Post
MDI PARENT FORM PROBLEM bullfreak C# 1 September 25th, 2008 11:05 PM
Urgent - pass value from child to parent Komila ASP.NET 2.0 Basics 3 April 18th, 2007 06:33 AM
Reload Parent form from Child form maulik33 ASP.NET 2.0 Basics 2 February 6th, 2007 12:53 PM
parent form from child form - urgent plz netfresher C# 1 November 8th, 2006 06:59 PM
the opration on the parent form alfred duan VS.NET 2002/2003 0 August 13th, 2003 01:46 AM





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