473,320 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

urgent-how to pass values into the 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 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!
Jul 22 '05 #1
1 2096
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)

Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Heros | last post by:
I had losed my serial key for .net Visual Studio Professional, DVD ROM with the trial version, 60 days, and need urgent to use it to install .net Visual Basic. Please, its urgent. Thanks.
2
by: learner | last post by:
Hi, In a page, i have many links. I have some functions in a global file which is included in all linked pages. I want to have a reference to a window which is to be opened on clicking one link...
8
by: Mike | last post by:
Hello, I have a few rather urgent questions that I hope someone can help with (I need to figure this out prior to a meeting tomorrow.) First, a bit of background: The company I work for is...
28
by: Tamir Khason | last post by:
Follwing the struct: public struct TpSomeMsgRep { public uint SomeId;
0
by: Amratash | last post by:
Hi, I needyour help.Its urgent. My main aim is to log the site activities in a database at runtime. I'm using W3C Extended Log File format for logging information. I can use ODBC Logging directly...
8
by: Tim::.. | last post by:
Can someone please tell me why I keep getting the following error for some of my web application users but not others??? Even though the application runs from a central webserver??? Thanks for...
16
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
7
by: zeyais | last post by:
Here is my HTML: <style> ..leftcolumn{float:left;width:300px;border: 1px solid #ccc} ..rtcolumn{float:left;width:600px;border: 1px solid #ccc} </style> <body> <div class="leftcolumn"...
1
by: alok sengar | last post by:
hi, I have already tried this URL's code "http://www.java2s.com/Code/CSharp/Network/SimpleSNMP.htm" but I am getting error when i am creating a UDP type Socket and recieving packet from this...
3
by: N. Spiker | last post by:
I am attempting to receive a single TCP packet with some text ending with carriage return and line feed characters. When the text is send and the packet has the urgent flag set, the text read from...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.