title: Calling function in parent window after closing child window
body: <p>In my application I need to call a function in the parent window after closing the child window.</p>
  
  <p>The calling is done successfully but in that function I also post a value from a text box in the parent window.</p>
  
  <p>When I post the value from the text box it alerts 'undefined'.</p>
  
  <p>This is the function for the child window after closing the child window:</p>
  
  <pre><code>function CallParentWindowFunction()
  {
      window.opener.ParentWindowFunction();
      return false;
  }
  </code></pre>
  
  <p>This is the function in the parent window:</p>
  
  <pre><code>function ParentWindowFunction()
  {
      var hidadinfoid = $("#hidadinfoid").val();
      alert(hidadinfoid);
  }
  </code></pre>
  
  <p>This alerts 'undefined'.</p>
  
  <p>This is the html input box in parent window:</p>
  
  <pre><code>&lt;input type="hidden" name="hidadinfoid" value="12" /&gt;
  </code></pre>
  
  <p>Where is the mistake in my code?</p>