Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > urgent-how to pass values into the parent form

Reply
Thread Tools

urgent-how to pass values into the parent form

 
 
VbUser25
Guest
Posts: n/a
 
      02-09-2005


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 in the parent
form.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
from the database.i generate textboxes beside each label so that user
can enter his quantity.
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 enter two quantity 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();
}
}

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      02-09-2005
VbUser25 wrote on 09 feb 2005 in microsoft.public.inetserver.asp.general:
> 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


ASP is serverside and does not know about parent forms or any forms or
onclick events.

Please ask a clientside NG.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If a class Child inherits from Parent, how to implementChild.some_method if Parent.some_method() returns Parent instance ? metal Python 8 10-30-2009 10:31 AM
Need to pass a value from an IFrame to its parent to its parent PKalos@gmail.com Javascript 0 02-02-2006 10:02 AM
not all values have corresponding parent values Jim in Arizona ASP .Net 4 08-23-2005 11:29 PM
pass values back to parent window =?Utf-8?B?bG91aXNlIHJhaXNiZWNr?= ASP .Net 2 12-07-2004 05:13 PM
Pass from parent to child, then update parent with child value... Noel Dolan Javascript 0 07-18-2004 05:52 PM



Advertisments