#223 ✓invalid
Taylor Hughes

Form.request includes #anchor from form's action

Reported by Taylor Hughes | July 17th, 2008 @ 02:29 AM

So Form.request generates an Ajax.Request using the form's action attribute, but includes the #anchor at the end if there is one. The problem is that IE7 (possibly IE6 also?) appears to actually submit the #anchor as part of the last GET parameter.

So, say you have:

<form id="f" action="/whatever?param=value#comments">

On the server side, you get request.GET['param'] => "value#comments", which obviously isn't ideal.

In Form.request, adding:

if (action.include('#'))
  action = action.replace(/#.+$/,'');

... cleared up the issue for me.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket