If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Insert values in the first page from the second page

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-08-06, 12:53
shiri shiri is offline
Registered User
 
Join Date: May 2004
Posts: 3
Insert values in the first page from the second page

I have page 1, that has a drop down box with codes. When a code is selected, it opens another page with code descriptions in a drop down.

This is what I an trying to do:

On selecting a description option in page 2 drop down, page 2 should be closed and the selected value should be inserted in page 1 drop down. How could I do this in asp? Please help.
Reply With Quote
  #2 (permalink)  
Old 02-09-06, 05:26
dimis2500 dimis2500 is offline
Registered User
 
Join Date: Jan 2005
Posts: 362
If I understand you need something with this, it add a text from the scnd page to the first.
Because you use drop down box, you have to change it .
You need at scnd this at form.
Code:
<INPUT type="button" value="" onClick="postdata();self.close();"

Code:
<!--
function postdata() {
		// 
var oldval = top.opener.document.form.some.value;
		
top.opener.document.form.some.value= "";
top.opener.document.form.some.value = 
oldval +  document.form.some.value;
		oldval = "";
		
	}

// -->
</script>
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On