<?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: jQuery Ajax File Upload</title>
	<atom:link href="http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html/feed" rel="self" type="application/rss+xml" />
	<link>http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html</link>
	<description>The best javascripts for your site</description>
	<lastBuildDate>Sun, 01 Aug 2010 17:30:55 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: craig</title>
		<link>http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html/comment-page-1#comment-7194</link>
		<dc:creator>craig</dc:creator>
		<pubDate>Sun, 01 Aug 2010 17:30:55 +0000</pubDate>
		<guid isPermaLink="false">http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html#comment-7194</guid>
		<description>@miky
@web designer
@Selina

Yes I can show you how.

I am gonna tell you how the original script and my modification work.

When you click a file name to upload,  files/images are sent to and stored in server, &quot;pic&quot; folder. During this storing process, you capture the file name by PHP, then send the name  back to browser, put it in the &quot;src&quot; attribute, that&#039;s how you have image displayed on browser immediately.

But, you have to resize the image to make it look nice and neat on browser, right? Therefore, before sending the file name back to browser, you have to resize the original image with PHP and rename with key word &quot;thumb&quot; attached to the original name, then store the thumb image in the same folder with original image. There u have the thumb now.

To remove, during storing and resizing process, you send the id or the name of original image to browser and store it in JavaScript variable or in one of the element&#039;s attributes, its your choice. So when u click remove link, you will get the name which was stored in browser, send to server, this is when server know what file name you want to delete. Meanwhile, in your Javascript code, put a snippet to hide/remove the link element and image element from browser view.

Hope that makes sense. Anyway, if it&#039;s too hard to figure out, you can contact me at craigcosmo@gmail.com to get the script.</description>
		<content:encoded><![CDATA[<p>@miky<br />
@web designer<br />
@Selina</p>
<p>Yes I can show you how.</p>
<p>I am gonna tell you how the original script and my modification work.</p>
<p>When you click a file name to upload,  files/images are sent to and stored in server, &#8220;pic&#8221; folder. During this storing process, you capture the file name by PHP, then send the name  back to browser, put it in the &#8220;src&#8221; attribute, that&#8217;s how you have image displayed on browser immediately.</p>
<p>But, you have to resize the image to make it look nice and neat on browser, right? Therefore, before sending the file name back to browser, you have to resize the original image with PHP and rename with key word &#8220;thumb&#8221; attached to the original name, then store the thumb image in the same folder with original image. There u have the thumb now.</p>
<p>To remove, during storing and resizing process, you send the id or the name of original image to browser and store it in JavaScript variable or in one of the element&#8217;s attributes, its your choice. So when u click remove link, you will get the name which was stored in browser, send to server, this is when server know what file name you want to delete. Meanwhile, in your Javascript code, put a snippet to hide/remove the link element and image element from browser view.</p>
<p>Hope that makes sense. Anyway, if it&#8217;s too hard to figure out, you can contact me at <a href="mailto:craigcosmo@gmail.com">craigcosmo@gmail.com</a> to get the script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Selina</title>
		<link>http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html/comment-page-1#comment-7007</link>
		<dc:creator>Selina</dc:creator>
		<pubDate>Wed, 30 Jun 2010 09:26:52 +0000</pubDate>
		<guid isPermaLink="false">http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html#comment-7007</guid>
		<description>Hi Craig,

Is there any way you can share how you were able to implement the thumbnail and remove features? I tried it out, and it looks awesome! 

Thanks,
Selina</description>
		<content:encoded><![CDATA[<p>Hi Craig,</p>
<p>Is there any way you can share how you were able to implement the thumbnail and remove features? I tried it out, and it looks awesome! </p>
<p>Thanks,<br />
Selina</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: web designer</title>
		<link>http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html/comment-page-1#comment-6841</link>
		<dc:creator>web designer</dc:creator>
		<pubDate>Sun, 30 May 2010 08:27:21 +0000</pubDate>
		<guid isPermaLink="false">http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html#comment-6841</guid>
		<description>very nice job,  some pics resize it will be very useful,  craig&#039;s work is well done</description>
		<content:encoded><![CDATA[<p>very nice job,  some pics resize it will be very useful,  craig&#8217;s work is well done</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: miky</title>
		<link>http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html/comment-page-1#comment-6680</link>
		<dc:creator>miky</dc:creator>
		<pubDate>Thu, 13 May 2010 23:29:10 +0000</pubDate>
		<guid isPermaLink="false">http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html#comment-6680</guid>
		<description>Very nice !
for craig, maybe you can share to us, your code.
http://www.diepbachduong.com/index.php/play/img</description>
		<content:encoded><![CDATA[<p>Very nice !<br />
for craig, maybe you can share to us, your code.<br />
<a href="http://www.diepbachduong.com/index.php/play/img" rel="nofollow">http://www.diepbachduong.com/index.php/play/img</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: craig</title>
		<link>http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html/comment-page-1#comment-6599</link>
		<dc:creator>craig</dc:creator>
		<pubDate>Wed, 05 May 2010 03:20:16 +0000</pubDate>
		<guid isPermaLink="false">http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html#comment-6599</guid>
		<description>I got the thumbnail to display and remove image function. Check it out at

http://www.diepbachduong.com/index.php/play/img</description>
		<content:encoded><![CDATA[<p>I got the thumbnail to display and remove image function. Check it out at</p>
<p><a href="http://www.diepbachduong.com/index.php/play/img" rel="nofollow">http://www.diepbachduong.com/index.php/play/img</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: free style</title>
		<link>http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html/comment-page-1#comment-1883</link>
		<dc:creator>free style</dc:creator>
		<pubDate>Sat, 29 Aug 2009 02:00:51 +0000</pubDate>
		<guid isPermaLink="false">http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html#comment-1883</guid>
		<description>good, ths</description>
		<content:encoded><![CDATA[<p>good, ths</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: egetway</title>
		<link>http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html/comment-page-1#comment-1092</link>
		<dc:creator>egetway</dc:creator>
		<pubDate>Sun, 26 Jul 2009 05:51:28 +0000</pubDate>
		<guid isPermaLink="false">http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html#comment-1092</guid>
		<description>nice ajax upload</description>
		<content:encoded><![CDATA[<p>nice ajax upload</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: craig</title>
		<link>http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html/comment-page-1#comment-997</link>
		<dc:creator>craig</dc:creator>
		<pubDate>Sun, 12 Jul 2009 07:35:54 +0000</pubDate>
		<guid isPermaLink="false">http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html#comment-997</guid>
		<description>Nice work,

A thumbnail preview of uploaded image would be nice.</description>
		<content:encoded><![CDATA[<p>Nice work,</p>
<p>A thumbnail preview of uploaded image would be nice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to make your forms better with jQuery? &#124; Cool Javascripts</title>
		<link>http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html/comment-page-1#comment-95</link>
		<dc:creator>How to make your forms better with jQuery? &#124; Cool Javascripts</dc:creator>
		<pubDate>Tue, 27 Jan 2009 14:27:16 +0000</pubDate>
		<guid isPermaLink="false">http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html#comment-95</guid>
		<description>[...] Again, browser dependent thing which is almost impossible to style. Using Flash or Iframe, an Ajax effect can be achieved here.  jQuery Plugins for Ajax upload [...]</description>
		<content:encoded><![CDATA[<p>[...] Again, browser dependent thing which is almost impossible to style. Using Flash or Iframe, an Ajax effect can be achieved here.  jQuery Plugins for Ajax upload [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: valums</title>
		<link>http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html/comment-page-1#comment-45</link>
		<dc:creator>valums</dc:creator>
		<pubDate>Sat, 10 Jan 2009 13:42:56 +0000</pubDate>
		<guid isPermaLink="false">http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html#comment-45</guid>
		<description>This plugin supports prototype too.</description>
		<content:encoded><![CDATA[<p>This plugin supports prototype too.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
