<?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: Iframes / XMLHTTPRequest bug in Firefox</title>
	<atom:link href="http://the-stickman.com/web-development/javascript/iframes-xmlhttprequest-bug-in-firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://the-stickman.com/web-development/javascript/iframes-xmlhttprequest-bug-in-firefox/</link>
	<description>Random developer notes</description>
	<lastBuildDate>Wed, 03 Aug 2011 09:35:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: Tyron</title>
		<link>http://the-stickman.com/web-development/javascript/iframes-xmlhttprequest-bug-in-firefox/comment-page-1/#comment-1298</link>
		<dc:creator>Tyron</dc:creator>
		<pubDate>Sun, 27 Sep 2009 15:46:39 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/web-development/iframes-xmlhttprequest-bug-in-firefox/#comment-1298</guid>
		<description>Thank you very much for your entry. I had a verrry similar problem while making my own multi-file-upload for my own CMS as well ^^
But blog entry ended my almost 2 hour search for a solution.</description>
		<content:encoded><![CDATA[<p>Thank you very much for your entry. I had a verrry similar problem while making my own multi-file-upload for my own CMS as well ^^<br />
But blog entry ended my almost 2 hour search for a solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trying</title>
		<link>http://the-stickman.com/web-development/javascript/iframes-xmlhttprequest-bug-in-firefox/comment-page-1/#comment-1139</link>
		<dc:creator>trying</dc:creator>
		<pubDate>Sat, 24 Jan 2009 07:06:17 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/web-development/iframes-xmlhttprequest-bug-in-firefox/#comment-1139</guid>
		<description>dear all,
    how do i save the text written in an iframe to my servlet,for further b sent to the database.....i m a beginer in servlets,please help me with some example and syntax

thanks</description>
		<content:encoded><![CDATA[<p>dear all,<br />
    how do i save the text written in an iframe to my servlet,for further b sent to the database&#8230;..i m a beginer in servlets,please help me with some example and syntax</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jakov</title>
		<link>http://the-stickman.com/web-development/javascript/iframes-xmlhttprequest-bug-in-firefox/comment-page-1/#comment-1087</link>
		<dc:creator>Jakov</dc:creator>
		<pubDate>Thu, 23 Oct 2008 17:58:54 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/web-development/iframes-xmlhttprequest-bug-in-firefox/#comment-1087</guid>
		<description>Hi Stickman, it&#039;s passed 3 years ago when you post this blog. Can you post your code here???

My English is very bad, and I can&#039;t reed this at all.. :(

I have same problem like was yours... from  I must call XMLHttpRequest but you know what is happening... Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Stickman, it&#8217;s passed 3 years ago when you post this blog. Can you post your code here???</p>
<p>My English is very bad, and I can&#8217;t reed this at all.. <img src='http://the-stickman.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I have same problem like was yours&#8230; from  I must call XMLHttpRequest but you know what is happening&#8230; Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stickman</title>
		<link>http://the-stickman.com/web-development/javascript/iframes-xmlhttprequest-bug-in-firefox/comment-page-1/#comment-1053</link>
		<dc:creator>Stickman</dc:creator>
		<pubDate>Mon, 11 Aug 2008 13:17:18 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/web-development/iframes-xmlhttprequest-bug-in-firefox/#comment-1053</guid>
		<description>ilango: XMLHTTPRequest does not work between different domains. The browser will report any attempt to request a file from another domain using XMLHTTPRequest as a security violation.</description>
		<content:encoded><![CDATA[<p>ilango: XMLHTTPRequest does not work between different domains. The browser will report any attempt to request a file from another domain using XMLHTTPRequest as a security violation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ilango</title>
		<link>http://the-stickman.com/web-development/javascript/iframes-xmlhttprequest-bug-in-firefox/comment-page-1/#comment-1052</link>
		<dc:creator>ilango</dc:creator>
		<pubDate>Fri, 08 Aug 2008 14:38:12 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/web-development/iframes-xmlhttprequest-bug-in-firefox/#comment-1052</guid>
		<description>I created web service using Rest.It works fine in a single machine.but access from different machines XMLHttpRequest.open(&quot;GET&quot;,&quot;https://192.168.1.2/&quot;,&quot;true&quot;) leave a exception &quot;Access to restricted URI denied&quot; security error.How to overcome it.please give the solution.</description>
		<content:encoded><![CDATA[<p>I created web service using Rest.It works fine in a single machine.but access from different machines XMLHttpRequest.open(&#8220;GET&#8221;,&#8221;https://192.168.1.2/&#8221;,&#8221;true&#8221;) leave a exception &#8220;Access to restricted URI denied&#8221; security error.How to overcome it.please give the solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Draders</title>
		<link>http://the-stickman.com/web-development/javascript/iframes-xmlhttprequest-bug-in-firefox/comment-page-1/#comment-38</link>
		<dc:creator>Draders</dc:creator>
		<pubDate>Thu, 27 Dec 2007 06:38:50 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/web-development/iframes-xmlhttprequest-bug-in-firefox/#comment-38</guid>
		<description>I am making an ajax cms for my company and set up my upload api similar to yours, I fixed the issue by adding a small delay before removing the iframe after its page has loaded.

setTimeout(function() { sickle.ajax._removeFrame(frame); }, 1);

_removeFrame : function(id) {
        var tmp = [];
        for (key in sickle.ajax.frames) {
            if (key == id) {
                var p = sickle.ajax.frames[key].parentNode;
                p.removeChild(sickle.ajax.frames[key]);
            }
            else {
                 tmp[key] = sickle.ajax.frames[key];
            }
        }
        sickle.ajax.frames = tmp;
    }</description>
		<content:encoded><![CDATA[<p>I am making an ajax cms for my company and set up my upload api similar to yours, I fixed the issue by adding a small delay before removing the iframe after its page has loaded.</p>
<p>setTimeout(function() { sickle.ajax._removeFrame(frame); }, 1);</p>
<p>_removeFrame : function(id) {<br />
        var tmp = [];<br />
        for (key in sickle.ajax.frames) {<br />
            if (key == id) {<br />
                var p = sickle.ajax.frames[key].parentNode;<br />
                p.removeChild(sickle.ajax.frames[key]);<br />
            }<br />
            else {<br />
                 tmp[key] = sickle.ajax.frames[key];<br />
            }<br />
        }<br />
        sickle.ajax.frames = tmp;<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phzzy</title>
		<link>http://the-stickman.com/web-development/javascript/iframes-xmlhttprequest-bug-in-firefox/comment-page-1/#comment-36</link>
		<dc:creator>Phzzy</dc:creator>
		<pubDate>Thu, 27 Dec 2007 03:23:21 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/web-development/iframes-xmlhttprequest-bug-in-firefox/#comment-36</guid>
		<description>you can use this:


function callback() {
    setTimeout(&quot;delay_ajax()&quot; , 10);
}

function delay_ajax() {
    // send XMLHTTPRequest
    ......
}

~~

Phzzy</description>
		<content:encoded><![CDATA[<p>you can use this:</p>
<p>function callback() {<br />
    setTimeout(&#8220;delay_ajax()&#8221; , 10);<br />
}</p>
<p>function delay_ajax() {<br />
    // send XMLHTTPRequest<br />
    &#8230;&#8230;<br />
}</p>
<p>~~</p>
<p>Phzzy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan</title>
		<link>http://the-stickman.com/web-development/javascript/iframes-xmlhttprequest-bug-in-firefox/comment-page-1/#comment-40</link>
		<dc:creator>Alan</dc:creator>
		<pubDate>Sat, 08 Dec 2007 00:04:48 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/web-development/iframes-xmlhttprequest-bug-in-firefox/#comment-40</guid>
		<description>Yes Iframes can be a real pain when it comes to Firefox so on http://www.WebSiteTips.eu i resorted to Ifreames for IE and a frameset for firefox.

You will thin Microsoft would had sort the file upload stuff out by now and have a the option of using Ajax or maybe they do by now but i know few of the Ajax controls do quite what they say on the box.</description>
		<content:encoded><![CDATA[<p>Yes Iframes can be a real pain when it comes to Firefox so on <a href="http://www.WebSiteTips.eu" rel="nofollow">http://www.WebSiteTips.eu</a> i resorted to Ifreames for IE and a frameset for firefox.</p>
<p>You will thin Microsoft would had sort the file upload stuff out by now and have a the option of using Ajax or maybe they do by now but i know few of the Ajax controls do quite what they say on the box.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://the-stickman.com/web-development/javascript/iframes-xmlhttprequest-bug-in-firefox/comment-page-1/#comment-39</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Thu, 17 May 2007 17:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/web-development/iframes-xmlhttprequest-bug-in-firefox/#comment-39</guid>
		<description>Hey guys,
Don&#039;t have time to read through everything but I did want to through this in. I am haveing the exact same issue. It sounds like the issue is that the XMLHTTP request is essential going out of scope ( or similar ) when the iframe is removed from the DOM. So when the request is returned from the server things are messed up. I have not tested this yet but I am working on a request manager that basically adds each new request to a queue and then executes them sequentially ( it is a lot more complicated but this is basically what happens ) I suspect that by passing the request data into the queue in the parent document the link between iframe and request is broken as the request manager creates the request not the iframe encapsulated code.

I will try to test this soon, if anyone beats me too it please post the results.</description>
		<content:encoded><![CDATA[<p>Hey guys,<br />
Don&#8217;t have time to read through everything but I did want to through this in. I am haveing the exact same issue. It sounds like the issue is that the XMLHTTP request is essential going out of scope ( or similar ) when the iframe is removed from the DOM. So when the request is returned from the server things are messed up. I have not tested this yet but I am working on a request manager that basically adds each new request to a queue and then executes them sequentially ( it is a lot more complicated but this is basically what happens ) I suspect that by passing the request data into the queue in the parent document the link between iframe and request is broken as the request manager creates the request not the iframe encapsulated code.</p>
<p>I will try to test this soon, if anyone beats me too it please post the results.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RghSx</title>
		<link>http://the-stickman.com/web-development/javascript/iframes-xmlhttprequest-bug-in-firefox/comment-page-1/#comment-35</link>
		<dc:creator>RghSx</dc:creator>
		<pubDate>Mon, 07 May 2007 22:48:21 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/web-development/iframes-xmlhttprequest-bug-in-firefox/#comment-35</guid>
		<description>We had this same problem - we have a multiple upload file script that when submitted went to a hidden iframe that was generated by javascript. In the script that processes the file uploads we make some js callbacks ex(parent.document.getElementById(&#039;some_element&#039;).value=&quot;something&quot;), including one call that performs some AJAX operations.

We solved this by removing the iframe from being generated by the javascript to be just a hidden frame on the main page. Apparently, there seemed to be a security issue with javascript generated iframes in firefox not allowing AJAX calls. Suffice it to say that all was fixed by moving the iframe out of the javascript.</description>
		<content:encoded><![CDATA[<p>We had this same problem &#8211; we have a multiple upload file script that when submitted went to a hidden iframe that was generated by javascript. In the script that processes the file uploads we make some js callbacks ex(parent.document.getElementById(&#8216;some_element&#8217;).value=&#8221;something&#8221;), including one call that performs some AJAX operations.</p>
<p>We solved this by removing the iframe from being generated by the javascript to be just a hidden frame on the main page. Apparently, there seemed to be a security issue with javascript generated iframes in firefox not allowing AJAX calls. Suffice it to say that all was fixed by moving the iframe out of the javascript.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

