W3C home > Mailing lists > Public > www-talk@w3.org > November to December 1999

fragments, querystrings, and IE5

From: David Perrell <davidp@earthlink.net>
Date: Thu, 04 Nov 1999 11:57:09 -0800
To: www-talk <www-talk@w3.org>
Message-id: <0b6201bf26fe$c7e0a440$15a8a8c0@DPER>
I have an HTML page with anchors that link to a server-side
script that produces a very long form. The URL for the target
script includes a querystring and a fragment identifier, e.g.:

   <a href="addstuff.asp?ID=999#name">Add items</a>

This works inasmuch as the target page is displayed at the
correct position in the form.

Within the form are anchors with URLs containing ONLY fragment
identifiers, e.g:

   <div><a href="#top"><img src="toparrow"></a></div>

The problem is that IE5 loses the "#" in the fragment URL, so
that the URL that IE5 links to when the anchor is clicked on
looks like this:

   http://www.this.com/addstuff.asp?ID=999top

This causes the page to be reloaded, and the ID number plus
any changes made to the form are lost.

Is there something 'illegal' about what I'm doing or is this
simply an IE5 bug?

David Perrell
Received on Thursday, 4 November 1999 15:03:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:24 GMT