<?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>G-ROC web applications &#187; JavaScript</title>
	<atom:link href="http://www.g-roc.com/category/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://www.g-roc.com</link>
	<description>PHP freelancer, web developer, mobile web enthusiast</description>
	<lastBuildDate>Sun, 22 Nov 2009 18:34:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Ext JS User Group in Frankfurt</title>
		<link>http://www.g-roc.com/34_ext-js-user-group-in-frankfurt.html</link>
		<comments>http://www.g-roc.com/34_ext-js-user-group-in-frankfurt.html#comments</comments>
		<pubDate>Sun, 05 Jul 2009 11:28:45 +0000</pubDate>
		<dc:creator>Rocco</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Ext JS]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.g-roc.com/34_ext-js-user-group-in-frankfurt.html</guid>
		<description><![CDATA[I was attending the Ext JS user group in Frankfurt the other night and thought it might be a good thing to write a blog post again: it was a nice event and I didn&#8217;t blog in about a year or so (at least not here). If you are unfamiliar with Ext JS, make sure [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.g-roc.com/wp-content/uploads/2009/07/extjs_ug_frankfurt.png" alt="Ext JS UG Frankfurt" style="margin: 0pt 0pt 10px 10px; float: right" />I was attending the Ext JS user group in Frankfurt the other night and thought it might be a good thing to write a blog post again: it was a nice event and I didn&#8217;t blog in about a year or so (at least not here).</p>
<p>If you are unfamiliar with <a href="http://extjs.com/products/extjs/">Ext JS</a>, make sure you <a href="http://extjs.com/products/extjs/">bring yourself up to date</a>! In short it is a JavaScript library providing a set of nicely styled and very functional widgets, such as grids and tree structures that you can use  to create rich, desktop-like web applications.</p>
<p>This user group was the first in Germany. Attendees were mostly freelancers, but also employees. 6 of the 15 attendees were fellow consultants from <a href="http://www.t-home.de">T-Home </a>where I am currently doing some contracting/consulting work; and Ext JS happens to be one of my main topics there. Barcampy as we were we didn&#8217;t have an agenda. Yet 3 people were giving presentations and they were all worth the trip to the <a href="http://www.dkd.de/de/home/">d.k.d</a> offices in Frankfurt where the UG was held. I am a bad name rememberer so sorry for not giving credits here to the presenters, but honestly you all did a great job guys and I gained some good insight.</p>
<p>We also had some thought-provoking discussions about memory management and -leaks and about our experiences switching over to the brand-new Ext JS version 3.0. I can just encourage anybody interested in the topic to join us next time &#8211; we&#8217;re not sure when the next session will be, but watch this space or the <a href="http://extjs.com/forum/">Ext JS forum</a> for updates.</p>
<p>A big thank you goes out to <a href="http://www.dkd.de">d.k.d, Germany&#8217;s leading TYPO3 agency</a>, for hosting the user group and especially to <a href="http://www.nils-dehl.de/">Nils Dehl</a> for organizing the whole thing and getting the crowd together. Till next time!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.g-roc.com/34_ext-js-user-group-in-frankfurt.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Safari-Bug or Not? DOM Exception 7</title>
		<link>http://www.g-roc.com/27_safari-bug-or-not-dom-exception-7.html</link>
		<comments>http://www.g-roc.com/27_safari-bug-or-not-dom-exception-7.html#comments</comments>
		<pubDate>Tue, 11 Dec 2007 10:37:51 +0000</pubDate>
		<dc:creator>Rocco</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.g-roc.com/27_safari-bug-or-not-dom-exception-7.html</guid>
		<description><![CDATA[Here&#8217;s what happened: I was working on the Frost Ajax Library and using Safari Version 3.0.4 (523.12) for testing things. The document, index.php, was serverd to the browser using this content-type header: &#8220;application/xhtml+xml&#8221; and the DOCTYPE was &#8220;-//WAPFORUM//DTD XHTML Mobile 1.0//EN&#8221;. Now in Frost here&#8217;s a simple function that can put some text or HTML [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s what happened: I was working on the <a HREF="http://frostlib.org">Frost Ajax Library</a> and using Safari Version 3.0.4 (523.12) for testing things.</p>
<p>The document,<em> index.php</em>, was serverd to the browser using this content-type header: <em>&#8220;application/xhtml+xml&#8221;</em> and the DOCTYPE was <em>&#8220;-//WAPFORUM//DTD XHTML Mobile 1.0//EN&#8221;</em>.</p>
<p>Now in Frost here&#8217;s a simple function that can put some text or HTML to a container, basically using simple innerHTML like this:</p>
<p><code>//id and cont are passed to the function<br />
var ob = document.getElementById(id);<br />
ob.innerHTML = cont;</code></p>
<p>The strange behavior appeared when <em>cont</em> was empty. In this case Safari throws an exception:<strong> NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7</strong>.<br />
There is no exception thrown if <em>cont</em> is not empty though.</p>
<p>If you serve the document with content-type headers as <em>&#8220;text/html&#8221;</em> there is no exception and everything works as it should.</p>
<p>The consclusion so far is that Safari has a bug and rejects to see an empty string as a valid value for a container, apparently only when the document is pure XML.</p>
<p>A quick search produces <a HREF="http://readlist.com/lists/lists.rubyonrails.org/rails/3/18974.html">some</a> <a HREF="http://lists.apple.com/archives/Web-dev/2004/Apr/msg00122.html">similar</a> issues  floating around the web since a couple of years.</p>
<p>As a workaround my current solution is to encapsulate <em>cont</em> with proper tags like this:</p>
<p><code>//id and cont are passed to the function<br />
var ob = document.getElementById(id);<br />
<span STYLE="color: #ffffff">cont = "<_span_>"+cont+"<_/span_>";</span><br />
ob.innerHTML = cont;</code>(&lt;_span_&gt; should be &lt;span&gt; really &#8211; needed for showing this code)</p>
<p>Could make sense in one way, because documents served as real XML should be handled more restrictive and modifications should produce valid XML documents again. However if I just want to put some text in a tag and if this text happens to be empty this should work too. So why is Safari making a difference if the value filled into a tag with innerHTML is empty or not &#8211; is this a bug?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.g-roc.com/27_safari-bug-or-not-dom-exception-7.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
