<?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; JavaScript</title>
	<atom:link href="http://www.xelaz.de/tag/javascript/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>Show Blocks in TinyMce</title>
		<link>http://www.xelaz.de/show-blocks-in-tinymce/</link>
		<comments>http://www.xelaz.de/show-blocks-in-tinymce/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 17:03:40 +0000</pubDate>
		<dc:creator>Alexander Zerr</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[CKEditor]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[TinyMCE]]></category>

		<guid isPermaLink="false">http://www.xelaz.de/?p=470</guid>
		<description><![CDATA[Mit dem TinyMce bin ich soweit zufrieden. Er erfühlt zurzeit noch meine Bedürfnisse, doch eins viel mir ein als ich beim CKEditor eine Funktion bemerkte die so in TinyMce nicht vorhanden ist. Mit der Funktion kann man die Elemente im Text heforheben mit einem Rahmen der zeigt welches Element es ist. Leider hat TinyMce von [...]]]></description>
			<content:encoded><![CDATA[<p>Mit dem TinyMce bin ich soweit zufrieden. Er erfühlt zurzeit noch meine Bedürfnisse, doch eins viel mir ein als ich beim CKEditor eine Funktion bemerkte die so in TinyMce nicht vorhanden ist. Mit der Funktion kann man die Elemente im Text heforheben mit einem Rahmen der zeigt welches Element es ist. Leider hat TinyMce von Haus aus nicht dieses Feature und ich hab leider kein Plugin gefunden welches mir diese Funktion gib. So musste ich etwas Hand anlegen und eigenen Plugin schreiben. </p>
<p>Das Ergebnis ist einfach geschrieben, reicht mir vollkommen aus und bietet mir jetzt die Möglichkeit die Elemente mit Rahmen zu versehen wie im Screenshot zu sehen:<br />
<img src="http://www.xelaz.de/wp-content/uploads/2011/09/show_blocks.jpg" alt="" title="show_blocks" width="560" class="alignnone size-full wp-image-471" /></p>
<p>Das Plugin benötigt <strong>jQuery</strong> und kann schnell in den TinyMce integriert werden:</p>
<p><strong>1. Schritt:</strong> Plugin <a href="http://www.xelaz.de/wp-content/uploads/2011/09/showblocks.zip"><strong>hier runter laden</strong></a> und in den <strong>tiny_mce/plugins</strong> Ordner entpacken.</p>
<p><strong>2. Schritt:</strong> TinyMce Config mit dem Parameter <strong>showblocks</strong> erweitern.</p>
<p><strong>TinyMce Config:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="javascript">plugins : <span style="color: #3366CC;">&quot;pluginA,pluginB,PluginC,...,showblocks&quot;</span>,
theme_advanced_buttons1 : <span style="color: #3366CC;">&quot;showblocks,|,bold,italic,underline,strikethrough,...&quot;</span></pre></div></div>

<p><strong>3. Schritt:</strong> Jetzt kann man den Plugin etwas steuern, in dem man im sagen kann ob er schon sofort die Elemente umrahmen soll oder man kann die Hover Funktion abschalten.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript">show_blocks: <span style="color: #CC0000;">1</span>, <span style="color: #009900; font-style: italic;">// (optional) show blocks by open the editor</span>
show_blocks_hover: <span style="color: #CC0000;">0</span> <span style="color: #009900; font-style: italic;">// (optional) hover Tag name 1 or show it permanent 0</span></pre></div></div>

<p>Viel Spaß.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xelaz.de/show-blocks-in-tinymce/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>TripleSearch mit Google, Yahoo und Bing</title>
		<link>http://www.xelaz.de/triplesearch-mit-google-yahoo-und-bing/</link>
		<comments>http://www.xelaz.de/triplesearch-mit-google-yahoo-und-bing/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 11:19:02 +0000</pubDate>
		<dc:creator>Alexander Zerr</dc:creator>
				<category><![CDATA[Meine Links]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.xelaz.de/?p=345</guid>
		<description><![CDATA[Hab für mich eine kleine TripleSearch entwickelt auf der API Basis der Suchmaschinen. Schade das Google seine Search API als Deprecated gemeldet hat und die neue 2.0 lässt die Globale Suche nicht mehr zu. Yahoo hat ihre eigene YQL und Bing eine Javascript Schnittstelle.
]]></description>
			<content:encoded><![CDATA[<p>Hab für mich eine kleine <a href="http://www.plumi.de" title="TripleSearch mit Google, Yahoo und Bing">TripleSearch</a> entwickelt auf der API Basis der Suchmaschinen. Schade das Google seine Search API als Deprecated gemeldet hat und die neue 2.0 lässt die Globale Suche nicht mehr zu. Yahoo hat ihre eigene YQL und Bing eine Javascript Schnittstelle.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xelaz.de/triplesearch-mit-google-yahoo-und-bing/feed/</wfw:commentRss>
		<slash:comments>0</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>

