PDA

View Full Version : Passing values form open window or popup back to main page?



belcherman
Sep 19th, 2007, 07:11 AM
Main page "Form.asp" has a 2 textboxes:
ClientVendorID
ClientVendorName

What happens is I have a link that when clicked sends the values in these
fields to a newly opened page or popup.
http:// Someplace
/FormDetails.asp?ClientSSN=00-00-00&ClientName=SomeClient,%20&Payee=SomePaye
e

Popup page "FormDetails:
This runs a Stored Procedure and pulls up many pairs and displays them in
clickable links:
ClientVendorID
ClientVendorName

The popup or opened new page has links that look like this:
http://Someplace/Form.asp?VV_VendorID=SomeID&VV_VendorName=SomeName&Payee=So
mePayee&Postback=VenderFormDetails

What I am trying to do is when a link is clicked, These 2 textbox values get
sent back to "Form.asp" and updates those 2 textboxes with those values
passed.

This is where I am stuck. When the link is clicked now the popup or newer
sub window sends it back to the page but in THAT WINDOW.

Fang
Sep 19th, 2007, 08:46 AM
Using URL's will open even more windows. Is this the intention?
Or just passing values:

// using link in popup
// element value in Form.asp = element value in popup
opener.document.formName.elementName.value = document.formName.elementName.value;

belcherman
Sep 19th, 2007, 04:01 PM
I think it is best done with a popup. What happens is the popup then generates links and when one is clicked the values are passed back to teh textboxes on the calling page and they are refreshed to the new values. Sounds so easy but not oging that way :)

Fang
Sep 19th, 2007, 04:55 PM
That's what the code would do.