jquery tabs ajax problem
<p>This my javascript :-</p>

<pre><code>&lt;script type ="text/javascript"&gt;
    $(function()
    {
$("#tabs").tabs({ cache: true ,fx: { opacity: 'toggle' }});


    });

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

<p>And this is my html which loads php file using ajax :-</p>

<pre><code>  &lt;ul&gt;
            &lt;li&gt;&lt;a href="#tab1"&gt;General&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="&lt;?php echo base_url() . 'Admin/Messages.php' ?&gt;"&gt;Messages&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="&lt;?php echo base_url() . 'Admin/Pics.php' ?&gt;"&gt;Pics&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="&lt;?php echo base_url() . 'Admin/Facilities.php' ?&gt;"&gt;Facilities&lt;/a&gt;&lt;/li&gt;

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

<p>The question i want to know is when <code>Messages.php</code> is loaded does the javascript onload event fire? I want to know because i want to take my <code>textarea</code> and convert it into editor. However i am not able to capture <code>window.onload</code> event :-</p>

<pre><code>   window.onload = function(){
        alert('hello');
    }
</code></pre>

<p>and further if i write something in :-</p>

<pre><code> $(function(){
}
</code></pre>

<p>It works in Opera and IE but sometimes doesn't work sometimes. To sum, how do i capture window.onload in the above situation?</p>

<p><strong>EDIT</strong></p>

<p>Looks like <code>$(function(){    }</code> seems to be working, the problem is with <code>fx: { opacity: 'toggle' }</code>. When i remove effect, it works fine.</p>

<p>Thanks in advance :)</p>
