Results 1 to 3 of 3

Thread: AJAX Problem in IE

  1. #1
    Join Date
    May 2007
    Posts
    71
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default AJAX Problem in IE

    1) Script Title: Dynamic Ajax Content

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...jaxcontent.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.

    Thanks.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You could try adding a command to scroll to the top of the page:

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

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    May 2007
    Posts
    71
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thanks!

    Wow, that was easy. Thank you so much, that works perfect.

    -Mark

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •