View Full Version : AJAX Problem in IE

05-30-2007, 10:18 PM
1) Script Title: Dynamic Ajax Content

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

3) Describe problem: I am re-working a site that has a flash header with AJAX so that the flash header does not reload every time a user goes to a different page. The problem now lies in the navigation within IE. In Mozilla when a new page is loaded into the DIV the page refreshes to the top displaying the flash header, but in IE the new page loads at the same page location as the page the user was on prior to clicking the link. The website location is http://www.vipnite.com Example (If you scroll down on the index page to any of the links at the bottom if you click on them in Mozilla the new page opens directly under the flash header with the browser redirecting to the top of the page but in IE the new page is just loaded with the page scrolled down. I did some research on IE caching problem and the 'get' function in the script but none of the solutions offered seemed to help this problem for me.

I don't know if I am making any sense but any help would be greatly appreciated.


05-31-2007, 07:38 AM
You could try adding a command to scroll to the top of the page:

<a href="javascript:ajaxpage('test.htm', 'contentarea');window.scrollTo(0,0);">test</a>

05-31-2007, 06:04 PM
Wow, that was easy. Thank you so much, that works perfect.