<?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>Dev and some...</title>
	<atom:link href="http://www.xind-media.nl/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xind-media.nl/blog</link>
	<description></description>
	<lastBuildDate>Sun, 29 Aug 2010 09:23:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>GWT wrapper for Piwik</title>
		<link>http://www.xind-media.nl/blog/gwt-wrapper-for-piwik/</link>
		<comments>http://www.xind-media.nl/blog/gwt-wrapper-for-piwik/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 09:22:49 +0000</pubDate>
		<dc:creator>michel</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Google Web Toolkit]]></category>
		<category><![CDATA[piwik]]></category>

		<guid isPermaLink="false">http://www.xind-media.nl/blog/?p=22</guid>
		<description><![CDATA[Ever wanted to use Piwik on your GWT enabled sites? This library implements a java class for GWT allowing you to use Piwik functionality such a recording page hits, outbound link clicks and goals.
For now it is a simple wrapper around the piwik.js javascript, however, if time permits i&#8217;ll write a GWT java based implementation. [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wanted to use <a title="Piwik" href="http://piwik.org" target="_blank">Piwik</a> on your GWT enabled sites? This library implements a java class for GWT allowing you to use Piwik functionality such a recording page hits, outbound link clicks and goals.</p>
<p>For now it is a simple wrapper around the piwik.js javascript, however, if time permits i&#8217;ll write a GWT java based implementation. The wrapper is written in such a way that it will inject the piwik.js javascript from the GWT javascript without loading it from the server serving the page, saving one round trip over a seperate GWT+Piwik approach.</p>
<p>All the functions available from piwik.js are now available from the <em>com.xind.gwt.piwik.client.Piwik</em> interface. Using the library is very similar to how Piwik is called from javascript:</p>
<blockquote><p>Piwik piwik = new PiwikImpl(&lt;piwikId&gt;,&lt;url to Piwik.php&gt;);<br />
piwik.trackPageView();<br />
piwik.enableLinkTracking();</p></blockquote>
<p>Have not thoroughly tested all functions but the basics should be working fine. If not, do let me know.</p>
<p>The <a href="http://www.xind-media.nl/blog/wp-content/uploads/2010/08/xind-gwt-piwik-0.99-1.jar">library</a> is released under the <a href="http://www.gnu.org/licenses/gpl-3.0.html" target="_blank">GPL v3</a> license and currently supports Piwik release 0.99.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xind-media.nl/blog/gwt-wrapper-for-piwik/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Implementing getElementsByClassName for Google Web Toolkit</title>
		<link>http://www.xind-media.nl/blog/implementing-getelementsbyclassname-for-google-web-toolkit/</link>
		<comments>http://www.xind-media.nl/blog/implementing-getelementsbyclassname-for-google-web-toolkit/#comments</comments>
		<pubDate>Mon, 24 May 2010 02:48:26 +0000</pubDate>
		<dc:creator>michel</dc:creator>
				<category><![CDATA[Google Web Toolkit]]></category>

		<guid isPermaLink="false">http://www.xind-media.nl/blog/?p=7</guid>
		<description><![CDATA[Although the DOM implementation in GWT is very good, one function that I personally use a lot has been missing since the beginning and is also not expected to be there in release 2.1, getElementsByClassName.
The function is similar to getElementsByTagName, but instead of matching all elements against the tag name (e.g. A, DIV) it matches [...]]]></description>
			<content:encoded><![CDATA[<p>Although the DOM implementation in GWT is very good, one function that I personally use a lot has been missing since the beginning and is also not expected to be there in release 2.1, <em>getElementsByClassName</em>.</p>
<p>The function is similar to <em>getElementsByTagName</em>, but instead of matching all elements against the tag name (e.g. A, DIV) it matches against one or more CSS class names. In all modern browsers this function is implemented natively in the JavaScript <em>document</em> object. <a title="Quirksmode" href="http://www.quirksmode.org" target="_blank">Quirksmode</a> provides a good <a title="List of supported element retrieval functions" href="http://www.quirksmode.org/dom/w3c_core.html#gettingelements" target="_blank">list</a> on which browsers implement this and which do not.</p>
<p>In my library the function is in the <em>com.xind.gwt.dom.client.DOM</em> class, which has a generic implementation and specialized ones depending on the browsers capabilities. The generic implementation tests for the existence of the native function and uses it if available, if not, it uses a JavaScript implementation of it. For Internet Explorer the implementation never checks for the native function as no version implements it at this point.</p>
<p>Include the library in your build path and make sure you inherit the following module in your applications XML configuration file:</p>
<blockquote><p>&lt;inherits name=&#8221;com.xind.gwt.dom.DOM&#8221;/&gt;</p></blockquote>
<p>The library is licensed under the Apache License, Version 2.0 just like most of GWT. A copy of which can be obtained <a title="Apache License, Version 2.0" href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">here</a>.</p>
<p>As I use this library in my own projects, most of the testing has gone into my specific scenarios, do let me know if you find any issues.</p>
<p>The library can be downloaded here:</p>
<ul>
<li><a href="http://www.xind-media.nl/blog/wp-content/uploads/2010/05/xind-gwt-extensions-0.01.jar">xind-gwt-extensions-0.01</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.xind-media.nl/blog/implementing-getelementsbyclassname-for-google-web-toolkit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

