<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>dojoler</title>
	<atom:link href="http://dojoler.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dojoler.wordpress.com</link>
	<description>Developing Widgets with the Dojo-Toolkit</description>
	<lastBuildDate>Mon, 26 May 2008 16:19:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dojoler.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>dojoler</title>
		<link>http://dojoler.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dojoler.wordpress.com/osd.xml" title="dojoler" />
	<atom:link rel='hub' href='http://dojoler.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Dojo-Widget AddressReferrer</title>
		<link>http://dojoler.wordpress.com/2008/05/26/dojo-widget-addressreferrer/</link>
		<comments>http://dojoler.wordpress.com/2008/05/26/dojo-widget-addressreferrer/#comments</comments>
		<pubDate>Mon, 26 May 2008 13:54:56 +0000</pubDate>
		<dc:creator>Oliver Köhler</dc:creator>
				<category><![CDATA[Dojo-Widget]]></category>
		<category><![CDATA[AddressReferrer]]></category>
		<category><![CDATA[dojo]]></category>
		<category><![CDATA[Pavone]]></category>
		<category><![CDATA[Skype]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://dojoler.wordpress.com/?p=3</guid>
		<description><![CDATA[Now that we got suitable webspace we would like to present our widgets. The first widget we developed is the AddressReferrer. It transforms a usual inputfield into an inputfield with a predefined contextual function. Example: If you have a field with a phonenumber you could generate a bottom that starts skype to call this number. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dojoler.wordpress.com&amp;blog=3418162&amp;post=3&amp;subd=dojoler&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Now that we got suitable webspace we would like to present our widgets.</p>
<p>The first widget we developed is the <strong>AddressReferrer</strong>. It transforms a usual inputfield into an inputfield with a predefined contextual function.</p>
<p>Example: If you have a field with a phonenumber you could generate a bottom that starts skype to call this number.</p>
<p><a title="AddressReferrer Demo" href="http://web1.pavone.de/pav53/AddressReferrer.html" target="_blank">Demo</a></p>
<p>How to use:</p>
<p>In the <strong>head </strong>of the page you have to include some scripts like it is displayed below.</p>
<p>In the <strong>body</strong>:</p>
<ul>
<li>declare your inputfield with the <strong>dojoType </strong>&#8220;pavone.widget.AddressReferrer&#8221;</li>
<li><strong>reftype </strong>is the type of the protocol that you want to use
<ul>
<li>predefined types are
<ul>
<li>&#8220;skype&#8221; for skype-protocol</li>
<li>&#8220;email&#8221; for e-mail</li>
<li>&#8220;http&#8221; for website links</li>
</ul>
</li>
</ul>
</li>
<li><strong>label </strong>is the image that should be displayed</li>
<li><strong>title </strong>is the alternative text of the image</li>
<li>assign a unique <strong>id </strong>to every inputfield</li>
</ul>
<p><span class="start-tag"> &lt;input</span><span class="attribute-name"> dojoType</span>=<span class="attribute-value">&#8220;pavone.widget.AddressReferrer&#8221; </span><span class="attribute-name">value</span>=<span class="attribute-value">&#8220;2355&#8243; </span><span class="attribute-name">reftype</span>=<span class="attribute-value">&#8220;skype&#8221; </span><span class="attribute-name">id</span>=<span class="attribute-value">&#8220;ID1&#8243; </span><span class="attribute-name">label</span>=<span class="attribute-value">&#8220;images/skype.gif&#8221; </span><span class="attribute-name">title</span>=<span class="attribute-value">&#8220;anrufen&#8221;</span><span class="error"><span class="attribute-name">/</span></span>&gt;</p>
<p>Include in your html-file:</p>
<ol>
<li>
<address>&lt;html&gt;</address>
</li>
<li>
<address> &lt;head&gt;</address>
</li>
<li>
<address> &#8230;</address>
</li>
<li>
<address> &lt;<span class="start-tag">style</span><span class="attribute-name"> type</span>=<span class="attribute-value">&#8220;text/css&#8221;</span>&gt;</address>
</li>
<li>
<address> @import &#8220;../../AddressReferrer.css&#8221;; //path to your stylesheet<br />
</address>
</li>
<li>
<address> &lt;/<span class="end-tag">style</span>&gt;</address>
</li>
<li>
<address> &#8230;</address>
</li>
<li>
<address> &lt;<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">&#8220;text/javascript&#8221; </span><span class="attribute-name">src</span>=<span class="attribute-value">&#8220;../../dojo/dojo.js&#8221; </span><span class="attribute-name">djConfig</span>=<span class="attribute-value">&#8220;isDebug:true, parseOnLoad: true&#8221;</span>&gt;&lt;/<span class="end-tag">script</span>&gt; //path to dojo<br />
</address>
</li>
<li>
<address> &lt;<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">&#8220;text/javascript&#8221; </span><span class="attribute-name">src</span>=<span class="attribute-value">&#8220;../../dojo/pavone/AddressReferrer.js&#8221;</span>&gt;&lt;/<span class="end-tag">script</span>&gt; //path to the widget<br />
</address>
</li>
<li>
<address> &lt;<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">&#8220;text/javascript&#8221;</span>&gt;</address>
</li>
<li>
<address> dojo.require(&#8220;dojo.parser&#8221;);	// scan page for widgets and instantiate them</address>
</li>
<li>
<address> &lt;/<span class="end-tag">script</span>&gt;</address>
</li>
<li>
<address> &#8230;</address>
</li>
<li>
<address> &lt;/head&gt;</address>
</li>
<li>
<address> &lt;body&gt;</address>
</li>
<li>
<address> &#8230;</address>
</li>
<li>
<address><span class="start-tag"> &lt;input</span><span class="attribute-name"> dojoType</span>=<span class="attribute-value">&#8220;pavone.widget.AddressReferrer&#8221; </span><span class="attribute-name">value</span>=<span class="attribute-value">&#8220;2355&#8243; </span><span class="attribute-name">reftype</span>=<span class="attribute-value">&#8220;skype&#8221; </span><span class="attribute-name">id</span>=<span class="attribute-value">&#8220;ID1&#8243; </span><span class="attribute-name">label</span>=<span class="attribute-value">&#8220;images/skype.gif&#8221; </span><span class="attribute-name">title</span>=<span class="attribute-value">&#8220;anrufen&#8221;</span><span class="error"><span class="attribute-name">/</span></span>&gt;</address>
</li>
<li>
<address> &#8230;</address>
</li>
<li>
<address> &lt;/body&gt;</address>
</li>
<li>
<address>&lt;/head&gt;</address>
</li>
</ol>
<p>Sourcecode of AddressReferrer.js:</p>
<ol></ol>
<ol>
<li>/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</li>
<li>*</li>
<li>*  Developed for a project at the University of Paderborn under the direction of</li>
<li>*  the PAVONE AG (www.pavone.de) and the Groupware Competence Centers (gcc.upb.de)</li>
<li>*</li>
<li>*  Licensed under the Academic Free License</li>
<li>*</li>
<li>*  Developed by Oliver Koehler, Coskun Durmaz, Natnael Tesfamariam</li>
<li>*</li>
<li>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;*/</li>
<li></li>
<li>if(!dojo._hasResource["pavone.widget.AddressReferrer"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.</li>
<li>dojo._hasResource["pavone.widget.AddressReferrer"] = true;</li>
<li>dojo.provide(&#8220;pavone.widget.AddressReferrer&#8221;);</li>
<li>dojo.require(&#8220;dijit.form._FormWidget&#8221;);</li>
<li>dojo.require(&#8220;dijit._Templated&#8221;);</li>
<li>dojo.require(&#8216;dijit.form.Button&#8217;);</li>
<li>dojo.declare(&#8220;pavone.widget.AddressReferrer&#8221;,</li>
<li> [dijit.form._FormWidget],</li>
<li> {</li>
<li> label: &#8220;&#8221;,</li>
<li> reftype: &#8220;&#8221;,</li>
<li> target: &#8220;&#8221;,</li>
<li> templateString: &#8216;&lt;div class=\&#8221;AddressRef\&#8221;&gt;&#8217;+</li>
<li> &#8216;&lt;input type=\&#8221;text\&#8221; dojoAttachEvent=\&#8221;onchange:_onChange\&#8221; id=\&#8221;ID${id}\&#8221; value=\&#8221;${value}\&#8221;   reftype=\&#8221;${reftype}\&#8221; dojoType=\&#8221;dijit.form.TextBox\&#8221; dojoAttachPoint=\&#8221;focusNode, inputNode\&#8221; trim=\&#8221;true\&#8221; propercase=\&#8221;true\&#8221; /&gt;&#8217;+</li>
<li> &#8216;&lt;button class=\&#8221;AddressRefButton \&#8221; dojoType=\&#8221;dijit.form.Button\&#8221; dojoAttachEvent=\&#8221;onclick:_onClick\&#8221; dojoAttachPoint=\&#8221;focusNode, inputNode\&#8221;&gt;&lt;image src=\&#8221;${label}\&#8221; title=\&#8221;${title}\&#8221; alt=\&#8221;${title}\&#8221;&gt;&#8217;+</li>
<li> &#8216;&lt;/img&gt;&lt;/button&gt; \n\t&lt;\div&gt;&#8217;,</li>
<li> _onChange: function () {</li>
<li> this.value = dojo.byId(&#8216;ID&#8217;+this.id).value;</li>
<li> },</li>
<li> _onClick: function () {</li>
<li> var refType = this.reftype;</li>
<li> var tar = this.target;</li>
<li> var ref;</li>
<li> var target;</li>
<li> switch (refType) {</li>
<li> case &#8220;skype&#8221;: ref = &#8220;skype://&#8221;;</li>
<li> target = &#8220;self&#8221;;</li>
<li> break;</li>
<li> case &#8220;email&#8221;: ref = &#8220;mailto:&#8221;;</li>
<li> target = &#8220;self&#8221;;</li>
<li> break;</li>
<li> case &#8220;http&#8221;:  ref = &#8220;&#8221;;</li>
<li> target = &#8220;new&#8221;;</li>
<li> break;</li>
<li> default: ref = refType;</li>
<li> target = tar;</li>
<li> }</li>
<li> var address = this.value;</li>
<li> address = address.replace(/[' ']/g , &#8221;);</li>
<li> if (target==&#8221;self&#8221;) {</li>
<li> document.location.href=ref+&#8221;"+address;</li>
<li> } else if (target==&#8221;new&#8221;) {</li>
<li> window.open(ref+&#8221;"+address);</li>
<li> }</li>
<li> }</li>
<li> });</li>
<li>}</li>
</ol>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dojoler.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dojoler.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dojoler.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dojoler.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dojoler.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dojoler.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dojoler.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dojoler.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dojoler.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dojoler.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dojoler.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dojoler.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dojoler.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dojoler.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dojoler.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dojoler.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dojoler.wordpress.com&amp;blog=3418162&amp;post=3&amp;subd=dojoler&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dojoler.wordpress.com/2008/05/26/dojo-widget-addressreferrer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/264a76e310dfaf719f2c22c0b82d728f?s=96&#38;d=identicon" medium="image">
			<media:title type="html">okoehler</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://dojoler.wordpress.com/2008/04/08/hello-world/</link>
		<comments>http://dojoler.wordpress.com/2008/04/08/hello-world/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 16:19:48 +0000</pubDate>
		<dc:creator>Oliver Köhler</dc:creator>
				<category><![CDATA[Generally]]></category>
		<category><![CDATA[license]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hello World, this blog was created for providing widgets we developed for a projekt at the University of Paderborn under administration of the PAVONE AG and the Groupware Competence Center. We invite you to post your comments an help us to improve our widgets. The widgets will follow as soon as we get some suitable [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dojoler.wordpress.com&amp;blog=3418162&amp;post=1&amp;subd=dojoler&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello World,</p>
<p>this blog was created for providing widgets we developed for a projekt at the University of Paderborn under administration of the <a title="www.pavone.de" href="http://www.pavone.de" target="_blank">PAVONE AG</a> and the <a title="gcc.upb.de" href="http://gcc.upb.de" target="_blank">Groupware Competence Center</a>.</p>
<p>We invite you to post your comments an help us to improve our widgets.</p>
<p>The widgets will follow as soon as we get some suitable webspace.</p>
<p>All displayed widgets are licensed under the <strong>Academic Free License</strong></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dojoler.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dojoler.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dojoler.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dojoler.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dojoler.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dojoler.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dojoler.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dojoler.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dojoler.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dojoler.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dojoler.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dojoler.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dojoler.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dojoler.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dojoler.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dojoler.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dojoler.wordpress.com&amp;blog=3418162&amp;post=1&amp;subd=dojoler&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dojoler.wordpress.com/2008/04/08/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/264a76e310dfaf719f2c22c0b82d728f?s=96&#38;d=identicon" medium="image">
			<media:title type="html">okoehler</media:title>
		</media:content>
	</item>
	</channel>
</rss>
