Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows and Parameters

Status
Not open for further replies.

pancake

Programmer
Aug 21, 2001
88
GB
Dear all,

I have a form with a field in it. I also have a link which opens up another window, then I select a colour I want from a database query in the second window, and the field should then be populated with my selection from the second window.

This is the line I am using to open up the new window

<td width=&quot;50%&quot;><input TYPE=&quot;TEXT&quot; NAME=&quot;Colours1&quot; SIZE=&quot;19&quot; VALUE=&quot;<%=FP_FieldHTML(fp_rs,&quot;Colours1&quot;)%>&quot;><a href=&quot;../Colours/selectcolour.asp&quot; onClick=&quot;window.dateField = document.modifyform.Colours1;colour = window.open('../colours/selectcolour.asp','cal','WIDTH=500,HEIGHT=600');return false&quot;><img src=&quot;../colourbutton.gif&quot; border=0></a>

I know it is possible to pass the colour back to the Colours1 field (as this is 'borrowed' from another of our internet pages) but how do I do this, and then close the colour selection window ?

Thanks in Advance
 
use something like this:
Code:
window.opener.document.formname.fieldname.value = &quot;whatever&quot;;
self.close();
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top