Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

hello im trying to create a callback mechanism from two child windows to a paren

ID: 3889351 • Letter: H

Question

hello im trying to create a callback mechanism from two child windows to a parent window when the user clicks the display child 1 button in the parent for callback test window that window is hidden and the chilld 1 window is visible . when the usr clicks the the go back to parent button in the child 1 window the child one window is hidden and the parent for callback test window is visible . the same action occurs for the dsplay child 2 button and the child two window. the parent for callback test window must implement an interface that provides a callback method.

Explanation / Answer

function open_child() { $("#child_succ").val(0); alert($("#child_succ").val()); window.open("child.php","Ratting","width=550,height=300,left=150,top=200,toolbar=1,status=1"); alert($("child_succ").val()); } function test() { alert("called from child window"); }