Closed Bug 215598 Opened 22 years ago Closed 22 years ago

image submit buttons cause two http hits

Categories

(Core :: DOM: Core & HTML, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: parkflys, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030731 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030731 if i have a form with the submit button as an image, the page is hit twice. It does not require you to click the button, but just loading a page with a form thats submit button is an image type. I get twp hits in my server logs when the page loads. I tried firebird, and that was ok, but that was a bit older, and IE is ok too, so its not my page/code. Reproducible: Always Steps to Reproduce: 1.create form with image submit button 2.load page 3. Expected Results: only cause 1 hit in the logs
Summary: image submit buttons cause to http hits → image submit buttons cause two http hits
This looks like bug 209242.... is this a problem with a current build?
no, it has nothing to do with history, if you hit the page for the first time, with an img submit button, it will generate 2 hits in the logs, and simply removing the img button, it will generate only 1. It is also not an issue of javascript actions, there is no js associated with the form/button.
If you read bug 209242, you will see that the history issue is totally irrelevant to the actual bug there. In particular, see bug 209242 comment 18. So again, is this still a problem in a current build? If so, could you attach an HTML file that reproduces the problem to this bug report?
I'm sorry, I didnt see that, yes that does seem to be very similar to my problem, though, the image is not non-existant, it sucessfully loads the image, but still makes an extra hit on the page. This build is from july 31, about a week and a half ago.
Yes, I realize when your build is from. ;) Could you test one from sometime today or yesterday?
I just tried the following document, by the way: <html> <body> <input src="test.gif" type="image"> </body> </html> and I see exactly two HTTP requests -- one for the page, one for the gif, when I load this in a 2003-07-27-05 nightly or in a debug build from this morning. I get the same result when I switch the order of the two attributes. So I would much appreciate your uploading a testcase that shows the problem....
I will test it all on a new build when i'm back at work monday, where the problem was observed (intranet)
rebuilt this morning with an Aug. 9th snap. Everything looks normal now. Only getting one hit as expected.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.