Hey,
i have a window, that opens a window that lets the user enter a new sale into my web based inventory system. Now, before the user had to scroll through a list of customers and then choose the one that they want the sale attributed to. It was long and a waste of time. So now i have a search function (a link that opens a new popup with the search in it), once the user searches the database and finds the customer that they want to pick and clicks a button, i want the script to select the customer from the list in the second window. Here’s a diagram to help me explain:
window 1)main window-user clicks add new sale
window 2 opens
window 2)user enter in some info, clicks the search button
window 3 opens
window 3)after finding the customer, user clicks go and script selects the customer in the select box in window 2.
i thought that i might get it done with:
parent.Myform.myselect.options[myoptionIndex].selected = true;
but it doesn;t work and i havn’t been able to find anything really usful for my skill level in the tutorials and books that i have been reading on-line. Also i only need this to work in firefox if that helps any. Thanks in advance.