7

I administer a site, hosted on Yahoo! hosting, which has recently shown a strange behavior: when you visit in IE8, the page loads and is rendered normally, then as soon as it finishes rendering, the browser switches to show its local/internal 404 page. The address bar still shows the site URL.

When I view the site in (as far as I can tell) the same state on my local Apache server, it doesn't do this. This leads me to suspect it may have something to do with server configuration and response headers, but I don't know what that might be.

Is anyone familiar with this behavior?

2
  • It only happens in IE? Not Firefox? Can you share the URL for others to test?
    – James
    Commented Jan 15, 2011 at 7:09
  • Use fiddler to diagnose the problem better if possible (is there an in-browser tool like firebug for IE?). I suspect there is a secondary issue that is occurring such as changing the document href from javascript or using a funny META tag. Perhaps there is a (broken) "frame break" attempt or similar. Without providing source, best I can offer is to carefully inspect the the actual HTML and headers.
    – user166390
    Commented Jan 15, 2011 at 7:10

3 Answers 3

13

I experienced this behavior when using a .htc hack to provide artificial CSS border-radius support.

2
  • Yes! Sorry, I seem to have abandoned this thread, but it turned out to be this. I was using an IE pngfix CSS behavior: call to an htc script. Removing this fixed it (I now have a conditionally-commented JS solution to the PNG issue which fires after DOM loading, so no issue).
    – jongala
    Commented Jan 28, 2011 at 4:11
  • Had the same issue on a site I was working on - this bugger css: behavior: url("/scripts/csshover.htc");
    – A_funs
    Commented Jan 15, 2013 at 6:23
2

I'm not sure what is causing that issue specifically, but you could use a packet capture utility like Wireshark or Fiddler2 to investigate the issue further. Otherwise, it would be helpful if you were to post a link to the site.

1

Your page contains JavaScript code which modifies the DOM while the page is still loading.

See other SO questions, such as here and here.

Solution: place your DOM manipulation code into < body onload> or jquery.ready() to execute after page loading is complete.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.