<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>labs.groupwave &#187; JavaScript</title>
	<atom:link href="http://labs.groupwave.be/index.php/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://labs.groupwave.be</link>
	<description>Lotus, PhP, J2EE Technology Partner</description>
	<lastBuildDate>Thu, 06 Oct 2011 11:54:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Java agent to get an rss feed behind a proxy server</title>
		<link>http://labs.groupwave.be/index.php/2009/09/10/java-agent-to-get-an-rss-feed-behind-a-proxy-server/</link>
		<comments>http://labs.groupwave.be/index.php/2009/09/10/java-agent-to-get-an-rss-feed-behind-a-proxy-server/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 15:18:54 +0000</pubDate>
		<dc:creator>Ken</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Groupwave]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Lotus Notes]]></category>

		<guid isPermaLink="false">http://labs.groupwave.be/?p=102</guid>
		<description><![CDATA[I just finished developing the integration of this blog in our company website (under &#8216;Portfolio&#8217; on the right). This site is running on domino. This is how I accomplished this: Create a java agent to read the rss feed. On the web page, use an XmlHttpRequest to call the agent and get the XML. Also [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished developing the integration of this blog in <a href="http://www.groupwave.be" target="_new">our company website</a> (under &#8216;Portfolio&#8217; on the right).</p>
<p>This site is running on domino. This is how I accomplished this:</p>
<ol>
<li>Create a java agent to read the rss feed.</li>
<li>On the web page, use an XmlHttpRequest to call the agent and get the XML.</li>
<li>Also in javascript: parse the XML to HTML and put in a div on the website.</li>
</ol>
<p>The code for step 2 and 3, you can see on our website: just download the javascript code (we use dojo as a framework).</p>
<p>Step 1 is also fairly simple. Here is the most important part of the code:</p>
<pre><span style="color: #3366ff;">Session session = getSession();
AgentContext agentContext = session.getAgentContext();
</span><span style="color: #3366ff;">PrintWriter p</span><span style="color: #3366ff;"><span style="color: #3366ff;">w </span>= getAgentOutput();
pw.println("Content-type: text/xml; charset=utf-8");
URL labs = new URL("http://labs.groupwave.be/index.php/feed/");
BufferedReader in = new BufferedReader(new InputStreamReader(labs.openStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
pw.println(inputLine);
in.close();</span></pre>
<p>The tricky part for me was the get past our proxy server. I was testing this code on my local domino server meaning that the proxy server had to be used to access the internet (and the feed). I tried modifying the server document and setting the agent security to allow unrestricted operations. To no avail.</p>
<p>Then I found out that the <strong>java.policy</strong> file (in the &#8216;jvm/lib/security&#8217; folder) has to be modified to allow java to modify system settings. And that&#8217;s what&#8217;s needed  to set up the proxy server in java:</p>
<pre><span style="color: #3366ff;">java.util.Properties sysProps = System.getProperties();
sysProps.put("proxySet", "true");</span><span style="color: #3366ff;">
sysProps.put("proxyHost", "proxy.iconos.be");
sysProps.put("proxyPort", "8080");</span></pre>
<address>(this is the code I inserted in the first piece of code to get it to work with the proxy server)</address>
<p>This is what you need to add in the <strong>java.policy</strong> file to get this to work (in the &#8216;grant&#8217; section &#8211; &#8220;default permissions granted to all domains&#8221;):</p>
<pre>permission java.security.AllPermission
permission java.util.PropertyPermission "proxySet", "write";
permission java.util.PropertyPermission "proxyHost", "write";
permission java.util.PropertyPermission "proxyPort", "write";</pre>
<p>Hope this helps some of you&#8230;</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark:</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Flabs.groupwave.be%2Findex.php%2F2009%2F09%2F10%2Fjava-agent-to-get-an-rss-feed-behind-a-proxy-server%2F&amp;title=Java+agent+to+get+an+rss+feed+behind+a+proxy+server" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://labs.groupwave.be/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Flabs.groupwave.be%2Findex.php%2F2009%2F09%2F10%2Fjava-agent-to-get-an-rss-feed-behind-a-proxy-server%2F&amp;title=Java+agent+to+get+an+rss+feed+behind+a+proxy+server" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://labs.groupwave.be/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Flabs.groupwave.be%2Findex.php%2F2009%2F09%2F10%2Fjava-agent-to-get-an-rss-feed-behind-a-proxy-server%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://labs.groupwave.be/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Flabs.groupwave.be%2Findex.php%2F2009%2F09%2F10%2Fjava-agent-to-get-an-rss-feed-behind-a-proxy-server%2F&amp;title=Java+agent+to+get+an+rss+feed+behind+a+proxy+server" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://labs.groupwave.be/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Flabs.groupwave.be%2Findex.php%2F2009%2F09%2F10%2Fjava-agent-to-get-an-rss-feed-behind-a-proxy-server%2F&amp;title=Java+agent+to+get+an+rss+feed+behind+a+proxy+server" rel="nofollow" title="Add to&nbsp;LinkedIn"><img class="social_img" src="http://labs.groupwave.be/wp-content/plugins/social-bookmarks/images/linkedin.png" title="Add to&nbsp;LinkedIn" alt="Add to&nbsp;LinkedIn" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Flabs.groupwave.be%2Findex.php%2F2009%2F09%2F10%2Fjava-agent-to-get-an-rss-feed-behind-a-proxy-server%2F&amp;title=Java+agent+to+get+an+rss+feed+behind+a+proxy+server" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://labs.groupwave.be/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Flabs.groupwave.be%2Findex.php%2F2009%2F09%2F10%2Fjava-agent-to-get-an-rss-feed-behind-a-proxy-server%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://labs.groupwave.be/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Java+agent+to+get+an+rss+feed+behind+a+proxy+server+@+http%3A%2F%2Flabs.groupwave.be%2Findex.php%2F2009%2F09%2F10%2Fjava-agent-to-get-an-rss-feed-behind-a-proxy-server%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://labs.groupwave.be/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://labs.groupwave.be/index.php/2009/09/10/java-agent-to-get-an-rss-feed-behind-a-proxy-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FCK Editor Plugin: Internal Links</title>
		<link>http://labs.groupwave.be/index.php/2007/10/23/fck-editor-plugin-internal-links/</link>
		<comments>http://labs.groupwave.be/index.php/2007/10/23/fck-editor-plugin-internal-links/#comments</comments>
		<pubDate>Tue, 23 Oct 2007 15:50:56 +0000</pubDate>
		<dc:creator>Ken</dc:creator>
				<category><![CDATA[Groupwave]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://labs.groupwave.be/index.php/2007/10/23/fck-editor-plugin-internal-links/</guid>
		<description><![CDATA[REMARK: below post is for FCKEditor version 2.4.3. and does not work in 2.6! Here is the updated code (thanks to Yves Venken): GWinternalLink for fckeditor 2.6.x Remark: Don&#8217;t forget this in your fckeditor config file: FCKConfig.Plugins.Add(&#8216;gwinternallink&#8217;, &#8216;nl&#8217;); for more info, just ask: us ORIGINAL TEXT: A client is using the FCK Editor as a [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;"><strong>REMARK</strong></span>: below post is for FCKEditor version 2.4.3. and does not work in 2.6! Here is the updated code (thanks to Yves Venken):</p>
<p><a href="http://labs.groupwave.be/wp-content/uploads/2008/11/gwinternallinkfckeditor26x.zip">GWinternalLink for fckeditor 2.6.x</a></p>
<p>Remark: Don&#8217;t forget this in your fckeditor config file:</p>
<p>FCKConfig.Plugins.Add(&#8216;gwinternallink&#8217;, &#8216;nl&#8217;);</p>
<p>for more info, just ask: <a href="mailto:info@group-wave.be">us</a></p>
<p><span style="color: #0000ff;"><strong>ORIGINAL TEXT:</strong></span></p>
<p>A client is using the FCK Editor as a RTEditor for a CMS system we created, but FCK lacks the ability to insert &#8216;internal&#8217; website links.</p>
<p>Idea is that we present them with a list of the available pages with prebuilt links, so they can simply insert it as a normal link.</p>
<p>What you need to do to use it:</p>
<p>1. Download the <a title="FCK Internal Link Plugin" rel="attachment wp-att-36" href="http://labs.groupwave.be/index.php/2007/10/23/fck-editor-plugin-internal-links/fck-internal-link-plugin/">FCK Internal Link Plugin</a></p>
<p>2. Drop the plugin in the &#8216;plugins&#8217; folder of your FCK folder</p>
<p>3. Add a button in your FCK config file:</p>
<p><em>&#8230;['Link','Unlink','Anchor'],<br />
<strong>['gwinternallink'],</strong><br />
[&#8216;Image&#8217;,'Flash&#8217;,'Ta&#8230;</em></p>
<p>4. Put following function on the page where you embed the editor</p>
<p><strong><em>function getGwInternalLinks() {<br />
var linkArray = new Array(new Array(&#8220;title1&#8243;, &#8220;url1&#8243;),new Array(&#8220;title2&#8243;, &#8220;url2&#8243;),new Array(&#8220;title3&#8243;, &#8220;url3&#8243;));<br />
return linkArray;<br />
}</em> </strong></p>
<p>Off course you need to fill this array with appropriate values (you should have some sort of server script generate it).</p>
<p>5. Test it!</p>
<p>Generated links should work well with the default FCK link buttons. Hope it works. This is what it should look like:</p>
<p><img src="http://labs.groupwave.be/wp-content/uploads/2007/10/untitled.JPG" alt="Screenshot" width="460" height="319" /></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark:</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Flabs.groupwave.be%2Findex.php%2F2007%2F10%2F23%2Ffck-editor-plugin-internal-links%2F&amp;title=FCK+Editor+Plugin%3A+Internal+Links" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://labs.groupwave.be/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Flabs.groupwave.be%2Findex.php%2F2007%2F10%2F23%2Ffck-editor-plugin-internal-links%2F&amp;title=FCK+Editor+Plugin%3A+Internal+Links" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://labs.groupwave.be/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Flabs.groupwave.be%2Findex.php%2F2007%2F10%2F23%2Ffck-editor-plugin-internal-links%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://labs.groupwave.be/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Flabs.groupwave.be%2Findex.php%2F2007%2F10%2F23%2Ffck-editor-plugin-internal-links%2F&amp;title=FCK+Editor+Plugin%3A+Internal+Links" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://labs.groupwave.be/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Flabs.groupwave.be%2Findex.php%2F2007%2F10%2F23%2Ffck-editor-plugin-internal-links%2F&amp;title=FCK+Editor+Plugin%3A+Internal+Links" rel="nofollow" title="Add to&nbsp;LinkedIn"><img class="social_img" src="http://labs.groupwave.be/wp-content/plugins/social-bookmarks/images/linkedin.png" title="Add to&nbsp;LinkedIn" alt="Add to&nbsp;LinkedIn" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Flabs.groupwave.be%2Findex.php%2F2007%2F10%2F23%2Ffck-editor-plugin-internal-links%2F&amp;title=FCK+Editor+Plugin%3A+Internal+Links" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://labs.groupwave.be/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Flabs.groupwave.be%2Findex.php%2F2007%2F10%2F23%2Ffck-editor-plugin-internal-links%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://labs.groupwave.be/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+FCK+Editor+Plugin%3A+Internal+Links+@+http%3A%2F%2Flabs.groupwave.be%2Findex.php%2F2007%2F10%2F23%2Ffck-editor-plugin-internal-links%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://labs.groupwave.be/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://labs.groupwave.be/index.php/2007/10/23/fck-editor-plugin-internal-links/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

