G
Guest
Using IE6 for XP. I'm testing local web pages and can't get IE to open link
to a named anchor if the anchor is in a file with any extension except HTML
or HTM (such as .ASP, or other exts mapped to type "HTML Document"). For
example,
A HREF="Abc.asp#xyz" .... from any file, or
A HREF="#xyz" .... from within .ASP or other non-HTML file
It just displays a blank white page. BTW, the named anchors aren't empty.
It isn't only ASP. I created a brand new ext (.ASQ) of type "HTML Document"
and copied reg values from HKCR\.html, but it had same problem as ASP.
Note these cases DO work:
- Use 'Open in New Window' (context menu) works fine, even for ASP file.
- Simply rename the (target) file extension to HTML, then it works.
- Use Firefox to open any anchor in any file, new or same window, works fine.
Ran Process Monitor which shows that for ASP file, it thinks the anchor is
part of the filename, i.e., looks for a file named 'C:/Abc.asp#xyz' and
fails. For HTML file, it looks for correct name, 'C:/Abc.html' without the
#xyz.
One thing I noticed - I don't have a 'URL: File protocol' listed under
'Folder Options...File Types', and my HKCR\file key has a "URL protocol"
value but its data is empty. Would this matter?
to a named anchor if the anchor is in a file with any extension except HTML
or HTM (such as .ASP, or other exts mapped to type "HTML Document"). For
example,
A HREF="Abc.asp#xyz" .... from any file, or
A HREF="#xyz" .... from within .ASP or other non-HTML file
It just displays a blank white page. BTW, the named anchors aren't empty.
It isn't only ASP. I created a brand new ext (.ASQ) of type "HTML Document"
and copied reg values from HKCR\.html, but it had same problem as ASP.
Note these cases DO work:
- Use 'Open in New Window' (context menu) works fine, even for ASP file.
- Simply rename the (target) file extension to HTML, then it works.
- Use Firefox to open any anchor in any file, new or same window, works fine.
Ran Process Monitor which shows that for ASP file, it thinks the anchor is
part of the filename, i.e., looks for a file named 'C:/Abc.asp#xyz' and
fails. For HTML file, it looks for correct name, 'C:/Abc.html' without the
#xyz.
One thing I noticed - I don't have a 'URL: File protocol' listed under
'Folder Options...File Types', and my HKCR\file key has a "URL protocol"
value but its data is empty. Would this matter?