<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Ajax form upload local image file without refresh</title>
	<atom:link href="http://www.fengcool.com/2009/06/ajax-form-upload-local-image-file-without-refresh/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fengcool.com/2009/06/ajax-form-upload-local-image-file-without-refresh/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 11 Feb 2010 00:15:14 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Marco</title>
		<link>http://www.fengcool.com/2009/06/ajax-form-upload-local-image-file-without-refresh/comment-page-1/#comment-5385</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Thu, 11 Feb 2010 00:15:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.fengcool.com/?p=83#comment-5385</guid>
		<description>Hi all, many thanks for the script, i&#039;m testing it but it seems to work only for Firefox. IE can&#039;t show the picture immediatly like FF, i&#039;v to change the focus and come back to the ajax form... 
I tried to change line 24 to
$(&quot;#inp&quot;).bind(($.browser.msie ? &quot;propertychange&quot; : &quot;change&quot;),startUpload);   //bind onchange function to input element

but it works only for the first image... could you help me?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi all, many thanks for the script, i&#8217;m testing it but it seems to work only for Firefox. IE can&#8217;t show the picture immediatly like FF, i&#8217;v to change the focus and come back to the ajax form&#8230;<br />
I tried to change line 24 to<br />
$(&#8221;#inp&#8221;).bind(($.browser.msie ? &#8220;propertychange&#8221; : &#8220;change&#8221;),startUpload);   //bind onchange function to input element</p>
<p>but it works only for the first image&#8230; could you help me?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rick</title>
		<link>http://www.fengcool.com/2009/06/ajax-form-upload-local-image-file-without-refresh/comment-page-1/#comment-5171</link>
		<dc:creator>rick</dc:creator>
		<pubDate>Wed, 06 Jan 2010 02:17:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.fengcool.com/?p=83#comment-5171</guid>
		<description>It sounds weird. Can you post your test url here so I can take a look?

By the way, please make sure this line 
    $(”#test”).bind(’click’,startUpload); 
should place inside of 
    $(document).ready(function(){  ........ });</description>
		<content:encoded><![CDATA[<p>It sounds weird. Can you post your test url here so I can take a look?</p>
<p>By the way, please make sure this line<br />
    $(”#test”).bind(’click’,startUpload);<br />
should place inside of<br />
    $(document).ready(function(){  &#8230;&#8230;.. });</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Baker</title>
		<link>http://www.fengcool.com/2009/06/ajax-form-upload-local-image-file-without-refresh/comment-page-1/#comment-5169</link>
		<dc:creator>Mark Baker</dc:creator>
		<pubDate>Tue, 05 Jan 2010 22:54:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.fengcool.com/?p=83#comment-5169</guid>
		<description>Hi Rick, thanks for getting back to me so quickly.

Yes onchange is working perfectly and images are uploading fine, just for my purpose I really need an additional button as well the file input. Ive tried a few different ways this evening but still no luck? Ive even tried adding the function startUpload as an Onclick from the button in the form instead of the bind method and this also failed.
Help?</description>
		<content:encoded><![CDATA[<p>Hi Rick, thanks for getting back to me so quickly.</p>
<p>Yes onchange is working perfectly and images are uploading fine, just for my purpose I really need an additional button as well the file input. Ive tried a few different ways this evening but still no luck? Ive even tried adding the function startUpload as an Onclick from the button in the form instead of the bind method and this also failed.<br />
Help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rick</title>
		<link>http://www.fengcool.com/2009/06/ajax-form-upload-local-image-file-without-refresh/comment-page-1/#comment-5153</link>
		<dc:creator>rick</dc:creator>
		<pubDate>Tue, 05 Jan 2010 00:11:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.fengcool.com/?p=83#comment-5153</guid>
		<description>Hi Mark,

Thank you for your comment. 
Let me clear something first. Does onchange works perfectly on your side? (I mean images are successfully uploaded to sever?)
If it works, the button should work too. 
You may feel free to echo any message on &quot;uploadUrl = &#039;save.php&#039;;&quot;, those messages will appear on alert box. By this way, you can debug if save image works or not.</description>
		<content:encoded><![CDATA[<p>Hi Mark,</p>
<p>Thank you for your comment.<br />
Let me clear something first. Does onchange works perfectly on your side? (I mean images are successfully uploaded to sever?)<br />
If it works, the button should work too.<br />
You may feel free to echo any message on &#8220;uploadUrl = &#8217;save.php&#8217;;&#8221;, those messages will appear on alert box. By this way, you can debug if save image works or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Baker</title>
		<link>http://www.fengcool.com/2009/06/ajax-form-upload-local-image-file-without-refresh/comment-page-1/#comment-5148</link>
		<dc:creator>Mark Baker</dc:creator>
		<pubDate>Mon, 04 Jan 2010 13:53:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.fengcool.com/?p=83#comment-5148</guid>
		<description>Hi there, I am trying to add a submit button rather than use the the change method on line 25 of the javascript

Ive added a submit button with the id=&#039;test&#039; and changed the function to a click rather than change. 

//bind onchange function to input element
$(&quot;#test&quot;).bind(&#039;click&#039;,startUpload); 

when I try this the script loads but all I get back is an empty alert box? any ideas what I am doing wrong? - Great example BTW</description>
		<content:encoded><![CDATA[<p>Hi there, I am trying to add a submit button rather than use the the change method on line 25 of the javascript</p>
<p>Ive added a submit button with the id=&#8217;test&#8217; and changed the function to a click rather than change. </p>
<p>//bind onchange function to input element<br />
$(&#8221;#test&#8221;).bind(&#8217;click&#8217;,startUpload); </p>
<p>when I try this the script loads but all I get back is an empty alert box? any ideas what I am doing wrong? &#8211; Great example BTW</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rick</title>
		<link>http://www.fengcool.com/2009/06/ajax-form-upload-local-image-file-without-refresh/comment-page-1/#comment-5000</link>
		<dc:creator>rick</dc:creator>
		<pubDate>Thu, 17 Dec 2009 20:51:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.fengcool.com/?p=83#comment-5000</guid>
		<description>Hi es,

This demonstration only shows how to handle upload images. If you want to implement image removal from server, you must add another ajax call within function removeUpload(e){} and pass file name which need to be deleted. On server side, simple, just unlink() the file.</description>
		<content:encoded><![CDATA[<p>Hi es,</p>
<p>This demonstration only shows how to handle upload images. If you want to implement image removal from server, you must add another ajax call within function removeUpload(e){} and pass file name which need to be deleted. On server side, simple, just unlink() the file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: es</title>
		<link>http://www.fengcool.com/2009/06/ajax-form-upload-local-image-file-without-refresh/comment-page-1/#comment-4994</link>
		<dc:creator>es</dc:creator>
		<pubDate>Thu, 17 Dec 2009 10:51:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.fengcool.com/?p=83#comment-4994</guid>
		<description>Remove image - don&#039;t remove image from server :(</description>
		<content:encoded><![CDATA[<p>Remove image &#8211; don&#8217;t remove image from server <img src='http://www.fengcool.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rick</title>
		<link>http://www.fengcool.com/2009/06/ajax-form-upload-local-image-file-without-refresh/comment-page-1/#comment-4367</link>
		<dc:creator>rick</dc:creator>
		<pubDate>Thu, 22 Oct 2009 01:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.fengcool.com/?p=83#comment-4367</guid>
		<description>OK. Demo page is finally here.
http://www.fengcool.com/demo/ajax_image_uploading/</description>
		<content:encoded><![CDATA[<p>OK. Demo page is finally here.<br />
<a href="http://www.fengcool.com/demo/ajax_image_uploading/" rel="nofollow">http://www.fengcool.com/demo/ajax_image_uploading/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://www.fengcool.com/2009/06/ajax-form-upload-local-image-file-without-refresh/comment-page-1/#comment-4015</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Thu, 01 Oct 2009 00:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.fengcool.com/?p=83#comment-4015</guid>
		<description>Hi hoolio,

save.php is where you should handle uploaded images from the form. It should be located in your server, eg. http://your-domain.com/save.php

I will post a working demo later.

Thanks, hoolio.</description>
		<content:encoded><![CDATA[<p>Hi hoolio,</p>
<p>save.php is where you should handle uploaded images from the form. It should be located in your server, eg. <a href="http://your-domain.com/save.php" rel="nofollow">http://your-domain.com/save.php</a></p>
<p>I will post a working demo later.</p>
<p>Thanks, hoolio.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hoolio</title>
		<link>http://www.fengcool.com/2009/06/ajax-form-upload-local-image-file-without-refresh/comment-page-1/#comment-4003</link>
		<dc:creator>hoolio</dc:creator>
		<pubDate>Wed, 30 Sep 2009 07:55:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.fengcool.com/?p=83#comment-4003</guid>
		<description>Doesnt work for me! I just get an error in the iframe and am alerted that save.php cannot be found. 

Would love it if you explained it a bit more clearly or even posted up a working demo.


Anyways,</description>
		<content:encoded><![CDATA[<p>Doesnt work for me! I just get an error in the iframe and am alerted that save.php cannot be found. </p>
<p>Would love it if you explained it a bit more clearly or even posted up a working demo.</p>
<p>Anyways,</p>
]]></content:encoded>
	</item>
</channel>
</rss>
