<?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>Holgers Blog &#187; Javascript</title>
	<atom:link href="http://grosse-plankermann.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://grosse-plankermann.com</link>
	<description>... mal Bloggen ...</description>
	<lastBuildDate>Tue, 11 May 2010 06:38:30 +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>Frameworks and Building blocks in Javascript</title>
		<link>http://grosse-plankermann.com/2008/10/16/frameworks-and-building-blocks-in-javascript/</link>
		<comments>http://grosse-plankermann.com/2008/10/16/frameworks-and-building-blocks-in-javascript/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 16:01:58 +0000</pubDate>
		<dc:creator>Holger</dc:creator>
				<category><![CDATA[Entwicklung]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://grosse-plankermann.com/?p=18</guid>
		<description><![CDATA[Ich habe grad auf Ajaxian mal wieder was spannendes entdeckt.
Muss ich mir die Tage mal näher anschauen.
]]></description>
			<content:encoded><![CDATA[<p>Ich habe grad auf Ajaxian mal wieder <a href="http://billhiggins.us/weblog/2008/10/10/frameworks-and-building-blocks/">was spannendes</a> entdeckt.</p>
<p>Muss ich mir die Tage mal näher anschauen.</p>
]]></content:encoded>
			<wfw:commentRss>http://grosse-plankermann.com/2008/10/16/frameworks-and-building-blocks-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tooltip via jQuery</title>
		<link>http://grosse-plankermann.com/2008/06/27/tooltip-via-jquery/</link>
		<comments>http://grosse-plankermann.com/2008/06/27/tooltip-via-jquery/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 09:15:38 +0000</pubDate>
		<dc:creator>Holger</dc:creator>
				<category><![CDATA[Entwicklung]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://grosse-plankermann.com/2008/06/27/tooltip-via-jquery/</guid>
		<description><![CDATA[Nachdem ich bisher fast alle Tooltips mit Hilfe von Yahoo UI umgesetzt habe, muss ich mal das Folgende ausprobieren:
http://plugins.learningjquery.com/cluetip/
Auch das IE6 Bleed-Through-Problem d&#252;rfte damit umgangen werden.
     
]]></description>
			<content:encoded><![CDATA[<p>Nachdem ich bisher fast alle Tooltips mit Hilfe von Yahoo UI umgesetzt habe, muss ich mal das Folgende ausprobieren:</p>
<p><a title="cluetip" href="http://plugins.learningjquery.com/cluetip/">http://plugins.learningjquery.com/cluetip/</a></p>
<p>Auch das IE6 Bleed-Through-Problem d&#252;rfte damit umgangen werden.</p>
<p><a title="cluetip" href="http://plugins.learningjquery.com/cluetip/">     <br /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://grosse-plankermann.com/2008/06/27/tooltip-via-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mein erstes jQuery Plugin.</title>
		<link>http://grosse-plankermann.com/2008/05/16/mein-erstes-jquery-plugin/</link>
		<comments>http://grosse-plankermann.com/2008/05/16/mein-erstes-jquery-plugin/#comments</comments>
		<pubDate>Fri, 16 May 2008 17:42:08 +0000</pubDate>
		<dc:creator>Holger</dc:creator>
				<category><![CDATA[Entwicklung]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://grosse-plankermann.com/2008/05/16/mein-erstes-jquery-plugin/</guid>
		<description><![CDATA[Ich mag jQuery! In vielen Software-Projekten, findet man einen Wildwuchs an selbstgestrickten JavaScript "Lösungen". Wenn man Probleme im Browser sauberer lösen möchte, so bietet sich jQuery, als einfaches aber auch mächtiges Werkzeug an. Ich habe es in einigen Projekten einsetzen können und es hat sich bisher immer bewährt. Aber das nur kurz zur Motivation. Im [...]]]></description>
			<content:encoded><![CDATA[<p>Ich mag <a title="JQuery" href="http://jquery.com">jQuery</a>! In vielen Software-Projekten, findet man einen Wildwuchs an selbstgestrickten JavaScript "Lösungen". Wenn man Probleme im Browser sauberer lösen möchte, so bietet sich jQuery, als einfaches aber auch mächtiges Werkzeug an. Ich habe es in einigen Projekten einsetzen können und es hat sich bisher immer bewährt. <span id="more-11"></span>Aber das nur kurz zur Motivation. Im letzten Projekt hatte ich die Möglichkeit den Plugin Mechanismus, den jQuery bietet, sinnvoll einzusetzen. Wir hatten das Problem, das das<br />
<code>disabled</code> Attribut für ein <code>&lt;a&gt;</code> nicht Browser Übergreifend konsistent dargestellt wird. Als Abhilfe habe ich jeweils zwei Varianten eines Links hinterlegt:<br />
Einen normalen, aktiven Link <code><a class="activeLink" href="someLink">Link</a></code> und einen inaktiven <code><a class="inactiveLink">Link</a></code><br />
Der <code>inactiveLink</code> kann nun per css <code>.inactiveLink{color:gray;}</code> gefÃ¤rbt werden.<br />
Um nun nach gewissen Regeln einen Link aktiv zu schalten, müsste man sich ohne jQuery oder ohne jQuery Plugin entweder das gesuchte Element "merken" (Stichwort:Dreicktausch), oder es müssten Elemente on-the-fly erzeugt werden. Diese Lösungen fand ich nicht schön, sondern ich wollte eine Lösung der Form</p>
<div class="igBar"><span id="ljavascript-3"><a href="#" onclick="javascript:showPlainTxt('javascript-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-3">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span>&gt;&lt;!--</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span>\\<span style="color: #3366CC;">'.activeLink<span style="color: #000099; font-weight: bold;">\\</span>'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">swapElements</span><span style="color: #66cc66;">&#40;</span>\\<span style="color: #3366CC;">'.inActiveLink<span style="color: #000099; font-weight: bold;">\\</span>'</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// --&gt;&lt;/script&gt; </span></div>
</li>
</ol>
</div>
</div>
</div>
<p> Das hält das Markup sauber!<br />
Folgender <a href="http://www.learningjquery.com/2007/10/a-plugin-development-pattern">Link</a> zeigt sehr schön, wie man so etwas anstellt. Die KernfunktionalitÃ¤t bildet folgender Schnipsel:</p>
<div class="igBar"><span id="ljavascript-4"><a href="#" onclick="javascript:showPlainTxt('javascript-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-4">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$.<span style="color: #006600;">fn</span>.<span style="color: #006600;">swapElements</span> = <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>options<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">debug<span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> opts=options;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// element to be swapped with</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$that=$<span style="color: #66cc66;">&#40;</span>opts<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">debug<span style="color: #66cc66;">&#40;</span>$that<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$that.<span style="color: #006600;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">each</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$this = $<span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">debug<span style="color: #66cc66;">&#40;</span>$this<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// build element specific options</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$this.<span style="color: #006600;">hide</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Hier passiert nicht viel: Das erste Element wird ausgeblendet und das zweite wird ausgeblendet. (Hmmm ich glaube ich sehe da grad noch einen kleinen Bug ...)<br />
Falls dies irgendwer nützlich findet, kann man das Plugin <a href="http://www.grosse-plankermann.com/files/download/jquery-swapElements.js">hier</a> herunterladen.<br />
Der letzte Trick besteht darin, das Plugin NACH der jQuery Bibliothek einzubinden.</p>
<p>Viel Spaß damit <img src='http://grosse-plankermann.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://grosse-plankermann.com/2008/05/16/mein-erstes-jquery-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
