hi all, first im sorry about my poor english..
ok, i have 3 page with different concept/layout/animation
im use prototype & scriptaculous
i have this in my navigation:
<ul>
<li><a href="#page1" id="page1" onClick="showPage(page1);">PAGE1</a></li>
<li><a href="#page2" id="page2" onClick="showPage('page2');">PAGE2</a></li>
</ul>
and this is in my js:
windows.location.hash: 'web';
function showPage() {
startloading();
var url: '/localhost/page2'+web;
new Ajax.Updater('maincontent', 'page2', { method: 'get' });
finishloading();
}
the question & problem are:
- why in windows location hash is still: /localhost/page1/#page2 with or without if i use var url?
- all the animation in page 2 doesn't work, because i didn't put the header, but if put i it, i got double header and still the animation want work either.
can anybody give me the solution?
thank you very much.