i try to replicate a js-Ajax exemple from the site http://www.yensdesign.com/tutorials/contentajax/
Is to load a web page into another webpage (external) with a hiding-showing bar - up and down. BUT the new page i'v load is showing BEFORE the bar is hiding the first. So i try to find a way to clear the page before the sliding bar and put a delay to let the bar return back down and show the new page.
At this time i just try to understand SetTimeout func, but wont work. Can you guide me on my SetTimeout fonc and i appreciate some advice to fix the refresh of the new page.
I work with dreamweaver CS3 to open the .JS fileCode:case "external2": content.slideUp("slow"); setTimeout (content.load("external2.html", hideLoading),5000); content.slideDown("slow"); break;