Hi,
I have just overcome a similar problem in which I had an input box which accepted the staff id of an employee, upon entering a valid staff id in this box, the onchange handler would fire and select the corresponding department that the employee works in from a dropdown list. This worked fine but, as with your problem, when I added the ability for the user to select an employee from a drop down list in a pop-up window, I could not get the onchange event of the input box to fire.
I got around it by firing the formHandler function on the main page just before closing the calling page. Here is my formHandler function which just reloads the page and uses the querystring to pass the contents of my text box:
function formHandler(theForm){
//on the main page
if (login.Text1.value.length==6){
var URL = "default.asp?fired=yes&id="+document.forms(0).elements('Text1').value+"&date="+document.forms(0).elements('Text2').value;
window.location.href = URL;
}
And just before I close the pop-up window I invoke my function with:
'In the popup window
response.write"<script language='javascript'>window.opener.document.login.Text1.value=""" & strSelection & """</script>"
response.write"<script language='javascript'>window.opener.formHandler(window.opener.document.forms[0]);</script>"
response.write "<script language='javascript'>window.close();</script>"
Enter your message below
Sign in or Join us (it's free).