Bug 86727 - [testcase] onBlur method not run for <input type="file">
Summary: [testcase] onBlur method not run for <input type="file">
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: khtml forms (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-06 21:44 UTC by Bjorn Harvold
Modified: 2008-04-13 23:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Testcase attached (755 bytes, text/html)
2005-06-15 13:14 UTC, Tommi Tervo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bjorn Harvold 2004-08-06 21:44:19 UTC
Version:           3.2.0 (using KDE 3.2 BRANCH >= 20040204, Mandrake Linux Cooker i586 - Cooker)
Compiler:          gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)
OS:                Linux (i686) release 2.6.3-4mdk

When posting this I saw there were many closed and resolved issues regarding multipart/form-data bugs. I think this is a new one:

I want to populate a hidden field with the path from the file I want to upload. Once I've selected a file and blur the file  field I want the Javascript method to run. It works on IE and Mozilla. Nothing happens with Konqueror. The Javascript method is never hit. This ONLY happens with multipart/form-data.

HTML
================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script language="javascript">
	function setHiddenFieldName(elem) {
		var curForm = document.form1;
		
		if (elem.value != '') {
		  curForm.hiddenField.value = elem.value;
		
		  alert(curForm.hiddenField.value);
		}
	}
</script>
</head>

<body>
<form action="something" method="post" enctype="multipart/form-data" name="form1">
  <p>
    <input type="hidden" name="hiddenField">
</p>  
  <p>
    <input type="file" name="file" onBlur="setHiddenFieldName(this)">
</p>
</form>
</body>
</html>
=============================
Comment 1 Tommi Tervo 2005-06-15 13:14:44 UTC
Created attachment 11463 [details]
Testcase attached
Comment 2 Philip Rodrigues 2006-08-30 14:20:36 UTC
AFAICT, what's actually happening is that Konq isn't running the onBlur command at all, regardless of whether the multipart/form-data is set. Retitling to reflect this
Comment 3 Michael Leupold 2008-04-06 15:49:50 UTC
testcase works on 3.5.9 as well as on trunk r794020.
Comment 4 FiNeX 2008-04-07 17:57:39 UTC
So could this bug be closed?
Comment 5 Michael Leupold 2008-04-13 23:34:44 UTC
yes. closing it right now.