Hello! I will try to explain this as clearly as possible. I have a window that is currently open, when a user types in a value and clicks on the 'find' button this pops up a new window and displays possible matches all with radio buttons. Now my problem is when the user clicks on the radio button and hits the 'accept' button, the window closes, but I can't seem to pass the (radio)selection value back to the original window. I want to use this value to do queries from my database. Here's the function that closes the window...
<SCRIPT LANGUAGE=vbscript>
function closewindow()
dim value
dim i
for i=0 to document.all.item("BlockMatch".length-1
if document.all.item("BlockMatch",i).checked=true then
value=document.all.item("BlockMatch",i).value
window.opener.document.all.item("FoundBlock".value=value
exit for
end if
next
window.close
end function
</script>
Right now I have FoundBlock as a hidden field in the original window. I hope this make some sense. Thanks for any help!!!
<SCRIPT LANGUAGE=vbscript>
function closewindow()
dim value
dim i
for i=0 to document.all.item("BlockMatch".length-1
if document.all.item("BlockMatch",i).checked=true then
value=document.all.item("BlockMatch",i).value
window.opener.document.all.item("FoundBlock".value=value
exit for
end if
next
window.close
end function
</script>
Right now I have FoundBlock as a hidden field in the original window. I hope this make some sense. Thanks for any help!!!