<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Clear upload file input field</title>
	<atom:link href="http://gusiev.com/2009/04/clear-upload-file-input-field/feed/" rel="self" type="application/rss+xml" />
	<link>http://gusiev.com/2009/04/clear-upload-file-input-field/</link>
	<description>How to make your web application</description>
	<pubDate>Fri, 12 Mar 2010 10:42:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: delijah</title>
		<link>http://gusiev.com/2009/04/clear-upload-file-input-field/#comment-140</link>
		<dc:creator>delijah</dc:creator>
		<pubDate>Thu, 04 Mar 2010 12:34:57 +0000</pubDate>
		<guid isPermaLink="false">http://gusiev.com/?p=11#comment-140</guid>
		<description>Another solution (will keep events):

function clearFileInputField(elem) {
	$elem = $(elem);
	$elem.replaceWith($elem.clone(true));
}</description>
		<content:encoded><![CDATA[Another solution (will keep events):

function clearFileInputField(elem) {
<br />	$elem = $(elem);
<br />	$elem.replaceWith($elem.clone(true));
<br />}
]]></content:encoded>
	</item>
	<item>
		<title>By: Diego</title>
		<link>http://gusiev.com/2009/04/clear-upload-file-input-field/#comment-139</link>
		<dc:creator>Diego</dc:creator>
		<pubDate>Thu, 25 Feb 2010 15:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://gusiev.com/?p=11#comment-139</guid>
		<description>Doesn't work with ASP.NET AJAX.</description>
		<content:encoded><![CDATA[Doesn&#8217;t work with ASP.NET AJAX.
]]></content:encoded>
	</item>
	<item>
		<title>By: Achshar</title>
		<link>http://gusiev.com/2009/04/clear-upload-file-input-field/#comment-135</link>
		<dc:creator>Achshar</dc:creator>
		<pubDate>Fri, 12 Feb 2010 21:18:43 +0000</pubDate>
		<guid isPermaLink="false">http://gusiev.com/?p=11#comment-135</guid>
		<description>Thanks! :)</description>
		<content:encoded><![CDATA[Thanks! <img src='http://gusiev.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> 
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Estévez</title>
		<link>http://gusiev.com/2009/04/clear-upload-file-input-field/#comment-133</link>
		<dc:creator>Daniel Estévez</dc:creator>
		<pubDate>Fri, 29 Jan 2010 09:53:34 +0000</pubDate>
		<guid isPermaLink="false">http://gusiev.com/?p=11#comment-133</guid>
		<description>Seems as weird as simple... and it works!

Perfect! Thanks a lot!</description>
		<content:encoded><![CDATA[Seems as weird as simple&#8230; and it works!

Perfect! Thanks a lot!
]]></content:encoded>
	</item>
	<item>
		<title>By: helie</title>
		<link>http://gusiev.com/2009/04/clear-upload-file-input-field/#comment-132</link>
		<dc:creator>helie</dc:creator>
		<pubDate>Fri, 29 Jan 2010 05:58:12 +0000</pubDate>
		<guid isPermaLink="false">http://gusiev.com/?p=11#comment-132</guid>
		<description>great piece of cod...thanks o alot.....</description>
		<content:encoded><![CDATA[great piece of cod&#8230;thanks o alot&#8230;..
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Wiggins</title>
		<link>http://gusiev.com/2009/04/clear-upload-file-input-field/#comment-127</link>
		<dc:creator>Jim Wiggins</dc:creator>
		<pubDate>Sat, 02 Jan 2010 17:47:07 +0000</pubDate>
		<guid isPermaLink="false">http://gusiev.com/?p=11#comment-127</guid>
		<description>Great idea! Works in IE 6, 7, 8 and in FF 3.</description>
		<content:encoded><![CDATA[Great idea! Works in IE 6, 7, 8 and in FF 3.
]]></content:encoded>
	</item>
	<item>
		<title>By: Bijesh</title>
		<link>http://gusiev.com/2009/04/clear-upload-file-input-field/#comment-121</link>
		<dc:creator>Bijesh</dc:creator>
		<pubDate>Tue, 15 Dec 2009 06:28:33 +0000</pubDate>
		<guid isPermaLink="false">http://gusiev.com/?p=11#comment-121</guid>
		<description>Hi I am using a structure like following
---------------------------------------------------

    Attachment1
    
        
        
            
                
            
        
    


  //the script to clear the input  is like
hereupload.id will be the upload objects id ie,upload1 in this case
    function clearUploadInput(upload)
    {
    upload.ownerDocument.getElementById(upload.id + "_Form").innerHTML = upload.ownerDocument.getElementById(upload.id + "_Form").innerHTML;
    }
-----------------------------------------------------
redrawing the inner HTML is a good hack,it will work fine in IE,but in non-ie browserslike firefox and chrome , it is causing the entire form to redraw(if we redraw the entire object(upload)),and It is not working for the second time with the mentioned code</description>
		<content:encoded><![CDATA[Hi I am using a structure like following
<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;

    Attachment1

        

            

            

    

<br />  //the script to clear the input  is like
<br />hereupload.id will be the upload objects id ie,upload1 in this case
<br />    function clearUploadInput(upload)
<br />    {
<br />    upload.ownerDocument.getElementById(upload.id + &#8220;_Form&#8221;).innerHTML = upload.ownerDocument.getElementById(upload.id + &#8220;_Form&#8221;).innerHTML;
<br />    }
<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
<br />redrawing the inner HTML is a good hack,it will work fine in IE,but in non-ie browserslike firefox and chrome , it is causing the entire form to redraw(if we redraw the entire object(upload)),and It is not working for the second time with the mentioned code
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas Grilly</title>
		<link>http://gusiev.com/2009/04/clear-upload-file-input-field/#comment-116</link>
		<dc:creator>Nicolas Grilly</dc:creator>
		<pubDate>Tue, 24 Nov 2009 15:09:50 +0000</pubDate>
		<guid isPermaLink="false">http://gusiev.com/?p=11#comment-116</guid>
		<description>Very clever! Thank you!</description>
		<content:encoded><![CDATA[Very clever! Thank you!
]]></content:encoded>
	</item>
	<item>
		<title>By: alejo</title>
		<link>http://gusiev.com/2009/04/clear-upload-file-input-field/#comment-112</link>
		<dc:creator>alejo</dc:creator>
		<pubDate>Fri, 13 Nov 2009 01:37:57 +0000</pubDate>
		<guid isPermaLink="false">http://gusiev.com/?p=11#comment-112</guid>
		<description>Thank you Bogdan for starting the post!
Angel your solution was what I expected.</description>
		<content:encoded><![CDATA[Thank you Bogdan for starting the post!
<br />Angel your solution was what I expected.
]]></content:encoded>
	</item>
	<item>
		<title>By: Vaman</title>
		<link>http://gusiev.com/2009/04/clear-upload-file-input-field/#comment-110</link>
		<dc:creator>Vaman</dc:creator>
		<pubDate>Tue, 10 Nov 2009 12:21:41 +0000</pubDate>
		<guid isPermaLink="false">http://gusiev.com/?p=11#comment-110</guid>
		<description>Thanks A lot for the Wonderful piece of code :)
U Rock!</description>
		<content:encoded><![CDATA[Thanks A lot for the Wonderful piece of code <img src='http://gusiev.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <br />U Rock!
]]></content:encoded>
	</item>
</channel>
</rss>
