<?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>Manuel Bieh – Web Development &#38; Consulting &#187; JavaScript</title>
	<atom:link href="http://2004.manuel-bieh.de/blog/category/webdev/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://2004.manuel-bieh.de/blog</link>
	<description>Manuel Bieh – Web Development &#38; Consulting</description>
	<lastBuildDate>Mon, 05 Feb 2024 15:37:24 +0000</lastBuildDate>
	<language>de-DE</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.39</generator>
	<item>
		<title>Geolib.js</title>
		<link>http://2004.manuel-bieh.de/blog/geolib-js</link>
		<comments>http://2004.manuel-bieh.de/blog/geolib-js#comments</comments>
		<pubDate>Sat, 06 Aug 2011 10:45:38 +0000</pubDate>
		<dc:creator><![CDATA[Manuel]]></dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Webdev]]></category>
		<category><![CDATA[Geo]]></category>
		<category><![CDATA[Geolocation]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.manuel-bieh.de/blog/?p=782</guid>
		<description><![CDATA[I created a small JavaScript library to provide some basic geo functions like distance calculation, conversion of decimal coordinates to sexagesimal and vice versa, etc. Usage: To calculate distance between two geo coordinates geolib.getDistance({"latitude": 51.511928, "longitude": 7.463536}, {"latitude": 51.510318, "longitude": 7.524133}, 10); // -> 4200 (Accuracy 10m) Takes 2 or 3. First 2 arguments must [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img src="/blog/wp-content/uploads/2011/08/header-geolib.png" alt="" title="header-geolib" width="680" height="170" class="alignnone size-full wp-image-786" /></p>
<p>I created a small JavaScript library to provide some basic geo functions like distance calculation, conversion of decimal coordinates to sexagesimal and vice versa, etc.</p>
<p><strong>Usage:</strong></p>
<p>To calculate distance between two geo coordinates<br />
<code>geolib.getDistance({"latitude": 51.511928, "longitude": 7.463536}, {"latitude": 51.510318, "longitude": 7.524133}, 10); // -> 4200 (Accuracy 10m)</code></p>
<p>Takes 2 or 3. First 2 arguments must be an object with a latitude and a longitude property (e.g. {latitude: 52.518611, longitude: 13.408056}). Coordinates can be in sexagesimal or decimal format. 3rd argument is accuracy (in meters). So a calculated distance of 1248 meters with an accuracy of 100 is returned as 1200.</p>
<p>Return value is always an integer and represents the distance in meters.</p>
<p>To convert it into miles use:<br />
<code>geolib.convertUnit('mi', value)</code></p>
<p>Convert sexagesimal to decimal<br />
<code>geolib.sexagesimal2decimal("51° 29' 46\" N"); // -> 51.49611111</code></p>
<p>Convert decimal to sexagesimal<br />
<code>geolib.decimal2sexagesimal(51.49611111); // -> 51° 29' 46.00</code></p>
<p><strong>Download:</strong><br />
<a href="https://github.com/manuelbieh/geolib">https://github.com/manuelbieh/geolib</a></p>
<p><strong>Demo:</strong><br />
<a href="http://www.manuel-bieh.de/publikationen/scripts/geolib/demo.html">http://www.manuel-bieh.de/publikationen/scripts/geolib/demo.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://2004.manuel-bieh.de/blog/geolib-js/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Linkdump #4</title>
		<link>http://2004.manuel-bieh.de/blog/linkdump-4</link>
		<comments>http://2004.manuel-bieh.de/blog/linkdump-4#comments</comments>
		<pubDate>Mon, 25 Jul 2011 09:30:15 +0000</pubDate>
		<dc:creator><![CDATA[Manuel]]></dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[HTML5/CSS3]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Canvas]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.manuel-bieh.de/blog/?p=770</guid>
		<description><![CDATA[4 18 mistakes that kill startups – http://www.paulgraham.com/startupmistakes.html 7 lovely things about HTML5 – http://www.elated.com/articles/7-lovely-things-about-html5-markup/ Lists are cool. So here is another one: 15 HTML5 Canvas Applications Developers Should Know About – http://smashinghub.com/15-html5-canvas-applications-developers-should-know-about.htm CSS3 @font-face design guide – http://webdesignerwall.com/tutorials/css3-font-face-design-guide Published more than a year ago but still worth reading: Signs of a poorly written jQuery [&#8230;]]]></description>
				<content:encoded><![CDATA[<div class="linkdump"><span>4</span></div>
<p>18 mistakes that kill startups<br />
– <a href="http://www.paulgraham.com/startupmistakes.html">http://www.paulgraham.com/startupmistakes.html</a></p>
<p>7 lovely things about HTML5<br />
– <a href="http://www.elated.com/articles/7-lovely-things-about-html5-markup/">http://www.elated.com/articles/7-lovely-things-about-html5-markup/</a></p>
<p>Lists are cool. So here is another one: 15 HTML5 Canvas Applications Developers Should Know About<br />
– <a href="http://smashinghub.com/15-html5-canvas-applications-developers-should-know-about.htm">http://smashinghub.com/15-html5-canvas-applications-developers-should-know-about.htm</a></p>
<p>CSS3 @font-face design guide<br />
– <a href="http://webdesignerwall.com/tutorials/css3-font-face-design-guide">http://webdesignerwall.com/tutorials/css3-font-face-design-guide</a></p>
<p>Published more than a year ago but still worth reading: Signs of a poorly written jQuery plugin:<br />
– <a href="http://remysharp.com/2010/06/03/signs-of-a-poorly-written-jquery-plugin/">http://remysharp.com/2010/06/03/signs-of-a-poorly-written-jquery-plugin/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://2004.manuel-bieh.de/blog/linkdump-4/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Geolocation jQuery-Plugin</title>
		<link>http://2004.manuel-bieh.de/blog/geolocation-jquery-plugin</link>
		<comments>http://2004.manuel-bieh.de/blog/geolocation-jquery-plugin#comments</comments>
		<pubDate>Sat, 28 May 2011 22:16:15 +0000</pubDate>
		<dc:creator><![CDATA[Manuel]]></dc:creator>
				<category><![CDATA[HTML5/CSS3]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Webdev]]></category>
		<category><![CDATA[Geolocation]]></category>
		<category><![CDATA[Geolocation API]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.manuel-bieh.de/blog/?p=695</guid>
		<description><![CDATA[I created a small jQuery plugin which acts as a simplification of the Geolocation API. Instead of using navigator.geolocation.getCurrentPosition you can now just use the jQuery methods $.geolocation.get() or $.geolocation.watch(). Contrary to the standard API the only parameter the functions expect is a JSON object with three properties in no particular order: success, error, options. [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img src="/blog/wp-content/uploads/2011/05/geolocation-map2.jpg" alt="" title="" width="680" height="200" class="alignnone size-full wp-image-793" /></p>
<p>I created a small jQuery plugin which acts as a simplification of the <strong><a href="http://dev.w3.org/geo/api/spec-source.html">Geolocation API</a></strong>. </p>
<p>Instead of using navigator.geolocation.getCurrentPosition you can now just use the jQuery methods <code>$.geolocation.get()</code> or <code>$.geolocation.watch()</code>.</p>
<p>Contrary to the standard API the only parameter the functions expect is a JSON object with three properties in no particular order: success, error, options. For success and error you can also use their alias properties &#8222;win&#8220; and &#8222;fail&#8220;: <br />
<code>$.geolocation.get({win: function() {}, fail: function() {}, options); </code></p>
<p>You can also use <code>$.geolocation.getCurrentPosition(success, error, options)</code> to get native API feeling if this makes you happier. In conjunction with my <a href="http://www.manuel-bieh.de/blog/bessere-geolocation-api-unterstutzung">Geolocation API polyfill</a> script this also works with some non-standard Geolocation APIs like Google Gears or Blackberry Location.</p>
<h3>Usage</h3>
<dl>
<dt>$.geolocation.clearWatch(watchID)</dt>
<dd>Stops tracking of the user for the according watchID. </dd>
<dd><strong>watchID</strong> (Integer)</dd>
<dt>$.geolocation.get(options)</dt>
<dd>Get the current position of the user</dd>
<dd><strong>options</strong> (Object)</p>
<ul>
<li><strong>error</strong><br />
				Function to call if geolocation request failed</li>
<li><strong>fail</strong><br />
				Alias for error</li>
<li><strong>options</strong><br />
				Options for the geolocation request</p>
<ul>
<li>enableHighAccuracy</li>
<li>maximumAge</li>
<li>timeout</li>
</ul>
</li>
<li><strong>success</strong><br />
				Function to call if geolocation request was successful</li>
<li><strong>win</strong><br />
				Alias for success</li>
</ul>
</dd>
<dt>$.geolocation.getCurrentPosition(success, error, options)</dt>
<dd>Get the current position of the user (API standard behavior)</dd>
<dd><strong>success</strong> Function to call if geolocation request was successful</dd>
<dd><strong>error</strong> Function to call if geolocation request failed</dd>
<dd><strong>options</strong> Options for the geolocation request</p>
<ul>
<li>enableHighAccuracy</li>
<li>maximumAge</li>
<li>timeout</li>
</ul>
</dd>
<dt>$.geolocation.stop(watchID)</dt>
<dd>Stops tracking of the user for the according watchID. </dd>
<dd><strong>watchID</strong> (Integer)</dd>
<dt>$.geolocation.stopAll()</dt>
<dd>Stops all watchPosition callbacks. </dd>
<dt>$.geolocation.watch(options)</dt>
<dd>Track the movement of the user</dd>
<dd>Returns: watchID (Integer)</dd>
<dd><strong>options</strong> (Object)</p>
<ul>
<li><strong>error</strong><br />
				Function to call if geolocation request failed</li>
<li><strong>fail</strong><br />
				Alias for error</li>
<li><strong>options</strong><br />
				Options for the geolocation request</p>
<ul>
<li>enableHighAccuracy</li>
<li>maximumAge</li>
<li>timeout</li>
</ul>
</li>
<li><strong>success</strong><br />
				Function to call if geolocation request was successful</li>
<li><strong>win</strong><br />
				Alias for success</li>
</ul>
</dd>
<dt>$.geolocation.watchPosition(success, error, options)</dt>
<dd>Track the movement of the user (API standard behavior)</dd>
<dd>Returns: watchID (Integer)</dd>
<dd><strong>success</strong> Function to call if geolocation request was successful</dd>
<dd><strong>error</strong> Function to call if geolocation request failed</dd>
<dd><strong>options</strong> Options for the geolocation request</p>
<ul>
<li>enableHighAccuracy</li>
<li>maximumAge</li>
<li>timeout</li>
</ul>
</dd>
</dl>
<h3>Examples</h3>
<pre></pre>
<h3>Demo</h3>
<p><a href="http://manuel-bieh.de/publikationen/scripts/jquery/geolocation/">http://manuel-bieh.de/publikationen/scripts/jquery/geolocation/</a></p>
<h3>Download</h3>
<p><a href="https://github.com/manuelbieh/jQuery-Geolocation">https://github.com/manuelbieh/jQuery-Geolocation</a></p>
]]></content:encoded>
			<wfw:commentRss>http://2004.manuel-bieh.de/blog/geolocation-jquery-plugin/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Styleform jQuery-Plugin</title>
		<link>http://2004.manuel-bieh.de/blog/styleform-jquery-plugin</link>
		<comments>http://2004.manuel-bieh.de/blog/styleform-jquery-plugin#comments</comments>
		<pubDate>Sat, 28 May 2011 15:28:01 +0000</pubDate>
		<dc:creator><![CDATA[Manuel]]></dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Webdev]]></category>

		<guid isPermaLink="false">http://www.manuel-bieh.de/blog/?p=691</guid>
		<description><![CDATA[[English version below!] Mit diesem Plugin ist es möglich Checkboxen und Radiobuttons zu stylen. Anwendung: Einfach jedem Form-Element dessen Checkboxen und Radiobuttons gestyled werden sollen die Klasse „styleform“ anhängen. Alternativ kann das Styling auf alle oder nur ausgewählte Formulare angewandt werden: $('form').styleForm(); $('#myForm').styleForm(); Styling: Es kann entweder ein eigenes Stylesheet erstellt werden mit eigenen Eigenschaften [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img src="/blog/wp-content/uploads/2011/05/styleform-teaser11.jpg" alt="" title="" width="680" height="280" class="alignnone size-full wp-image-737" /><br />
<em>[English version below!]</em></p>
<p>Mit diesem Plugin ist es möglich Checkboxen und Radiobuttons zu stylen.</p>
<h3>Anwendung:</h3>
<p>Einfach jedem Form-Element dessen Checkboxen und Radiobuttons gestyled werden sollen die Klasse „styleform“ anhängen. Alternativ kann das Styling auf alle oder nur ausgewählte Formulare angewandt werden:<br />
<code>$('form').styleForm();</code><br />
<code>$('#myForm').styleForm();</code></p>
<h3>Styling:</h3>
<p>Es kann entweder ein eigenes Stylesheet erstellt werden mit eigenen Eigenschaften für die klassen .styleRadio und .styleCheckbox was allerdings recht kompliziert ist, da es kein sauberes Standard-Stylesheet ist das angewandt werden kann. Daher empfiehlt es sich, einfach die mitgelieferten Bilder im images-Ordner so zu bearbeiten wie man es wünscht.</p>
<h3>Bonus!</h3>
<p>Ein iPhone Theme wird in drei größen mitgeliefert.</p>
<h3>Bekannte Probleme:</h3>
<ul>
<li>Opera ignoriert die disabled Eigenschaft komplett</li>
</ul>
<h3>Wünsche:</h3>
<ul>
<li>Styling von select Elementen ermöglichen</li>
</ul>
<h3>Demo</h3>
<p><a href="/publikationen/scripts/jquery/styleform">http://www.manuel-bieh.de/publikationen/scripts/jquery/styleform</a><br />
<a href="/publikationen/scripts/jquery/styleform/iphone.html">http://www.manuel-bieh.de/publikationen/scripts/jquery/styleform/iphone.html</a></p>
<h3>Download</h3>
<p><a href="http://plugins.jquery.com/project/Styleform">http://plugins.jquery.com/project/Styleform</a></p>
<h2>English description</h2>
<p>You can use this plugin if you want to change the default look of checkboxes and radiobuttons.</p>
<h3>Usage:</h3>
<p>Just add the class &#8222;styleform&#8220; (all lowercase) to any form you want to be styled. Or you can alternatively use:<br />
<code>$('form').styleForm();</code><br />
to apply the styling of checkboxes and radiobuttons in all forms inside a document.</p>
<h3>Styling:</h3>
<p>You can either create a new stylesheet with your own properties styling the .styleRadio and .styleCheckbox classes which is however quite complicated since there is no default stylesheet that can be applied yet. Or you can (the easy way) use the provided themes and edit the files inside the images folder the way you want it.</p>
<h3>Bonus:</h3>
<p>iPhone theme included in three different sizes (small, normal, big)!</p>
<h3>Known issues:</h3>
<ul>
<li>Opera ignores the disabled state completely</li>
</ul>
<h3>Wishes:</h3>
<ul>
<li>Add styling of select elements</li>
</ul>
<h3>Demo</h3>
<p><a href="http://www.manuel-bieh.de/publikationen/scripts/jquery/styleform">http://www.manuel-bieh.de/publikationen/scripts/jquery/styleform</a><br />
<a href="http://www.manuel-bieh.de/publikationen/scripts/jquery/styleform/iphone.html">http://www.manuel-bieh.de/publikationen/scripts/jquery/styleform/iphone.html</a></p>
<h3>Download</h3>
<p><a href="http://plugins.jquery.com/project/Styleform">http://plugins.jquery.com/project/Styleform</a></p>
]]></content:encoded>
			<wfw:commentRss>http://2004.manuel-bieh.de/blog/styleform-jquery-plugin/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xify jQuery-Plugin</title>
		<link>http://2004.manuel-bieh.de/blog/xify-jquery-plugin</link>
		<comments>http://2004.manuel-bieh.de/blog/xify-jquery-plugin#comments</comments>
		<pubDate>Tue, 15 Mar 2011 11:55:02 +0000</pubDate>
		<dc:creator><![CDATA[Manuel]]></dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Mobile Web]]></category>
		<category><![CDATA[Webdev]]></category>

		<guid isPermaLink="false">http://www.manuel-bieh.de/blog/?p=658</guid>
		<description><![CDATA[[English version below!] Da ich die Funktion aus der iPhone-Safari Adressleiste schon immer sehr praktisch fand, und mir diese schon oft für Eingabefelder auf Websites gewünscht habe, habe ich mich gestern kurz hingesetzt und ein kleines jQuery-Plugin gebaut, welches mir diese Funktionalität abbildet. „Xify“ erzeugt einen X-Button zu einem Textfeld wie man ihn aus der [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><em>[English version below!]</em><br />
Da ich die Funktion aus der iPhone-Safari Adressleiste schon immer sehr praktisch fand, und mir diese schon oft für Eingabefelder auf Websites gewünscht habe, habe ich mich gestern kurz hingesetzt und ein kleines jQuery-Plugin gebaut, welches mir diese Funktionalität abbildet.</p>
<p>„Xify“ erzeugt einen X-Button zu einem Textfeld wie man ihn aus der Adressleiste des iPhone-Safari kennt. Ein Klick auf das Symbol löscht den kompletten Text des dazugehörigen Textfelds. Benötigt jQuery ab Version 1.2.3.</p>
<h3>Die Anwendung</h3>
<p><code>$('input:text').xify();</code><br />
<code>$('input:password').xify({color: "red"});</code></p>
<h3>Parameter</h3>
<dl>
<dt><code>color</code></dt>
<dd>Hintergrundfarbe des Buttons</dd>
<dd><strong>Typ:</strong> CSS Farbangabe</dd>
<dd><strong>Standardwert:</strong> #bbb</dd>
<dt><code>size</code></dt>
<dd>Größe des Buttons</dd>
<dd><strong>Typ:</strong> integer</dd>
<dd><strong>Standardwert:</strong> 12</dd>
<dt><code>left</code></dt>
<dd>Angabe um wieviel Pixel der Button im Eingabefeld nach links gerückt werden soll</dd>
<dd><strong>Typ:</strong> integer</dd>
<dd><strong>Standardwert:</strong> 4</dd>
<dt><code>callback</code></dt>
<dd>Callbackfunktion die aufgerufen wird, wenn das X geklickt wird. Muss true oder false zurückgeben.</dd>
<dd><strong>Typ:</strong> function</dd>
</dl>
<h3>Demo</h3>
<p><a href="http://www.manuel-bieh.de/publikationen/scripts/jquery/xify/">http://www.manuel-bieh.de/publikationen/scripts/jquery/xify/</a></p>
<h3>Download</h3>
<p><a href="http://plugins.jquery.com/project/xify">http://plugins.jquery.com/project/xify</a></p>
<h2>English description</h2>
<p>You can use this plugin to automatically add a small &#8222;X&#8220; to each input field to remove the current value by clicking or touching the X. You may know this function from the iPhone Safari URL bar. Requires jQuery 1.2.3+</p>
<h3>Usage</h3>
<p><code>$('input:text').xify();</code><br />
<code>$('input:password').xify({color: "red"});</code></p>
<h3>Parameters</h3>
<dl>
<dt><code>color</code></dt>
<dd>    Backgroundcolor of the button.</dd>
<dd>    <strong>Type:</strong> CSS color value</dd>
<dd>    <strong>Default:</strong> #bbb</dd>
<dt><code>size</code></dt>
<dd>    Size of the button.</dd>
<dd>    <strong>Type:</strong> integer</dd>
<dd>    <strong>Default:</strong> 12</dd>
<dt><code>left</code></dt>
<dd>    Amount of pixels the button is moved to the left within the input field.</dd>
<dd>    <strong>Type:</strong> integer</dd>
<dd>    <strong>Default:</strong> 4 </dd>
<dt><code>callback</code></dt>
<dd>Callback which is executed when the X is clicked. Must return true or false.</dd>
<dd><strong>Type:</strong> function</dd>
</dl>
<h3>Demo</h3>
<p><a href="http://www.manuel-bieh.de/publikationen/scripts/jquery/xify/">http://www.manuel-bieh.de/publikationen/scripts/jquery/xify/</a></p>
<h3>Download</h3>
<p><a href="http://plugins.jquery.com/project/xify">http://plugins.jquery.com/project/xify</a></p>
]]></content:encoded>
			<wfw:commentRss>http://2004.manuel-bieh.de/blog/xify-jquery-plugin/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Debugging: DOM Exception 7 am iPad</title>
		<link>http://2004.manuel-bieh.de/blog/debugging-dom-exception-7-am-ipad</link>
		<comments>http://2004.manuel-bieh.de/blog/debugging-dom-exception-7-am-ipad#comments</comments>
		<pubDate>Wed, 16 Feb 2011 14:55:12 +0000</pubDate>
		<dc:creator><![CDATA[Manuel]]></dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Webdev]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://www.manuel-bieh.de/blog/?p=631</guid>
		<description><![CDATA[Gestern habe ich mir beim Entwickeln einer WebApp für das iPad die Zähne ausgebissen an einem Problem das so simpel schien, ich aber trotzdem lange gebraucht habe um des Rätsels Lösung zu finden. Ich wollte dynamisch per XMLHttpRequest() einen &#60;style&#62;-Knoten nachladen und in mein aktuelles Dokument einfügen. Dazu nutzte ich den folgenden Code: Einfach, logisch, [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Gestern habe ich mir beim Entwickeln einer WebApp für das iPad die Zähne ausgebissen an einem Problem das so simpel schien, ich aber trotzdem lange gebraucht habe um des Rätsels Lösung zu finden. Ich wollte dynamisch per <code>XMLHttpRequest()</code> einen <code>&lt;style&gt;</code>-Knoten nachladen und in mein aktuelles Dokument einfügen. Dazu nutzte ich den folgenden Code:</p>
<pre></pre>
<p>Einfach, logisch, funktioniert. Sollte man denken. Funktioniert am Desktop und am <strong>iPhone</strong> auch fantastisch, das iPad schmeißt mir hingegen den Fehler <em><strong>NO_MODIFICATION_ALLOWED_ERR DOM Exception 7</strong></em> und fügt keinen neuen <code>style</code>-Knoten in mein Dokument ein. Des Rätsels Lösung ist hier einfach und liegt am <code>innerHTML</code>. Diese Anweisung scheint das iPad bei Styles nicht zu interpretieren. Nutzen sollte man hier stattdessen:</p>
<pre></pre>
<p>Dann fügt auch das iPad ohne zu murren den Style ins Dokument.</p>
]]></content:encoded>
			<wfw:commentRss>http://2004.manuel-bieh.de/blog/debugging-dom-exception-7-am-ipad/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
