I use this:

function CopyValue(ChangeWhat,ValueToCopy,aForm) {

changer =
"window.opener.document."+ aForm + "." + ChangeWhat + ".value='" + ValueToCopy.toUpperCase() + "'";

submitme = "window.opener.document." + aForm + ".submit()";



Important is the first 2 lines, about the 'changer'. The other line will automatically submit the form. I think you don't want this.

In the help window (with your list of codes and descriptions), put this in each option:

<a href=javascript:CopyValue('<ChangeWhat>','<Value>','<FormName>')> Code & description </a>

<ChangeWhat> is the name of the field in the form
<Value> is what you want to put there
<FormName> is the name of the form

For an example, see my website http://www.cyclades-info.com. Press the question mark in the search form.

If you need more help, mail me.


Josť Luis wrote:
I need know if 's possible show a mysql table like when you are entering
some code product, you press an icon with ? (by example) and there appear
the window showing the table with the code and the description and the you
choose and pick some item from that table and the code pass to the input
field, I saw this on asp but I think there it's possible create some on php
with javascript, I am not sure what is the name of this technic.



Josť Luis Palacios Vergara

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to