<?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: (Re)Introducing Javascript And Hidden Applets (JAHA)</title>
	<atom:link href="http://windyroad.org/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/feed/" rel="self" type="application/rss+xml" />
	<link>http://windyroad.org/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/</link>
	<description>Extraordinary IT.</description>
	<lastBuildDate>Fri, 16 Jul 2010 18:39:37 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dave</title>
		<link>http://windyroad.org/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/comment-page-1/#comment-99695</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Fri, 27 Mar 2009 14:49:05 +0000</pubDate>
		<guid isPermaLink="false">http://howardfamily.id.au/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/#comment-99695</guid>
		<description>Hi, I&#039;ve had the same problem of Scott

java.net.malformedurlexception when using the JS.call method</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;ve had the same problem of Scott</p>
<p>java.net.malformedurlexception when using the JS.call method</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: otatop</title>
		<link>http://windyroad.org/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/comment-page-1/#comment-80301</link>
		<dc:creator>otatop</dc:creator>
		<pubDate>Fri, 12 Dec 2008 21:33:53 +0000</pubDate>
		<guid isPermaLink="false">http://howardfamily.id.au/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/#comment-80301</guid>
		<description>Applets &amp; JavaScript... I&#039;ve unfortunately have done this many a time. Let me add to the list...

For the love of all that is good in this world, do not attempt to display an alert from the applet. Either the applet trying to call out to javascript to display a javascript alert, or display a real java alert. Doing so is a great way to crash a browser (I&#039;ve seen probably 2-3 different ways of hanging from trying this). Just return the error from the applet and let the calling javascript display an error.

The IE eolas thing affects visible applets but shouldn&#039;t bother you if your applet is hidden.

Make sure your applet isn&#039;t in an area that will be overwritten by some fancy ajax framework. Put it in the very top or bottom of your html &amp; don&#039;t let anything overwrite it.

That&#039;s all I can remember in addition to what&#039;s posted here. My overall thought is to avoid applets whenever possible but for the scenarios that you have to use them make sure you&#039;re code has a fall back mechanism if the applet dies. Remember, your code can work beautifully but all it takes is one Microsoft patch and you&#039;ve got endless customers crying about how your product is unusable.</description>
		<content:encoded><![CDATA[<p>Applets &amp; JavaScript&#8230; I&#8217;ve unfortunately have done this many a time. Let me add to the list&#8230;</p>
<p>For the love of all that is good in this world, do not attempt to display an alert from the applet. Either the applet trying to call out to javascript to display a javascript alert, or display a real java alert. Doing so is a great way to crash a browser (I&#8217;ve seen probably 2-3 different ways of hanging from trying this). Just return the error from the applet and let the calling javascript display an error.</p>
<p>The IE eolas thing affects visible applets but shouldn&#8217;t bother you if your applet is hidden.</p>
<p>Make sure your applet isn&#8217;t in an area that will be overwritten by some fancy ajax framework. Put it in the very top or bottom of your html &amp; don&#8217;t let anything overwrite it.</p>
<p>That&#8217;s all I can remember in addition to what&#8217;s posted here. My overall thought is to avoid applets whenever possible but for the scenarios that you have to use them make sure you&#8217;re code has a fall back mechanism if the applet dies. Remember, your code can work beautifully but all it takes is one Microsoft patch and you&#8217;ve got endless customers crying about how your product is unusable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn</title>
		<link>http://windyroad.org/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/comment-page-1/#comment-67178</link>
		<dc:creator>Glenn</dc:creator>
		<pubDate>Thu, 02 Oct 2008 15:34:36 +0000</pubDate>
		<guid isPermaLink="false">http://howardfamily.id.au/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/#comment-67178</guid>
		<description>Hi Tom, great article - I&#039;m glad that I found it.  Are you aware of any issues with your approach and JRE 1.5.0_16?
I&#039;ve recently upgraded to _16 and have noticed that, when getWindow is executed in init() or start(), the method hangs (at sun.plugin.javascript.navig5.JSObject.JSObjectInvoke).  
My code works in _14 but not _16.</description>
		<content:encoded><![CDATA[<p>Hi Tom, great article &#8211; I&#8217;m glad that I found it.  Are you aware of any issues with your approach and JRE 1.5.0_16?<br />
I&#8217;ve recently upgraded to _16 and have noticed that, when getWindow is executed in init() or start(), the method hangs (at sun.plugin.javascript.navig5.JSObject.JSObjectInvoke).<br />
My code works in _14 but not _16.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fredrik</title>
		<link>http://windyroad.org/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/comment-page-1/#comment-66266</link>
		<dc:creator>fredrik</dc:creator>
		<pubDate>Mon, 29 Sep 2008 14:28:24 +0000</pubDate>
		<guid isPermaLink="false">http://howardfamily.id.au/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/#comment-66266</guid>
		<description>Any ideas how to detect if the applets is loaded only from javascript?
Now that the 1.6.10 of java is coming and they load in a separate thread.</description>
		<content:encoded><![CDATA[<p>Any ideas how to detect if the applets is loaded only from javascript?<br />
Now that the 1.6.10 of java is coming and they load in a separate thread.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Corey</title>
		<link>http://windyroad.org/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/comment-page-1/#comment-58841</link>
		<dc:creator>Corey</dc:creator>
		<pubDate>Fri, 29 Aug 2008 15:34:26 +0000</pubDate>
		<guid isPermaLink="false">http://howardfamily.id.au/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/#comment-58841</guid>
		<description>Hi,

I have a related question.

I am using a hidden applet to do file I/O from a javascript context. I have the policy set up to allow this, and it works fine if I open/create the file from the init() method of the applet. However, if I try to open/create the file from a public applet method that is called from a non-init script context, such as onload or onclick, I get a file permission exception, same as I would have if the policy weren&#039;t in place. Any insight? Why should the policy cover the init() context but not a public method context?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have a related question.</p>
<p>I am using a hidden applet to do file I/O from a javascript context. I have the policy set up to allow this, and it works fine if I open/create the file from the init() method of the applet. However, if I try to open/create the file from a public applet method that is called from a non-init script context, such as onload or onclick, I get a file permission exception, same as I would have if the policy weren&#8217;t in place. Any insight? Why should the policy cover the init() context but not a public method context?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://windyroad.org/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/comment-page-1/#comment-53629</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 01 Aug 2008 12:22:06 +0000</pubDate>
		<guid isPermaLink="false">http://howardfamily.id.au/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/#comment-53629</guid>
		<description>Addendum to my last comment:

Another option I just thought of might be to send the compressed preview thumbnails to Flash as strings/byte arrays, and have Flash render them out individually. But unless the entire uploader is built in Flash (don&#039;t really want to do this), this means the UI would need a lot of separate SWFs and might get rather expensive to render.</description>
		<content:encoded><![CDATA[<p>Addendum to my last comment:</p>
<p>Another option I just thought of might be to send the compressed preview thumbnails to Flash as strings/byte arrays, and have Flash render them out individually. But unless the entire uploader is built in Flash (don&#8217;t really want to do this), this means the UI would need a lot of separate SWFs and might get rather expensive to render.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://windyroad.org/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/comment-page-1/#comment-53627</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 01 Aug 2008 12:15:34 +0000</pubDate>
		<guid isPermaLink="false">http://howardfamily.id.au/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/#comment-53627</guid>
		<description>This is an excellent post.

I&#039;m considering using this technique to build a photo uploader whose UI is constructed in the DOM. The problem I face is how I&#039;ll show thumbnail previews of images on the local filesystem. 

My first idea was to try storing temporary files somewhere and embed images with file:///, but that fell flat on its face when I realized that browsers don&#039;t like mixing internet and local filesystem content on the same document (even with iframes). My next idea is to try running a small web server and bind to the loopback interface only, but I suspect this might cause significant security and firewall warnings/confusing user experience on, say, Vista and even XP SP2+. And I don&#039;t even want to know what might happen if the user is running some 3rd party product like Norton Internet Security. I haven&#039;t tested this yet and was hoping that binding to only the loopback interface might avoid these errors, but won&#039;t hold my breath.

Do you have any suggestions on how I could use a hidden applet to show rescaled thumbnail images from the local filesystem in the DOM?</description>
		<content:encoded><![CDATA[<p>This is an excellent post.</p>
<p>I&#8217;m considering using this technique to build a photo uploader whose UI is constructed in the DOM. The problem I face is how I&#8217;ll show thumbnail previews of images on the local filesystem. </p>
<p>My first idea was to try storing temporary files somewhere and embed images with file:///, but that fell flat on its face when I realized that browsers don&#8217;t like mixing internet and local filesystem content on the same document (even with iframes). My next idea is to try running a small web server and bind to the loopback interface only, but I suspect this might cause significant security and firewall warnings/confusing user experience on, say, Vista and even XP SP2+. And I don&#8217;t even want to know what might happen if the user is running some 3rd party product like Norton Internet Security. I haven&#8217;t tested this yet and was hoping that binding to only the loopback interface might avoid these errors, but won&#8217;t hold my breath.</p>
<p>Do you have any suggestions on how I could use a hidden applet to show rescaled thumbnail images from the local filesystem in the DOM?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tom</title>
		<link>http://windyroad.org/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/comment-page-1/#comment-50705</link>
		<dc:creator>tom</dc:creator>
		<pubDate>Sat, 19 Jul 2008 06:07:14 +0000</pubDate>
		<guid isPermaLink="false">http://howardfamily.id.au/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/#comment-50705</guid>
		<description>Thanks for letting me know.  Google had advised me earlier this week.  I suspect my site had been hacked using a vulnerability in an older version of WordPress.  I&#039;ve since upgraded to 2.6 and requested a review with Google.  Hopefully that should fix things up.</description>
		<content:encoded><![CDATA[<p>Thanks for letting me know.  Google had advised me earlier this week.  I suspect my site had been hacked using a vulnerability in an older version of WordPress.  I&#8217;ve since upgraded to 2.6 and requested a review with Google.  Hopefully that should fix things up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: harmic</title>
		<link>http://windyroad.org/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/comment-page-1/#comment-50465</link>
		<dc:creator>harmic</dc:creator>
		<pubDate>Fri, 18 Jul 2008 00:44:10 +0000</pubDate>
		<guid isPermaLink="false">http://howardfamily.id.au/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/#comment-50465</guid>
		<description>Hi,

Maybe you know this already, but your site has been flagged by google as being infected with some malware. See http://safebrowsing.clients.google.com/safebrowsing/diagnostic?client=Firefox&amp;hl=en-GB&amp;site=http://windyroad.org/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/.

When trying to access it using FireFox3, I get a scary warning each time I access any URL on your site.

// Mike</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Maybe you know this already, but your site has been flagged by google as being infected with some malware. See <a href="http://safebrowsing.clients.google.com/safebrowsing/diagnostic?client=Firefox&amp;hl=en-GB&amp;site=http://windyroad.org/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/" rel="nofollow">http://safebrowsing.clients.google.com/safebrowsing/diagnostic?client=Firefox&amp;hl=en-GB&amp;site=http://windyroad.org/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/</a>.</p>
<p>When trying to access it using FireFox3, I get a scary warning each time I access any URL on your site.</p>
<p>// Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: max</title>
		<link>http://windyroad.org/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/comment-page-1/#comment-49060</link>
		<dc:creator>max</dc:creator>
		<pubDate>Thu, 10 Jul 2008 02:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://howardfamily.id.au/2006/08/14/reintroducing-javascript-and-hidden-applets-jaha/#comment-49060</guid>
		<description>Still need to try this. But i think you save my life.</description>
		<content:encoded><![CDATA[<p>Still need to try this. But i think you save my life.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
