[PATCH] Input type=image submission

Ralf Hoelzer ralf at well.com
Tue Jun 17 13:02:33 BST 2003


The attached patch is my attempt to fix a bug on my.advance.de. The login
form can only be submitted by clicking on the "Login" buttton, which is an 
"input type=image" button. If you submit by pressing enter, you will get an
error message from their site. 

This happens, because Konqueror only encodes the Image coordinates into the 
form variables if the image is clicked on. If you submit a form in a 
different way (such as pressing enter) the coordinates (formname.x  and 
formname.y) are left out. Both Mozilla and IE send formname.x=0 and 
formname.y=0 in this case.

The HTML specs don't say anything about this. But not sending anything will
break sites like my.advance.de, because they expect those fields to be there.

regards,

Ralf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imagesubmit.patch
Type: text/x-diff
Size: 1910 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20030617/dbeba5f1/attachment.patch>


More information about the kfm-devel mailing list