<?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>bb242.log &#187; javascript</title>
	<atom:link href="http://www.bb242.de/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bb242.de</link>
	<description>Fahrtenbuch des Schreckens</description>
	<lastBuildDate>Fri, 02 Dec 2011 09:20:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Firebug on Ubuntu Hardy Heron</title>
		<link>http://www.bb242.de/2008/04/29/firebug-on-ubuntu-hardy-heron/</link>
		<comments>http://www.bb242.de/2008/04/29/firebug-on-ubuntu-hardy-heron/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 17:24:53 +0000</pubDate>
		<dc:creator>protokollfuehrer</dc:creator>
				<category><![CDATA[1. OG R Residenz]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Hardy Heron]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.bb242.de/?p=337</guid>
		<description><![CDATA[Gestern habe ich fröhlich auf das neue Ubuntu upgedatet. Und siehe da: Der automatisch mitinstallierte Standardbrowser ist Firefox 3.0 Beta 5. Schönes Ding eigentlich. In der Ausführungsgeschwindigkeit von JS ein absoluter Renner! ABER: Firebug kann man zwar installieren (über Hinzufügen), nur stürzt das Ding bei mir reproduzierbar ab. Firebug ist also faktisch nicht verwendbar. Nun [...]]]></description>
			<content:encoded><![CDATA[<p>Gestern habe ich fröhlich auf das neue Ubuntu upgedatet. Und siehe da: Der automatisch mitinstallierte Standardbrowser ist Firefox 3.0 Beta 5. Schönes Ding eigentlich. In der Ausführungsgeschwindigkeit von JS ein absoluter Renner! ABER: Firebug kann man zwar installieren (über Hinzufügen), nur stürzt das Ding bei mir reproduzierbar ab. Firebug ist also faktisch nicht verwendbar.</p>
<p>Nun gut, dachte ich mir, ist doch nicht so schlimm. Mach ich mir eben auch noch den Firefox 2 drauf. Geht ja ohne Probleme. Nur teilt der seine Add-ons offenbar mit dem 3er. Super&#8230; Also 3er deinstalliert. Und jetzt läßt sich der Firebug 1.0.5 gar nicht mehr installieren. Diese Erfahrung haben auch andere Leute gemacht.  Mal suchen, obs auch irgendwo eine Lösung gibt&#8230;</p>
<p>Update: Mit einem neuen Profil geht die Installation. Mal schauen, ob Firebug so auch funktioniert. Um ein neues Profil anzulegen,  den Browser schließen und in der Konsole mit &#8220;firefox-2 -ProfileManager&#8221; starten. Nachteil: Seitdem wird mir unter das Fenster ein XML-fehler gerendert: &#8220;&lt;/overlay&gt;&#8221;. WTF???</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bb242.de/2008/04/29/firebug-on-ubuntu-hardy-heron/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>OpenExt &#8211; (half)forking ExtJs</title>
		<link>http://www.bb242.de/2008/04/28/openext-halfforking-extjs/</link>
		<comments>http://www.bb242.de/2008/04/28/openext-halfforking-extjs/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 09:11:26 +0000</pubDate>
		<dc:creator>protokollfuehrer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ExtJs]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[OpenExt]]></category>

		<guid isPermaLink="false">http://www.bb242.de/?p=336</guid>
		<description><![CDATA[Für alle an der ExtJs-Problematik Interessierten und Verärgerten: Unter http://sourceforge.net/projects/openext/ werden Patches für die unter LGPL laufende ExtJs Version 2.0.2 entwickelt. Das Projekt ist kein wirklicher Fork, da immer noch rechtliche Unklarheiten -offenbar auch bezüglich den älteren Versionen- bestehen. Ob sich die Jungs um Jack S. einen Gefallen mit dem Lizenzwechsel einen Gefallen getan haben?]]></description>
			<content:encoded><![CDATA[<p>Für alle an der ExtJs-Problematik Interessierten und Verärgerten: Unter <a href="http://sourceforge.net/projects/openext/" target="_blank">http://sourceforge.net/projects/openext/</a> werden Patches für die unter LGPL laufende ExtJs Version 2.0.2 entwickelt. Das Projekt ist kein wirklicher Fork, da immer noch rechtliche Unklarheiten -offenbar auch bezüglich den älteren Versionen- bestehen.</p>
<p>Ob sich die Jungs um Jack S. einen Gefallen mit dem Lizenzwechsel einen Gefallen getan haben?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bb242.de/2008/04/28/openext-halfforking-extjs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DWR-Newbie-Troubleshooting</title>
		<link>http://www.bb242.de/2008/04/25/dwr-newbie-troubleshooting/</link>
		<comments>http://www.bb242.de/2008/04/25/dwr-newbie-troubleshooting/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 10:32:43 +0000</pubDate>
		<dc:creator>protokollfuehrer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[DWR]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Newbie]]></category>
		<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://www.bb242.de/?p=334</guid>
		<description><![CDATA[- org.directwebremoting.extend.MarshallException caused by InstantiationException: It is logical, but I didn&#8217;t find the problem for hours: You&#8217;re dealing with beans here, so don&#8217;t forget a standard no-arg constructor! - org.directwebremoting.extend.MarshallException &#8220;No converter found for class&#8220;: Have a look in your DWR-Config. A def &#60;dwr:convert type=&#8221;bean&#8221; class=&#8221;de.company.project.DWRBean*&#8221; /&#62; will convert a bean with the name DWRBean, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>- org.directwebremoting.extend.MarshallException</strong> caused by <strong>InstantiationException:</strong> It is logical, but I didn&#8217;t find the problem for hours: You&#8217;re dealing with beans here, so don&#8217;t forget a standard no-arg constructor!</p>
<p>- <strong>org.directwebremoting.extend.MarshallException</strong> &#8220;<strong>No converter found for class</strong>&#8220;: Have a look in your DWR-Config. A def &lt;dwr:convert type=&#8221;bean&#8221; class=&#8221;de.company.project.DWRBean*&#8221; /&gt; will convert a bean with the name DWRBean, but not a bean DWRBean2. The * is misleading and does only work &#8216;properly&#8217; in combination with a package: e.g. de.company.project.dwr.*&#8221;.</p>
<p>- <strong>Calls in JS to remote java-methods don&#8217;t return a value</strong>: If you call a remote method, you cannot simply assign the return value to a var. var x = remote.getX();  is wrong. The calls are done async, so you got to define  callback-handler:  remote.getX({callback: this.handleResponse.createDelegate(this, object), errorHandler: this.handleError.createDelegate(this, object)}); The createDelegate-method is ExtJs-specific and allows you to use &#8216;this&#8217; in your callback. If you&#8217;re not working with extjs, just leave it out. (Hint for JS-Newbies: the callback-handler in this case only got one parameter, the returned object).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bb242.de/2008/04/25/dwr-newbie-troubleshooting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ExtJs ist tot!</title>
		<link>http://www.bb242.de/2008/04/22/extjs-ist-tot/</link>
		<comments>http://www.bb242.de/2008/04/22/extjs-ist-tot/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 09:20:45 +0000</pubDate>
		<dc:creator>protokollfuehrer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[ExtJs]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.bb242.de/?p=327</guid>
		<description><![CDATA[Die Javascript-Ajax-Bibliothek ExtJs ist in Version 2.1 erschienen. Warum schon wieder eine neue Version? Performance? Api-Verbesserung? Nix davon! Kommerz ist der Grund. Ab jetzt ist der Einsatz in kommerziellen Produkten nicht mehr ohne weiteres möglich. Knapp 300$ kostet eine kommerzielle Ein-Entwickler-Lizenz. open-Sourcisten bleiben verschönt. Für den Einsatz in OSS bleibt ExtJs kostenfrei. Für uns (kommerzielle) [...]]]></description>
			<content:encoded><![CDATA[<p>Die Javascript-Ajax-Bibliothek ExtJs ist in Version 2.1 erschienen. Warum schon wieder eine neue Version? Performance? Api-Verbesserung? Nix davon! <a href="http://extjs.com/store/extjs/" target="_blank">Kommerz</a> ist der Grund. Ab jetzt ist der Einsatz in kommerziellen Produkten nicht mehr ohne weiteres möglich. Knapp 300$ kostet eine kommerzielle Ein-Entwickler-Lizenz. open-Sourcisten  bleiben verschönt. Für den Einsatz in OSS bleibt ExtJs kostenfrei.</p>
<p>Für uns (kommerzielle) heißt das jetzt aber: Auf ExtJs kann man nicht mehr setzen. Ich bin mir noch nicht sicher, ob ich mich jetzt freuen soll, weil ich mich nicht mehr mit dem Scheiß rumschlagen muss, oder ob ich jetzt weinen soll, weil ich wieder eine neue API (noch unklar welche) lernen muss.</p>
<p>Nachtrag: Ich scheine nicht der Einzige zu sein, der sich nach Alternativen umschaut. Die<a href="http://dojotoolkit.org/" target="_blank"> DOJO-Seite</a> scheint komplett überlaufen. Endlose Response-Time .. <img src='http://www.bb242.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.bb242.de/2008/04/22/extjs-ist-tot/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Kann Internet Explorer mit setAttributeNode() kein Javascript-Event an DOM-Node binden?</title>
		<link>http://www.bb242.de/2007/09/14/kann-internet-explorer-mit-setattributenode-kein-javascript-event-an-dom-node-binden/</link>
		<comments>http://www.bb242.de/2007/09/14/kann-internet-explorer-mit-setattributenode-kein-javascript-event-an-dom-node-binden/#comments</comments>
		<pubDate>Fri, 14 Sep 2007 09:50:54 +0000</pubDate>
		<dc:creator>leopold</dc:creator>
				<category><![CDATA[2. OG L Studiendekanat]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.bb242.de/2007/09/14/internet-explorer-kann-mit-setattributenode-kein-javascript-event-an-dom-node-binden/</guid>
		<description><![CDATA[Vorgestern trat ich mal wieder in eine Endlosschleife ein. Eigentlich wollte ich nur in einem XHTML-Dokument den Text innerhalb einer bestimmten Überschrift mit JavaScript zu einem Link umwandeln und diesen mit dem onclick-Attribut versehen. Quasi so: vorher: ... &#60;div&#62; &#60;h1 id="header1"&#62;Hallo&#60;/h1&#62; &#60;/div&#62; ... nachher: ... &#60;div&#62; &#60;h1 id="header1"&#62; &#60;a href="#" onclick="alert(this.tagName); return false"&#62;Hallo&#60;/a&#62; &#60;/h1&#62; &#60;/div&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Vorgestern trat ich mal wieder in eine Endlosschleife ein. Eigentlich wollte ich nur in einem <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>-Dokument den Text innerhalb einer bestimmten Überschrift mit JavaScript zu einem Link umwandeln und diesen mit dem <code>onclick</code>-Attribut versehen. Quasi so:</p>
<p>vorher:</p>
<pre>...
&lt;div&gt;
    &lt;h1 id="header1"&gt;Hallo&lt;/h1&gt;
&lt;/div&gt;
...</pre>
<p>nachher:</p>
<pre>...
&lt;div&gt;
    &lt;h1 id="header1"&gt;
        &lt;a href="#" onclick="alert(this.tagName); return false"&gt;Hallo&lt;/a&gt;
    &lt;/h1&gt;
&lt;/div&gt;
...</pre>
<p>Dachte mir also, mit etwas <abbr title="Document Object Model">DOM</abbr>-Manipulation läßt sich der ganze Vorgang schön abwickeln und habe mir eine Funktion in dieser Art gebacken:</p>
<pre>
function tutNicht() {
    var heading = document.getElementById('header1');
    var headingText = document.createTextNode(heading.firstChild.nodeValue);

    var aElem = document.createElement('a');
    aElem.appendChild(headingText);

    var hrefAttrib = document.createAttribute("href");
    hrefAttrib.nodeValue = '#';

    var onclickAttrib = document.createAttribute("onclick");
    onclickAttrib.nodeValue = "alert(this.tagName); return false";

    aElem.setAttributeNode(onclickAttrib);
    aElem.setAttributeNode(hrefAttrib);

    heading.removeChild(heading.firstChild);
    heading.appendChild(aElem);
}</pre>
<p>Jetzt wird es interessant. Der Internet Explorer (Version 6+7) führt zwar die Manipulationen am DOM aus (wovon ich mich mittels des IE DomInspectors überzeugte), wenn man dann aber auf den Link klickt wird das OnClick-Event nicht ausgelöst.</p>
<p>Habe länger im Trüben gestochert bis mir die Idee kam, den Link mal unschön über die Eigenschaft <code>innerHTML</code> der Überschrift zu erzeugen. Nun funktioniert die Sache plötzlich auch im <abbr title="Internet Explorer">IE</abbr> und die Funktion <code>alert()</code> wir bei klicken aufgerufen:</p>
<pre>
function tut() {
    var heading = document.getElementById('header1');
    var text = heading.firstChild.nodeValue;
    heading.removeChild(heading.firstChild);

    heading.innerHTML = '&lt;a href="#" onclick="alert(this.tagName); return false;"&gt;' + text + '&lt;/a&gt;';
}</pre>
<p>Ein äußerst interessantes Phänomen welches es noch zu ergründen gilt.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bb242.de/2007/09/14/kann-internet-explorer-mit-setattributenode-kein-javascript-event-an-dom-node-binden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

