getting data from child window
<p>I an working on a project and has encountered a problem. please view the following code.  </p>

<pre><code>&lt;iframe name="stus" id="stus" style="display:none;"&gt;&lt;/iframe&gt;
&lt;form name="water" id="water" method="post"  autocomplete="off" action="components/com_pocketsea/assets/new/water.php" target="stus"&gt;
&lt;input type="hidden" id="newwatermark" name="newwatermark"&gt;
&lt;/form&gt;  
&lt;div id="posting"&gt;&lt;/div&gt;
</code></pre>

<p>and the code for water.php is  </p>

<pre><code>&lt;?php
$newwat = $_POST['newwatermark'];
?&gt;
&lt;script type="text/javascript" src="../../js2/jquery.min.js" &gt;&lt;/script&gt;
&lt;script&gt;

 $(document).ready(function(){
$("#posting", window.parent.document).html("&lt;?php echo $newwat; ?&gt;").fadeIn('slow');

 });

&lt;/script&gt;                         
</code></pre>

<p>plz help</p>
