> 2 - show your code [the relevant working part, that is]
Thank you first. The textbox:
<td><input type="text"
id="txtItem_no{$xx}"
name="txtItem_no{$xx}"
value="{$dtl_array.$ileft.item_no}"
size="10"
onchange="this.form.submit();" />
<a href="#"
onclick="window.open('cnst_141.php?varname=txtItem _no{$xx}',
'cnst_141','width=700,height=550,left=10,top=20'); "
class="button">?</a>
My current solution in the popup (cnst_141) window after the selected
value was clicked:
function returnitem(thevarname, thevalue) {
var parentform = window.opener.document;
var thevar = parentform.getElementById(thevarname);
if (thevar) {
thevar.value=thevalue;
thevar.form.submit();
}
window.close();
}
I am wondering whether there is a better way out...
--
iTech Consulting Services Limited
Expert of ePOS solutions
Website:
http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288