Forum Moderators: open
If someone uses our product search boxes (with graphic Submit buttons), then the URL ends up having submit.x=#&submit.y=# in it, where the # is generally the location of their click on the graphic. If they hit Enter, then these equal 0.
In these instances, these fields are not useful to me, and merely add junk to what would otherwise be useful URLs.
How can I continue to use graphic submit buttons, and have the searchbox contents appear in the URL, but not have the submit.x and submit.y fields?
When a pointing device is used to click on the image, the form is submitted and the click coordinates passed to the server. The x value is measured in pixels from the left of the image, and the y value in pixels from the top of the image. The submitted data includes name.x=x-value and name.y=y-value where "name" is the value of the name attribute, and x-value and y-value are the x and y coordinate values, respectively.
you could probably use the click event to trigger some javascript to scrub the x,y from the submit when unnecessary.
If you have a type="image" submit button I'm not sure that it's going to be possible to 'scrub' the x,y from the response? If, however, you had a normal IMG with an onclick event that called the forms .submit() method then that may work. BUT you are then relying on JavaScript to be able to submit your form.
IMHO I would simply ignore these extra parameters since I guess you aren't checking for 'submit' in your search script?
It's not a showstopper, of course, and my search script does ignore whatever values come via those fields.
So here's why I care: we see 1000's of searches every day. That's a ton of real IP addresses at any time of day loading relevant URLs for their desires, all of which are noticed by Google Analytics (and, in many cases, Google Toolbar). These URLs may not be linked-to, but they still can (and do) appear in the SERPs.
One of the Signals of Quality is shorter, simpler, easier-to-type URLs, without irrelevant stuff in them. With that in mind it's easy to see which of these looks better:
If the latter is possible, that's where I want to be.