hi, maybe de problem is the script inside the page you call with ajax.
try this :
<script type="text/javascript">
$(document).ready(function()
{
$('#nav a').click(function()
{
$('#contentHolder').load('content.html #toLoad',{},function(data){
$(document).ready(function()
{
$('#nav a').click(function()
{
$('#contentHolder').load('content.html #toLoad',{},function(data){
$('#contentDiv').fadeOut('slow', function() {} );
or
$(data).filter(#contentDiv').fadeOut('slow', function() {} );
//here put all code for page you call with ajax
});
return false;
});
});
return false;
});
});
and remove this
<script type="text/javascript">
$('#contentDiv').fadeOut('slow', function() {} );
</script>
--
Atte.
Carlos Becar.
$('#contentDiv').fadeOut('slow', function() {} );
</script>
--
Atte.
Carlos Becar.
No comments:
Post a Comment