the code works just fine and it includes the output from the subindex.php file in the target div, but the problem is that the javascript files which i’m including in the index file is not applied on the output
and when i include the javascript files with the output again the whole page is like reloading all the time.
so my question is, is there any way to apply the javascript on the output data ??
it’s like a style of the page in JQuery like this code
$("#main-nav li ul").hide();
$("#main-nav li a.current").parent().find("ul").slideToggle("slow");
$("#main-nav li a.nav-top-item").click(
function () {
$(this).parent().siblings().find("ul").slideUp("normal");
$(this).next().slideToggle("normal");
return false;
}
);
$("#main-nav li a.no-submenu").click(
function () {
window.location.href=(this.href);
return false;
}
);
cuz it turned to be unsuccessful to include my js files into the ajax call it worked well but some other functions stopped and i’m using the ajax call in another js file