Hello,
This my javascript :-
<script type ="text/javascript">
$(function()
{
$("#tabs").tabs({ cache: true ,fx: { opacity: 'toggle' }});
});
</script>
And this is my html which loads php file using ajax :-
<ul>
<li><a href="#tab1">General</a></li>
<li><a href="<?php echo base_url() . 'Admin/Messages.php' ?>">Messages</a></li>
<li><a href="<?php echo base_url() . 'Admin/Pics.php' ?>">Pics</a></li>
<li><a href="<?php echo base_url() . 'Admin/Facilities.php' ?>">Facilities</a></li>
</ul>
The question i want to know is when Messages.php is loaded does the javascript onload event fire? I want to know because i want to take my textarea and convert it into editor. However i am not able to capture window.onload event :-
window.onload = function(){
alert('hello');
}
and further if i write something in :-
$(function(){
}
It works in Opera and IE but sometimes doesn't work sometimes. To sum, how do i capture window.onload in the above situation?
EDIT
Looks like $(function(){ } seems to be working, the problem is with fx: { opacity: 'toggle' }. When i remove effect, it works fine.
Thanks in advance :)