Hi All,
I have a jsp(1) that when a button is clicked brings up jsp(2) which is a search page. Jsp(2) shows a list and when a user clicks on an item in the list jsp(2) closes and should populate a field on jsp(1). It is partially working, I am gettin "undefined" in the jsp(1) field instead of the user's selection. Can someone take a look and see if they can spot the problem? Thanks!
<script>
function closeSearch(sourceobj, destinationObj){
destinationObj.value=sourceobj.value;
window.close();
}
function openSearch(obj){
window.open("AcctSearch.jsp?newpartner=" + obj.value,"AcctSearch", "width=500 height=300, menubar=no,resizable=no,scrollbars=yes")
}
</script>
out.println("<td class=\"tabletextcol\"><a href=\"javascript:void(0)\"onClick=\"parent.closeSearch(search,opener.document.all.newpartner)\"><TEXTAREA name=\"search\">" + account.getOrg() + "</TEXTAREA></a></td>");
I have a jsp(1) that when a button is clicked brings up jsp(2) which is a search page. Jsp(2) shows a list and when a user clicks on an item in the list jsp(2) closes and should populate a field on jsp(1). It is partially working, I am gettin "undefined" in the jsp(1) field instead of the user's selection. Can someone take a look and see if they can spot the problem? Thanks!
<script>
function closeSearch(sourceobj, destinationObj){
destinationObj.value=sourceobj.value;
window.close();
}
function openSearch(obj){
window.open("AcctSearch.jsp?newpartner=" + obj.value,"AcctSearch", "width=500 height=300, menubar=no,resizable=no,scrollbars=yes")
}
</script>
out.println("<td class=\"tabletextcol\"><a href=\"javascript:void(0)\"onClick=\"parent.closeSearch(search,opener.document.all.newpartner)\"><TEXTAREA name=\"search\">" + account.getOrg() + "</TEXTAREA></a></td>");