D
Dan Davis
I'm having an issue that I can only produce in IE
I develop web sites using Cold Fusion, Perl, etc. and discovered a problem
that I can reproduce in IE (6 | 7) on IIS or Apache, with any language. If
I redirect (302) to any page targeting a named anchor, #top, IE thinks that
the named anchor is part of the page URL and any other click to local named
anchors forces a page reload.
Example:
In the following page, I've created a window.onunload() to
alert('Unloading...'); to detect the reloading.
http://www.blueletterbible.org/dan.html
Navigating to named anchors works as desired.
This simple script redirects you to that same page, but anchored to the
first, #1, named anchor.
http://www.blueletterbible.org/cgi-bin/dan.pl
If you follow any local named anchors, you'll see IE reloads the page as if
it were navigating to a new document and then all is normal again. By
altering the script to only redirect to the page, with no anchor, everything
works as desired.
I can produce the same problem with Cold Fusion or any other language
regardless of the platform of the web service or the browser. It only
happens to me with IE and not other tested browser.
Is this a known issue and are there any decent work arounds? No, not using
named anchors as a target of redirection is not a work around for us.
-Dan
I develop web sites using Cold Fusion, Perl, etc. and discovered a problem
that I can reproduce in IE (6 | 7) on IIS or Apache, with any language. If
I redirect (302) to any page targeting a named anchor, #top, IE thinks that
the named anchor is part of the page URL and any other click to local named
anchors forces a page reload.
Example:
In the following page, I've created a window.onunload() to
alert('Unloading...'); to detect the reloading.
http://www.blueletterbible.org/dan.html
Navigating to named anchors works as desired.
This simple script redirects you to that same page, but anchored to the
first, #1, named anchor.
http://www.blueletterbible.org/cgi-bin/dan.pl
If you follow any local named anchors, you'll see IE reloads the page as if
it were navigating to a new document and then all is normal again. By
altering the script to only redirect to the page, with no anchor, everything
works as desired.
I can produce the same problem with Cold Fusion or any other language
regardless of the platform of the web service or the browser. It only
happens to me with IE and not other tested browser.
Is this a known issue and are there any decent work arounds? No, not using
named anchors as a target of redirection is not a work around for us.
-Dan