<?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 file upload in modal window</title>
	<atom:link href="http://www.web-development-blog.com/archives/upload-in-modal-window-and-pass-values-with-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.web-development-blog.com/archives/upload-in-modal-window-and-pass-values-with-jquery/</link>
	<description>Read about Website Development, Online Marketing and Web Hosting</description>
	<lastBuildDate>Wed, 08 Feb 2012 09:30:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Olaf</title>
		<link>http://www.web-development-blog.com/archives/upload-in-modal-window-and-pass-values-with-jquery/#comment-132349</link>
		<dc:creator>Olaf</dc:creator>
		<pubDate>Fri, 21 Oct 2011 12:23:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=420#comment-132349</guid>
		<description>Hi Weleh,
both hosts are not the same server right? I guess you need to check the permissions in your upload directory.</description>
		<content:encoded><![CDATA[<p>Hi Weleh,<br />
both hosts are not the same server right? I guess you need to check the permissions in your upload directory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: weleh</title>
		<link>http://www.web-development-blog.com/archives/upload-in-modal-window-and-pass-values-with-jquery/#comment-132326</link>
		<dc:creator>weleh</dc:creator>
		<pubDate>Thu, 20 Oct 2011 23:25:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=420#comment-132326</guid>
		<description>hi...
great code.. but i still have some problem
recently i&#039;ve upload my script to web...
but when i tried to upload image/file, the link for passing the file name won&#039;t show
u can try it in http://upm.unsri.ac.id/admin/scripts/upload/upload.php

but if i use my computer like : http://localhost/upm/admin/scripts/upload/upload.php
it has no problem

do u have any suggestion for me?
thanks :D</description>
		<content:encoded><![CDATA[<p>hi&#8230;<br />
great code.. but i still have some problem<br />
recently i&#8217;ve upload my script to web&#8230;<br />
but when i tried to upload image/file, the link for passing the file name won&#8217;t show<br />
u can try it in <a href="http://upm.unsri.ac.id/admin/scripts/upload/upload.php" >http://upm.unsri.ac.id/admin/scripts/upload/upload.php</a></p>
<p>but if i use my computer like : <a href="http://localhost/upm/admin/scripts/upload/upload.php" >http://localhost/upm/admin/scripts/upload/upload.php</a><br />
it has no problem</p>
<p>do u have any suggestion for me?<br />
thanks <img src='http://cdn.web-development-blog.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olaf</title>
		<link>http://www.web-development-blog.com/archives/upload-in-modal-window-and-pass-values-with-jquery/#comment-127755</link>
		<dc:creator>Olaf</dc:creator>
		<pubDate>Mon, 15 Aug 2011 17:31:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=420#comment-127755</guid>
		<description>Hi, you need to place your vars before the this one &quot;placeValuesBeforeTB_&quot;</description>
		<content:encoded><![CDATA[<p>Hi, you need to place your vars before the this one &#8220;placeValuesBeforeTB_&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dhvani</title>
		<link>http://www.web-development-blog.com/archives/upload-in-modal-window-and-pass-values-with-jquery/#comment-127752</link>
		<dc:creator>Dhvani</dc:creator>
		<pubDate>Mon, 15 Aug 2011 17:20:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=420#comment-127752</guid>
		<description>Hi..

Really great code.. Thanks
I am trying to pass more variables. As i need to pass some ids with the image. But I am not able to fetch that id in upload.php..

Please help me for this. 
Below is what i am using

		 		 &lt;a href=&quot;upload_room.php?placeValuesBeforeTB_=savedValues&amp;TB_iframe=true&amp;height=500&amp;width=400&amp;modal=true&amp;rid=&quot; class=&quot;thickbox&quot;&gt;Upload&lt;/a&gt;

Thanks
Dhvani</description>
		<content:encoded><![CDATA[<p>Hi..</p>
<p>Really great code.. Thanks<br />
I am trying to pass more variables. As i need to pass some ids with the image. But I am not able to fetch that id in upload.php..</p>
<p>Please help me for this.<br />
Below is what i am using</p>
<p>		 		 &lt;a href=&quot;upload_room.php?placeValuesBeforeTB_=savedValues&amp;TB_iframe=true&amp;height=500&amp;width=400&amp;modal=true&amp;rid=&#8221; class=&#8221;thickbox&#8221;&gt;Upload</p>
<p>Thanks<br />
Dhvani</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olaf</title>
		<link>http://www.web-development-blog.com/archives/upload-in-modal-window-and-pass-values-with-jquery/#comment-127202</link>
		<dc:creator>Olaf</dc:creator>
		<pubDate>Wed, 11 May 2011 08:30:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=420#comment-127202</guid>
		<description>You&#039;re welcome Tia!</description>
		<content:encoded><![CDATA[<p>You&#8217;re welcome Tia!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tia</title>
		<link>http://www.web-development-blog.com/archives/upload-in-modal-window-and-pass-values-with-jquery/#comment-127201</link>
		<dc:creator>tia</dc:creator>
		<pubDate>Wed, 11 May 2011 08:30:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=420#comment-127201</guid>
		<description>hey!!! now it DOES work. I think there was something wrong with my image path.

Thank you so much!!!</description>
		<content:encoded><![CDATA[<p>hey!!! now it DOES work. I think there was something wrong with my image path.</p>
<p>Thank you so much!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olaf</title>
		<link>http://www.web-development-blog.com/archives/upload-in-modal-window-and-pass-values-with-jquery/#comment-127199</link>
		<dc:creator>Olaf</dc:creator>
		<pubDate>Wed, 11 May 2011 08:13:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=420#comment-127199</guid>
		<description>Tia, you need to use exact the same name. 
&lt;del datetime=&quot;2011-05-11T08:15:49+00:00&quot;&gt;I will add the function to the demo page over a few minutes.&lt;/del&gt; Forget the demo :)

#1 create on the page where the image has to appear this tag:
&lt;code&gt;&lt;div id=&quot;theDiv&quot;&gt;&lt;/div&gt;&lt;/code&gt;

and inside the pop-up page you need to have this code:

&lt;pre lang=&quot;php&quot;&gt;
$(document).ready(function() { 
	$(&quot;#closelink&quot;).click(function() {
		$(&quot;#theDiv&quot;, top.document).prepend(&#039;&lt;img id=&quot;theImg&quot; src=&quot;&lt;?php echo $image; ?&gt;&quot; /&gt;&#039;);
	});
});
&lt;/pre&gt;

It seems like that Wordpress has stripped some important code in my previous answer :)</description>
		<content:encoded><![CDATA[<p>Tia, you need to use exact the same name.<br />
<del datetime="2011-05-11T08:15:49+00:00">I will add the function to the demo page over a few minutes.</del> Forget the demo <img src='http://cdn.web-development-blog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>#1 create on the page where the image has to appear this tag:<br />
<code>
<div id="theDiv"></div>
<p></code></p>
<p>and inside the pop-up page you need to have this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">$(document).ready(function() { 
	$(&quot;#closelink&quot;).click(function() {
		$(&quot;#theDiv&quot;, top.document).prepend('&lt;img id=&quot;theImg&quot; src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$image</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;');
	});
});</pre></div></div>

<p>It seems like that WordPress has stripped some important code in my previous answer <img src='http://cdn.web-development-blog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tia</title>
		<link>http://www.web-development-blog.com/archives/upload-in-modal-window-and-pass-values-with-jquery/#comment-127197</link>
		<dc:creator>tia</dc:creator>
		<pubDate>Wed, 11 May 2011 08:04:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=420#comment-127197</guid>
		<description>in the form.php class i create DIV with id &quot;The Div&quot;</description>
		<content:encoded><![CDATA[<p>in the form.php class i create DIV with id &#8220;The Div&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tia</title>
		<link>http://www.web-development-blog.com/archives/upload-in-modal-window-and-pass-values-with-jquery/#comment-127196</link>
		<dc:creator>tia</dc:creator>
		<pubDate>Wed, 11 May 2011 08:02:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=420#comment-127196</guid>
		<description>(sorry)
Hey Olaf.
Well, i tried doing this :

(upload.php)

---------$(“#theDiv”).prepend(“bu”);
(form.php)

--------- 
and even like that , it didnt work out.</description>
		<content:encoded><![CDATA[<p>(sorry)<br />
Hey Olaf.<br />
Well, i tried doing this :</p>
<p>(upload.php)</p>
<p>&#8212;&#8212;&#8212;$(“#theDiv”).prepend(“bu”);<br />
(form.php)</p>
<p>&#8212;&#8212;&#8212;<br />
and even like that , it didnt work out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olaf</title>
		<link>http://www.web-development-blog.com/archives/upload-in-modal-window-and-pass-values-with-jquery/#comment-127191</link>
		<dc:creator>Olaf</dc:creator>
		<pubDate>Wed, 11 May 2011 06:25:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=420#comment-127191</guid>
		<description>okay, create on that page a DIV container with the ID &quot;theDiv&quot;

and use this code:

&lt;code&gt;
$(&quot;#myfile&quot;, top.document).val(&#039;&#039;);
&lt;/code&gt;

with 
&lt;code&gt;
$(&#039;#theDiv&#039;).prepend(&#039;&lt;img id=&quot;theImg&quot; src=&quot;&quot; /&gt;&#039;);

&lt;/code&gt;

Maybe you need to fix the image path</description>
		<content:encoded><![CDATA[<p>okay, create on that page a DIV container with the ID &#8220;theDiv&#8221;</p>
<p>and use this code:</p>
<p><code><br />
$("#myfile", top.document).val('');<br />
</code></p>
<p>with<br />
<code><br />
$('#theDiv').prepend('&lt;img id=&quot;theImg&quot; src=&quot;" /&gt;');</p>
<p></code></p>
<p>Maybe you need to fix the image path</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Database Caching 25/41 queries in 0.031 seconds using disk: basic
Object Caching 481/499 objects using disk: basic
Content Delivery Network via cdn.web-development-blog.com

Served from: www.web-development-blog.com @ 2012-02-08 10:52:03 -->
