<?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: Upload image using hidden iFrame (Simple Photo Manager)</title>
	<atom:link href="http://www.akchauhan.com/upload-image-using-hidden-iframe/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.akchauhan.com/upload-image-using-hidden-iframe/</link>
	<description>PHP, MySql, JavaScript, JQuery, Prototype, Drupal, HTML, CSS and more...</description>
	<lastBuildDate>Thu, 05 Jan 2012 12:42:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Programmer</title>
		<link>http://www.akchauhan.com/upload-image-using-hidden-iframe/comment-page-1/#comment-39198</link>
		<dc:creator>Programmer</dc:creator>
		<pubDate>Tue, 01 Mar 2011 20:10:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.akchauhan.com/?p=300#comment-39198</guid>
		<description>Here is a simple script for upload and resize images

http://mywebscripts.com/2011/03/php-upload-and-resize-image/</description>
		<content:encoded><![CDATA[<p>Here is a simple script for upload and resize images</p>
<p><a href="http://mywebscripts.com/2011/03/php-upload-and-resize-image/" rel="nofollow">http://mywebscripts.com/2011/03/php-upload-and-resize-image/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Photo image upload</title>
		<link>http://www.akchauhan.com/upload-image-using-hidden-iframe/comment-page-1/#comment-30226</link>
		<dc:creator>Photo image upload</dc:creator>
		<pubDate>Thu, 18 Nov 2010 16:14:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.akchauhan.com/?p=300#comment-30226</guid>
		<description>[...] Upload image using hidden iFrame (Simple Photo Manager) 1 May 2009. Upload image using hidden iFrame (Simple Photo Manager). appendChild( new_iframe); // add image progress var images = par. Upload image using hidden iFrame (Simple Photo Manager) [...]</description>
		<content:encoded><![CDATA[<p>[...] Upload image using hidden iFrame (Simple Photo Manager) 1 May 2009. Upload image using hidden iFrame (Simple Photo Manager). appendChild( new_iframe); // add image progress var images = par. Upload image using hidden iFrame (Simple Photo Manager) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Add image photo upload</title>
		<link>http://www.akchauhan.com/upload-image-using-hidden-iframe/comment-page-1/#comment-29649</link>
		<dc:creator>Add image photo upload</dc:creator>
		<pubDate>Fri, 12 Nov 2010 17:50:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.akchauhan.com/?p=300#comment-29649</guid>
		<description>[...] Upload image using hidden iFrame (Simple Photo Manager) 1 May 2009. Upload image using hidden iFrame (Simple Photo Manager). appendChild( new_iframe); // add image progress var images = par. Upload image using hidden iFrame (Simple Photo Manager) [...]</description>
		<content:encoded><![CDATA[<p>[...] Upload image using hidden iFrame (Simple Photo Manager) 1 May 2009. Upload image using hidden iFrame (Simple Photo Manager). appendChild( new_iframe); // add image progress var images = par. Upload image using hidden iFrame (Simple Photo Manager) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gandalf the Giggly</title>
		<link>http://www.akchauhan.com/upload-image-using-hidden-iframe/comment-page-1/#comment-23580</link>
		<dc:creator>Gandalf the Giggly</dc:creator>
		<pubDate>Fri, 24 Sep 2010 09:17:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.akchauhan.com/?p=300#comment-23580</guid>
		<description>Ok, I manage to limit the # of uploads. You can try:

in the javascript file, after iframe.className = hidden: add this

numberframes = document.getElementsByTagName(&quot;iframe&quot;).length; //finds total frames of page

and then put limit

	if(numberframes &lt; 3 ) {
	// create new iframe
	var new_iframe = par.createElement(&#039;iframe&#039;);
	new_iframe.src = &#039;instantupload.php&#039;;
	new_iframe.frameBorder = &#039;0&#039;;
	new_iframe.style.height = &#039;75px&#039;;
	par.getElementById(&#039;iframe_container&#039;).appendChild(new_iframe);
	}

after 3 uploads, the upload button iframe will not show up. 
Hope this helps you.</description>
		<content:encoded><![CDATA[<p>Ok, I manage to limit the # of uploads. You can try:</p>
<p>in the javascript file, after iframe.className = hidden: add this</p>
<p>numberframes = document.getElementsByTagName(&#8220;iframe&#8221;).length; //finds total frames of page</p>
<p>and then put limit</p>
<p>	if(numberframes &lt; 3 ) {<br />
	// create new iframe<br />
	var new_iframe = par.createElement(&#039;iframe&#039;);<br />
	new_iframe.src = &#039;instantupload.php&#039;;<br />
	new_iframe.frameBorder = &#039;0&#039;;<br />
	new_iframe.style.height = &#039;75px&#039;;<br />
	par.getElementById(&#039;iframe_container&#039;).appendChild(new_iframe);<br />
	}</p>
<p>after 3 uploads, the upload button iframe will not show up.<br />
Hope this helps you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gandalf the Giggly</title>
		<link>http://www.akchauhan.com/upload-image-using-hidden-iframe/comment-page-1/#comment-23460</link>
		<dc:creator>Gandalf the Giggly</dc:creator>
		<pubDate>Thu, 23 Sep 2010 08:16:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.akchauhan.com/?p=300#comment-23460</guid>
		<description>In order for this to work, go and check all associated files for &lt;?= and replace with &quot;&lt; ? php echo&quot; if u want to limit number of upload, this can be done with an if statement. For example: if (number of image shown is greater than  limit number) { do not show iframe upload } . If you want to remove the image without pressing upload and refresh, then you might do an onclick in the javascript file and unlink and remove the image.</description>
		<content:encoded><![CDATA[<p>In order for this to work, go and check all associated files for &lt;?= and replace with &quot;&lt; ? php echo&quot; if u want to limit number of upload, this can be done with an if statement. For example: if (number of image shown is greater than  limit number) { do not show iframe upload } . If you want to remove the image without pressing upload and refresh, then you might do an onclick in the javascript file and unlink and remove the image.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gandalf the Giggly</title>
		<link>http://www.akchauhan.com/upload-image-using-hidden-iframe/comment-page-1/#comment-23459</link>
		<dc:creator>Gandalf the Giggly</dc:creator>
		<pubDate>Thu, 23 Sep 2010 08:13:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.akchauhan.com/?p=300#comment-23459</guid>
		<description>In order for this to work, go and check all associated files for &lt;?= and replace with  limit number) { do not show iframe upload } . If you want to remove the image without pressing upload and refresh, then you might do an onclick in the javascript file and unlink and remove the image.</description>
		<content:encoded><![CDATA[<p>In order for this to work, go and check all associated files for &lt;?= and replace with  limit number) { do not show iframe upload } . If you want to remove the image without pressing upload and refresh, then you might do an onclick in the javascript file and unlink and remove the image.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tavus</title>
		<link>http://www.akchauhan.com/upload-image-using-hidden-iframe/comment-page-1/#comment-13671</link>
		<dc:creator>Tavus</dc:creator>
		<pubDate>Sun, 13 Jun 2010 06:03:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.akchauhan.com/?p=300#comment-13671</guid>
		<description>hello, i run your Demo and its wonderful, but as i run your code the progress icon keeps rotating endlessly and nothing happens. it shows an error and when i click on error it says &#039;null&#039; null is null or not an object. database is created correctly and also for a test if i copy an image manually in the folder photo i can see the image on refreshing the page.appreciating your help and  thanks for your wonderfull script.</description>
		<content:encoded><![CDATA[<p>hello, i run your Demo and its wonderful, but as i run your code the progress icon keeps rotating endlessly and nothing happens. it shows an error and when i click on error it says &#8216;null&#8217; null is null or not an object. database is created correctly and also for a test if i copy an image manually in the folder photo i can see the image on refreshing the page.appreciating your help and  thanks for your wonderfull script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.akchauhan.com/upload-image-using-hidden-iframe/comment-page-1/#comment-6966</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 07 Nov 2009 12:27:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.akchauhan.com/?p=300#comment-6966</guid>
		<description>&lt;a href=&quot;#comment-6962&quot; rel=&quot;nofollow&quot;&gt;@fawzi&lt;/a&gt; 
Hi Fawzi,

Reading your comment I can only guess that your pm.js file path is not correct and that&#039;s why browser not found this window.parent.upload function. 
You can check your JS file path. You can try the exact path (http://localhost/js/pm.js) instead of relative path or try &#039;/js/pm.js&#039;. 
Let me know if this resolve your problem.</description>
		<content:encoded><![CDATA[<p><a href="#comment-6962" rel="nofollow">@fawzi</a><br />
Hi Fawzi,</p>
<p>Reading your comment I can only guess that your pm.js file path is not correct and that&#8217;s why browser not found this window.parent.upload function.<br />
You can check your JS file path. You can try the exact path (<a href="http://localhost/js/pm.js" rel="nofollow">http://localhost/js/pm.js</a>) instead of relative path or try &#8216;/js/pm.js&#8217;.<br />
Let me know if this resolve your problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fawzi</title>
		<link>http://www.akchauhan.com/upload-image-using-hidden-iframe/comment-page-1/#comment-6962</link>
		<dc:creator>fawzi</dc:creator>
		<pubDate>Sat, 07 Nov 2009 06:28:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.akchauhan.com/?p=300#comment-6962</guid>
		<description>guys, please throw me a boney...</description>
		<content:encoded><![CDATA[<p>guys, please throw me a boney&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fawzi</title>
		<link>http://www.akchauhan.com/upload-image-using-hidden-iframe/comment-page-1/#comment-6957</link>
		<dc:creator>fawzi</dc:creator>
		<pubDate>Fri, 06 Nov 2009 18:03:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.akchauhan.com/?p=300#comment-6957</guid>
		<description>i just read my last comment/request.  i think it may be a bit ambiguous.  so just to clarify, the window.parent.upload is not recognized/ not found by drupal.

i currently put the js/pm.js file as a link within the html inside the iframe.  but it is still not found.

where should the pm.js reside for it to work??</description>
		<content:encoded><![CDATA[<p>i just read my last comment/request.  i think it may be a bit ambiguous.  so just to clarify, the window.parent.upload is not recognized/ not found by drupal.</p>
<p>i currently put the js/pm.js file as a link within the html inside the iframe.  but it is still not found.</p>
<p>where should the pm.js reside for it to work??</p>
]]></content:encoded>
	</item>
</channel>
</rss>

