How to use the PHP "include" function after a javascript code, cause when the animation starts it stops because it has to load the php included page. So I want to "include" the page after the animation is ready. How can I do that?
This is my animation: $( ".izkustvo" ).click(function(){ $('#izkus').show(); $(".izkus").switchClass("izkuz", "tvo", 1500, 'easeInExpo').switchClass( "tvo", "zavur6en", 3000, 'easeOutQuart'); });
here is the button and the PHP codes in my 'index' page: <li><a href="index.php?page=izkustvo" class="izkustvo" >izkustvo</a></li>
and if($_GET['page'] == "izkustvo"){ include("pages/karieri.php");