Re: [IUG] Firefox v3.6.3 issue


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
At 02:21 PM 11/17/2010, Alice wrote:
In our catalog, we have a customized search page for Videos/DVDs
http://library.gettysburg.edu/screens/genre.html . When I type in the
word UP in my search box in IE, I get the following info.

http://library.gettysburg.edu/search/X?SEARCH=up&m=g&SORT=D

however when I type in UP in my search box in Firefox v3.6.3, I get this

http://library.gettysburg.edu/search/X?SEARCH=up&image.x=0&image.y=0&ima
ge=SEARCH&m=g&SORT=D

Can anyone tell me why Firefox is sending the extra data string of
&image.x=0&image.y=0&image=SEARCH


In terms of the image.x etc. pieces, because that's is how things work when you use an image to submit a form:

"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."
http://www.w3.org/TR/REC-html40/interact/forms.html#input-control-types

But the reason your search is failing is because your input has a name value, which puts it into the search, and the WebPAC sees that as a search parameter with which it's unfamiliar:

<input name="image" type="image" value="SEARCH" src="/screens/submit.gif" alt="submit" align="middle" width="80" height="40" boarder=0>

...which results in &image=SEARCH in the query, which is what's breaking things (not the image.x= etc. part).

Easiest fix is to get rid of the name attribute for the image input. Another possibility is to make your DVD search page and form more like the music search page.

Bob Duncan


~!~!~!~!~!~!~!~!~!~!~!~!~
Robert E. Duncan
Systems Librarian
Editor of IT Communications
Lafayette College
Easton, PA 18042
duncanr at lafayette dot edu
http://library.lafayette.edu/

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.