<?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>Alexander Zerr &#187; Tipps</title>
	<atom:link href="http://www.xelaz.de/category/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xelaz.de</link>
	<description>Meine Erfahrungen in der Web Entwicklung</description>
	<lastBuildDate>Mon, 26 Sep 2011 18:30:56 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WWW Rewrite Rule</title>
		<link>http://www.xelaz.de/www-rewrite-rule/</link>
		<comments>http://www.xelaz.de/www-rewrite-rule/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 11:06:07 +0000</pubDate>
		<dc:creator>Alexander Zerr</dc:creator>
				<category><![CDATA[Tipps]]></category>
		<category><![CDATA[ModRewrite]]></category>
		<category><![CDATA[Subdomain]]></category>
		<category><![CDATA[Vhost]]></category>
		<category><![CDATA[WWW]]></category>

		<guid isPermaLink="false">http://www.xelaz.de/?p=430</guid>
		<description><![CDATA[Ich bin kein Fan von der Subdomain &#8220;WWW&#8221; und sie ist komplett überflüssig. Mit einem ModRewrite Rule kann man die www Subdomain umgehen in dem alles was auf www.domain.tld/inhalt-der-seite kommt direkt mit 301 auf domain.tld/inhalt-der-seite umleitet wird.
&#60;VirtualHost 127.0.0.1:80&#62;
ServerName domain.tld
&#60;Directory &#8220;/var/www/domain/&#8221;&#62;
AllowOverride All
Order allow,deny
Allow from all
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
&#60;/Directory&#62;
&#60;/VirtualHost&#62;
]]></description>
			<content:encoded><![CDATA[<p>Ich bin kein Fan von der Subdomain &#8220;WWW&#8221; und sie ist komplett überflüssig. Mit einem ModRewrite Rule kann man die www Subdomain umgehen in dem alles was auf <strong>www.domain.tld/inhalt-der-seite</strong> kommt direkt mit 301 auf <strong>domain.tld/inhalt-der-seite</strong> umleitet wird.</p>
<p>&lt;VirtualHost 127.0.0.1:80&gt;</p>
<p>ServerName domain.tld</p>
<p>&lt;Directory &#8220;/var/www/domain/&#8221;&gt;<br />
AllowOverride All<br />
Order allow,deny<br />
Allow from all<br />
<strong>RewriteEngine On<br />
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]<br />
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]</strong><br />
&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xelaz.de/www-rewrite-rule/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox Javascript Error Console</title>
		<link>http://www.xelaz.de/firefox-javascript-error-console/</link>
		<comments>http://www.xelaz.de/firefox-javascript-error-console/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 13:34:39 +0000</pubDate>
		<dc:creator>Alexander Zerr</dc:creator>
				<category><![CDATA[Tipps]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.xelaz.de/?p=418</guid>
		<description><![CDATA[Seit der Firefox 4 Version, haben sich die Entwickler entschieden die JavaScript Fehler nicht zu zeigen. So hab ich mich gewundert, dass ich voll den sauberen JasvaScript Code schreibe und bei Fehlern keine Error Meldungen in der Console oder dem Firebug sehen kann. Um die Fehler wieder zu sehen, muss man kleinen Eingriff in die [...]]]></description>
			<content:encoded><![CDATA[<p>Seit der Firefox 4 Version, haben sich die Entwickler entschieden die JavaScript Fehler nicht zu zeigen. So hab ich mich gewundert, dass ich voll den sauberen JasvaScript Code schreibe und bei Fehlern keine Error Meldungen in der Console oder dem Firebug sehen kann. Um die Fehler wieder zu sehen, muss man kleinen Eingriff in die Firefox Config machen:</p>
<ol>
<li>In der Adressleiste <strong>about:config</strong> eingeben und aufrufen.</li>
<li>Natürlich wird man Vorsichtig sein und es dem Firefox versprechen.</li>
<li>Nach errorconsole filtern.</li>
<li>Mit einem Doppelklick auf den Registry  Wert <strong>devtools.errorconsole.enabled</strong>, kann man ihn auf true setzen.</li>
<li>Alle Firefox Fenster schließen und neu starten.</li>
</ol>
<p>Jetzt bekommt man wie gewohnt alle JavaScript Fehlermeldungen zu sehen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xelaz.de/firefox-javascript-error-console/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kostenloser SSL Zertifikat für den Courier, Postfix und Apache</title>
		<link>http://www.xelaz.de/kostenloser-ssl-zertifikat-fur-den-courier-postfix-und-apache/</link>
		<comments>http://www.xelaz.de/kostenloser-ssl-zertifikat-fur-den-courier-postfix-und-apache/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 17:39:16 +0000</pubDate>
		<dc:creator>Alexander Zerr</dc:creator>
				<category><![CDATA[Tipps]]></category>
		<category><![CDATA[Courier]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Sicherheit]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[Zertifikat]]></category>

		<guid isPermaLink="false">http://www.xelaz.de/?p=406</guid>
		<description><![CDATA[Als ich vor halben Jahr meinen Server aufgesetzt habe, benutzte ich für Courier Imap Server den Standard Zertifikat der automatisch mit erstellt wird. Für den Postfix hab ich mir ein Zertifikat bei CACert erstellt. Doch leider hat mit diesen Zertifikaten Outlook Mail Client Probleme gehabt, da er ständig die Bestätigung brauchte. Vor kurzem bin ich [...]]]></description>
			<content:encoded><![CDATA[<p>Als ich vor halben Jahr meinen Server aufgesetzt habe, benutzte ich für Courier Imap Server den Standard Zertifikat der automatisch mit erstellt wird. Für den Postfix hab ich mir ein Zertifikat bei <a target="_blank" href="https://www.cacert.org">CACert</a> erstellt. Doch leider hat mit diesen Zertifikaten Outlook Mail Client Probleme gehabt, da er ständig die Bestätigung brauchte. Vor kurzem bin ich über den Artikel <a target="_blank" href="http://www.heise.de/security/artikel/SSL-fuer-lau-880221.html">SSL für lau</a> gestolpert und musste natürlich die Lösung ausprobieren. Da ich leider kein Server Admin bin, kamen schon die Probleme, wie richte ich den Courier Imap mit dem Zertifikat ein. </p>
<p>Nach kurzer suche und schlechten Anleitungen fand ich eine sehr ausführliche <a target="_blank" href="http://blog.dreckhaen.de/index.php?url=archives/32-Zertifikate-fuer-apache,-courier,-webmin,-postfix-einbinden.html">Anleitung</a> wie man Postfix und Courier mit den <a target="_blank" href="http://www.startssl.com/">StartSSL</a> Zertifikat konfiguriert. Sie hat mir geholfen erfolgreich meinen Server mit den Kostenlosem Zertifikat von StartSSL zu konfigurieren und dadurch habe ich jetzt Zertifikate für meine Domains die ohne Bestätigung von Outlook und den Browsern akzeptiert werden.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xelaz.de/kostenloser-ssl-zertifikat-fur-den-courier-postfix-und-apache/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Elastische Textareas mit jQuery</title>
		<link>http://www.xelaz.de/elastische-textareas-mit-jquery/</link>
		<comments>http://www.xelaz.de/elastische-textareas-mit-jquery/#comments</comments>
		<pubDate>Fri, 11 Mar 2011 10:27:34 +0000</pubDate>
		<dc:creator>Alexander Zerr</dc:creator>
				<category><![CDATA[Tipps]]></category>
		<category><![CDATA[Dynamisch]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Textarea]]></category>

		<guid isPermaLink="false">http://www.xelaz.de/?p=314</guid>
		<description><![CDATA[Ich wollte dynamische Textarea haben wie sie in Facebook gibt. So habe ich im Netz nach Lösungen gesucht und bin über mehrere Lösungen/Plugins gestolpert wie hier, hier oder hier, es gibt noch mehr. 
Alle diese Lösungen waren mir zu Groß und zu Komplex. Ich möchte nicht noch ein jQuery im jQuery haben, sondern Kurz und [...]]]></description>
			<content:encoded><![CDATA[<p>Ich wollte dynamische Textarea haben wie sie in Facebook gibt. So habe ich im Netz nach Lösungen gesucht und bin über mehrere Lösungen/Plugins gestolpert wie <a href="http://fer-menta.blogspot.com/2010/12/jquery-expanding-textarea.html" target="_blank">hier</a>, <a href="http://blogs.sitepoint.com/2009/07/30/build-auto-expanding-textarea-3/" target="_blank">hier</a> oder <a href="http://www.unwrongest.com/projects/elastic/" target="_blank">hier</a>, es gibt noch mehr. </p>
<p>Alle diese Lösungen waren mir zu Groß und zu Komplex. Ich möchte nicht noch ein jQuery im jQuery haben, sondern Kurz und Schmerzlos. Dazu waren ein paar Ansätze nicht so Flexibel, da sie die Größe des Textarea an den Umbrüchen des Inhalts bestimmen und das muss wiederum mit ein paar Wrapper CSS Methoden gefixt werden, was wiederum viel eingriff in den Quelltext des Projekts bedeutet. </p>
<p>Die ganzen Unzufriedenheiten haben mich dazu veranlasst selber zu experimentieren. Und nach kurzer Zeit fand ich eine EinfachGenialeLösung so wie eine Axt, sie hat nur ein Beil und Keil das wars!</p>
<p>Mein Ansatz braucht etwas CSS und nur maximal 400Bytes kleinen jQuery Plugin.</p>

<div class="wp_syntax"><div class="code"><pre class="css">textarea<span style="color: #6666ff;">.input</span> <span style="color: #66cc66;">&#123;</span>
    	width<span style="color: #3333ff;">:<span style="color: #933;">500px</span></span><span style="color: #66cc66;">;</span> 
    	line-height<span style="color: #3333ff;">:<span style="color: #933;">16px</span></span><span style="color: #66cc66;">;</span> 
    	height<span style="color: #3333ff;">:<span style="color: #933;">16px</span></span><span style="color: #66cc66;">;</span> 
<span style="color: #66cc66;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre>&lt;textarea class=&quot;input&quot; name=&quot;name&quot;&gt;Dynamischer Inhalt&lt;/textarea&gt;</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="javascript">jQuery.<span style="color: #006600;">fn</span>.<span style="color: #006600;">elasticArea</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>
  <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>
    <span style="color: #003366; font-weight: bold;">function</span> resizeTextarea<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
      <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">style</span>.<span style="color: #006600;">height</span> = <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">scrollHeight</span><span style="color: #66cc66;">/</span><span style="color: #CC0000;">2</span> + <span style="color: #3366CC;">'px'</span>;
      <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">style</span>.<span style="color: #006600;">height</span> = <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">scrollHeight</span> + <span style="color: #3366CC;">'px'</span>;
    <span style="color: #66cc66;">&#125;</span>
    $<span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">keypress</span><span style="color: #66cc66;">&#40;</span>resizeTextarea<span style="color: #66cc66;">&#41;</span>
    .<span style="color: #006600;">keydown</span><span style="color: #66cc66;">&#40;</span>resizeTextarea<span style="color: #66cc66;">&#41;</span>
    .<span style="color: #006600;">keyup</span><span style="color: #66cc66;">&#40;</span>resizeTextarea<span style="color: #66cc66;">&#41;</span>
    .<span style="color: #006600;">css</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'overflow'</span>,<span style="color: #3366CC;">'hidden'</span><span style="color: #66cc66;">&#41;</span>;
    resizeTextarea.<span style="color: #006600;">call</span><span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #66cc66;">&#41;</span>;
  <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>;
&nbsp;
$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'textarea.input'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">elasticArea</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>Dieser Ansatz funktioniert mit der Eigenschaft scrollHeight. Sie ist sehr Präzise und gibt genau die maximale Höhe der Textarea mit Inhalt. So nehme ich sie, Teile durch die Hälfte und setze sie der Textarea als Höhe ein. Danach wird sie wieder als Textarea Höhe gesetzt. Das macht die Textarea dynamisch in beide Richtungen wenn neuer Text eingefügt oder gelöscht wird und es passiert so schnell, dass man nichts davon mitkriegt.</p>
<p>Das ganze ist Dynamisch und wurde miniklein gehalten. So kann jeder selbst den Code nach seinen Wünschen erweitern falls er noch maximale Höhe haben möchte, die Höhe per Parameter übergeben ohne die CSS an zufassen oder sonstige Schnickschnacks.</p>
<p>Getestet hab ich in gängigen Browsern. Kann sein das irgend wo noch was hängt, aber alle von mir getesteten neue Browser haben es ohne Probleme geschluckt.</p>
<p>Eingesetzt können diese Elastischen Textareas als Input Felder. Weil ohne Inhalt sind sie so groß wie Inputs und können dynamisch mit dem Inhalt wachsen.</p>
<p>Hier ist noch eine <a href="/wp-content/uploads/2011/03/textarea.html">Live Demo</a>.</p>
<p>Das wars und mehr brauche ich nicht.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xelaz.de/elastische-textareas-mit-jquery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CKEditor onChange Event</title>
		<link>http://www.xelaz.de/ckeditor-onchange-event/</link>
		<comments>http://www.xelaz.de/ckeditor-onchange-event/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 21:14:26 +0000</pubDate>
		<dc:creator>Alexander Zerr</dc:creator>
				<category><![CDATA[Tipps]]></category>
		<category><![CDATA[CKEditor]]></category>
		<category><![CDATA[Event]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[onChange]]></category>

		<guid isPermaLink="false">http://www.xelaz.de/?p=299</guid>
		<description><![CDATA[Vor ein paar Wochen habe ich lange nach einer Lösung gesucht und aufgegeben, weil auch die CKEditor Event Seite war mir nicht genug. Heute hab ich es nochmal probiert und fand hier die Lösung:

var ckeditorInstance = CKEDITOR.replace&#40;&#34;mytextarea&#34;&#41;;
&#160;
ckeditorInstance.on&#40;&#34;instanceReady&#34;, function&#40;&#41;
&#123;
	this.document.on&#40;&#34;keyup&#34;, CKCHANGED&#41;;
	this.document.on&#40;&#34;paste&#34;, CKCHANGED&#41;;
&#125;
&#41;;
function CKCHANGED&#40;&#41; &#123; 
	formchanged = 1;
&#125;

Gebraucht wird die Lösung um zu erkennen ob der User den [...]]]></description>
			<content:encoded><![CDATA[<p>Vor ein paar Wochen habe ich lange nach einer Lösung gesucht und aufgegeben, weil auch die <a target="_blank" href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.event.html">CKEditor Event</a> Seite war mir nicht genug. Heute hab ich es nochmal probiert und fand <a target="_blank" href="http://de.w3support.net/index.php?db=so&#038;id=924145">hier</a> die Lösung:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript"><span style="color: #003366; font-weight: bold;">var</span> ckeditorInstance = CKEDITOR.<span style="color: #006600;">replace</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;mytextarea&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
ckeditorInstance.<span style="color: #006600;">on</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;instanceReady&quot;</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>
	<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">document</span>.<span style="color: #006600;">on</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;keyup&quot;</span>, CKCHANGED<span style="color: #66cc66;">&#41;</span>;
	<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">document</span>.<span style="color: #006600;">on</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;paste&quot;</span>, CKCHANGED<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#41;</span>;
<span style="color: #003366; font-weight: bold;">function</span> CKCHANGED<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> 
	formchanged = <span style="color: #CC0000;">1</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>Gebraucht wird die Lösung um zu erkennen ob der User den Inhalt im CKEditor Textarea geändert hat und ihn beim verlassen der Seite zu warnen, dass er sein Code verändert hat ohne gespeichert zu haben. (Ich benutze es mit jQuery)</p>

<div class="wp_syntax"><div class="code"><pre class="javascript">&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> formchanged = <span style="color: #CC0000;">0</span>;
<span style="color: #003366; font-weight: bold;">var</span> submitted = <span style="color: #CC0000;">0</span>;
&nbsp;
$<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</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>
	$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'form'</span><span style="color: #66cc66;">&#41;</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>i,n<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
		$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'input'</span>, n<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">change</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>formchanged = <span style="color: #CC0000;">1</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
		$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'textarea'</span>, n<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">change</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>formchanged = <span style="color: #CC0000;">1</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
		$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'select'</span>, n<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">change</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>formchanged = <span style="color: #CC0000;">1</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>; 
		$<span style="color: #66cc66;">&#40;</span>n<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">submit</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>submitted=<span style="color: #CC0000;">1</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
window.<span style="color: #006600;">onbeforeunload</span> = confirmExit;
<span style="color: #003366; font-weight: bold;">function</span> confirmExit<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>formchanged == <span style="color: #CC0000;">1</span> <span style="color: #66cc66;">&amp;&amp;</span> submitted == <span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #3366CC;">&quot;Sie verlassen die Seite ohne gespeichern zu haben.&quot;</span>;
	<span style="color: #000066; font-weight: bold;">else</span> 
		<span style="color: #000066; font-weight: bold;">return</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.xelaz.de/ckeditor-onchange-event/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

