<?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>mysrc.de &#187; Web-Development</title> <atom:link href="http://www.mysrc.de/category/web-development/feed/" rel="self" type="application/rss+xml" /><link>http://www.mysrc.de</link> <description>- jQuery, MooTools, HTML5, AJAX</description> <lastBuildDate>Tue, 14 Jun 2011 08:24:25 +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>umgedrehte floats mit jQuery Masonry</title><link>http://www.mysrc.de/jquery/umgedrehte-floats-mit-jquery-masonry/</link> <comments>http://www.mysrc.de/jquery/umgedrehte-floats-mit-jquery-masonry/#comments</comments> <pubDate>Thu, 28 May 2009 18:18:21 +0000</pubDate> <dc:creator>Oliver Storm</dc:creator> <category><![CDATA[Web-Development]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Best Practice]]></category> <guid
isPermaLink="false">http://www.mysrc.de/?p=632</guid> <description><![CDATA[Ich möchte euch noch kurz ein schönes weiteres Plugin zum Layouten mit an die Hand geben. jQuery Masonry. Während float´s Elemente horizontal und dann vertikal anordnen, habt ihr mit Masnory die Möglichkeit das genau andersrum zu machen. Erst vertikal, dann horizontal. Das Plugin kommt ohne weiter Einstellmöglichkeiten oder Optionen daher. Alles was man noch benötigt [...]]]></description> <content:encoded><![CDATA[<p><img
class="alignright size-full wp-image-636" title="masorny1" src="http://www.mysrc.de/wp-content/uploads/2009/05/masorny1.jpg" alt="masorny1" width="150" height="168" />Ich möchte euch noch kurz ein schönes weiteres <strong>Plugin zum Layouten</strong> mit an die Hand geben. <a
title="jQuery Masonry" href="http://desandro.com/resources/jquery-masonry" target="_blank">jQuery Masonry</a>.<br
/> Während float´s Elemente horizontal und dann vertikal anordnen, habt ihr mit Masnory die Möglichkeit das genau andersrum zu machen. Erst vertikal, dann horizontal.</p><p>Das Plugin kommt ohne weiter Einstellmöglichkeiten oder Optionen daher. Alles was man noch benötigt ist etwas CSS.</p><p>Hier ein einfaches Beispiel in welchem alle Elemente im container &#8220;wrap&#8221; neu ausgerichtet werden.</p><div
class="wp_codebox_msgheader"><span
class="right"><sup><a
href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span
style="color: #99cc00">?</span></a></sup></span><span
class="left"><a
href="javascript:;" onclick="javascript:showCodeTxt('p632code2'); return false;">View Code</a> JAVASCRIPT</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p6322"><td
class="line_numbers"><pre>1
</pre></td><td
class="code" id="p632code2"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.wrap'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">masonry</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>Eine Demo sowie weiter Infos und die Dateien zum Download findet Ihr auf der <a
title=" jQuery Masonry" href="http://desandro.com/resources/jquery-masonry" target="_blank">offiziellen Website</a>.</p><h3  class="related_post_title">Ähnliche Artikel</h3><ul
class="related_post"><li>19. November 2010 -- <a
href="http://www.mysrc.de/jquery/praxistipp-suchfeld-leeren-on-focus-jquery/" title="Praxistipp: Suchfeld leeren on focus (jQuery)">Praxistipp: Suchfeld leeren on focus (jQuery)</a></li><li>23. März 2010 -- <a
href="http://www.mysrc.de/jquery/praxistipp-%e2%80%93-jqtransform-bug-bei-input-in-firefox-3-5-2/" title="Praxistipp – jqTransform Bug bei input in Firefox > 3.5.2">Praxistipp – jqTransform Bug bei input in Firefox > 3.5.2</a></li><li>3. Dezember 2009 -- <a
href="http://www.mysrc.de/jquery/jquery-click-handler-elementen-zuordnen-und-entfernen/" title="jQuery &#8211; Click Handler Elementen zuordnen und entfernen">jQuery &#8211; Click Handler Elementen zuordnen und entfernen</a></li></ul>]]></content:encoded> <wfw:commentRss>http://www.mysrc.de/jquery/umgedrehte-floats-mit-jquery-masonry/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Formulare mit jQuery &#8211; die umfassende Serie</title><link>http://www.mysrc.de/jquery/formulare-mit-jquery-die-umfassende-serie/</link> <comments>http://www.mysrc.de/jquery/formulare-mit-jquery-die-umfassende-serie/#comments</comments> <pubDate>Sat, 16 May 2009 02:48:38 +0000</pubDate> <dc:creator>Oliver Storm</dc:creator> <category><![CDATA[AJAX]]></category> <category><![CDATA[Web-Development]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Forms]]></category> <category><![CDATA[Formulare]]></category> <category><![CDATA[upload]]></category> <guid
isPermaLink="false">http://www.mysrc.de/?p=512</guid> <description><![CDATA[Wie wichtig das Thema Fomulare und jQuery ist, fällt uns beim regelmäßigen überfliegen unserer Blog Statistiken immer wieder auf. Viele der Suchanfragen über Google beinhalten Keywords die mit jQuery und Formularen zu tun haben. Auch die Seiten welche mitunter die meisten Zugriffe haben gehen in diese Richtung. Wir wollen dem ganzen Rechnung tragen und starten [...]]]></description> <content:encoded><![CDATA[<p>Wie wichtig das Thema Fomulare und jQuery ist, fällt uns beim regelmäßigen überfliegen unserer Blog Statistiken immer wieder auf. Viele der Suchanfragen über Google<strong> </strong>beinhalten<strong> Keywords</strong> die mit <strong>jQuery und Formularen</strong> zu tun haben.<br
/> Auch die Seiten welche mitunter die meisten Zugriffe haben gehen in diese Richtung.<br
/> Wir wollen dem ganzen Rechnung tragen und starten heute eine langfristige und ausführliche Serie zum gesamten Thema <strong>&#8220;Formulare und jQuery&#8221;</strong>.<br
/> Die Serie wird aus mehreren Teilen bestehen und sich wie folgt aufgliedern:</p><ul><li><a
title="jQuery Formulare validieren - Ein Überblick" href="http://www.mysrc.de/jquery/jquery-formulare-validieren-ein-uberblick/" target="_self">Übersicht über aktuelle Form-Validaton Scripts.</a></li><li>Überblick über die wichtigsten Funktionen die jQuery für die Validierung bietet.</li><li>Tutorial &#8220;Eigenes Validation-Script mit jQuery erstellen&#8221;.</li><li>Übersicht über aktuelle jQuery-Plugins zum verarbeiten von Formulardaten per AJAX.</li><li>Tutorial &#8220;Eigenes jQuery-Plugin zum verarbeiten von Formulardaten per AJAX inkl. Dateiupload&#8221;.</li><li>Überblick über die wichtigsten Funktionen die jQuery zum modifizieren von Formularen bietet.</li><li>Übersicht zum Thema &#8220;customized Forms&#8221;. Schönere Formulare mit jQuery.</li><li>Übersicht zum Thema &#8220;weiterführende Formulartechniken&#8221;.  Autocomplete, In Place Editing, Date Picker, ToolTips, doppeltes versenden verhindern und ein paar weitere Kleinigkeiten.</li></ul><p>Zum Abschluss der Serie werden wir euch noch unser <strong>neues Formular-Plugin</strong> vorstellen an dem wir momentan mit Hochdruck arbeiten. Soviel vorab.</p><p>Heute wollen wir gleich mit <strong>Teil 1 &#8211; &#8220;<a
title="jQuery Formulare validieren - Ein Überblick" href="http://www.mysrc.de/jquery/jquery-formulare-validieren-ein-uberblick/" target="_self">Übersicht über aktuelle Form-Validaton Scripts</a>&#8220;</strong> beginnen.</p><h3  class="related_post_title">Ähnliche Artikel</h3><ul
class="related_post"><li>12. August 2009 -- <a
href="http://www.mysrc.de/jquery/jquery-form-plugin-do-some-ajax-magic-easily/" title="jQuery Form Plugin &#8211; Do some AJAX magic easily">jQuery Form Plugin &#8211; Do some AJAX magic easily</a></li><li>16. Mai 2009 -- <a
href="http://www.mysrc.de/jquery/jquery-formulare-validieren-ein-uberblick/" title="jQuery Formulare validieren &#8211; Ein Überblick">jQuery Formulare validieren &#8211; Ein Überblick</a></li><li>14. Mai 2009 -- <a
href="http://www.mysrc.de/jquery/ajax-datei-upload-mit-jquery/" title="Ajax Datei-Upload mit jQuery">Ajax Datei-Upload mit jQuery</a></li></ul>]]></content:encoded> <wfw:commentRss>http://www.mysrc.de/jquery/formulare-mit-jquery-die-umfassende-serie/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>jQuery ifixpng &#8211; Plugin für Transparenz-Problem</title><link>http://www.mysrc.de/jquery/jquery-ifixpng-plugin-fur-transparenz-problem/</link> <comments>http://www.mysrc.de/jquery/jquery-ifixpng-plugin-fur-transparenz-problem/#comments</comments> <pubDate>Tue, 12 May 2009 13:13:14 +0000</pubDate> <dc:creator>Oliver Storm</dc:creator> <category><![CDATA[Web-Development]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Best Practice]]></category> <category><![CDATA[usability]]></category> <guid
isPermaLink="false">http://www.mysrc.de/?p=482</guid> <description><![CDATA[Wer kennt das Problem nicht. Man will ein transparentes png einbinden und bekommt Probleme in den älteren Versionen des Internet Explorer. Klar gibts dafür schon Lösungen wie den pngfix von TwinHelix etc. Allerdings fand ich bisher keine so einfach und geschickt wie jQuery.ifixpng. Das Plugin lässt sich allgemein auf alle Dateien eines Typs oder auch [...]]]></description> <content:encoded><![CDATA[<p><img
class="alignnone size-full wp-image-483" title="jQuery ifixpng " src="http://www.mysrc.de/wp-content/uploads/2009/05/ifixpng.jpg" alt="jQuery ifixpng " width="460" height="87" /></p><p>Wer kennt das Problem nicht. Man will ein <strong>transparentes png</strong> einbinden und bekommt Probleme in den älteren Versionen des Internet Explorer.<br
/> Klar gibts dafür schon Lösungen wie den<a
title="IE PNG Fix " href="http://www.twinhelix.com/css/iepngfix/" target="_blank"> pngfix von TwinHelix</a> etc.</p><p>Allerdings fand ich bisher keine so einfach und geschickt wie<strong> jQuery.ifixpng</strong>.<br
/> Das Plugin lässt sich allgemein auf alle Dateien eines Typs oder auch gezielt auf id´s angewendet werden.</p><p>Es gibt momenta noch zwei, drei Probleme die aber im Normalfall nicht ins Gewicht fallen.<br
/> Unter anderem müssen die Elemente auf die der Hack angewandt wird visible sein.<br
/> Background positionierung und repeating gehen leider auch nicht. Wird aber normal eh weniger ein Thema sein wenn man den Hack braucht.</p><p>Hier wie immer ein <strong>simples Beispiel</strong>:</p><div
class="wp_codebox_msgheader"><span
class="right"><sup><a
href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span
style="color: #99cc00">?</span></a></sup></span><span
class="left"><a
href="javascript:;" onclick="javascript:showCodeTxt('p482code4'); return false;">View Code</a> JAVASCRIPT</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p4824"><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td
class="code" id="p482code4"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// apply to all png images</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'img[@src$=.png]'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ifixpng</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// apply to all png images and to div#logo</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'img[@src$=.png], div#logo'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ifixpng</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// apply to div#logo, undo fix, then apply the fix again</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'img[@src$=.png], div#logo'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ifixpng</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">iunfixpng</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ifixpng</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// apply to div#logo2, modify css property and add click event</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div#logo2'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ifixpng</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>cursor<span style="color: #339933;">:</span><span style="color: #3366CC;">'pointer'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ifixpng is cool!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;;</span></pre></td></tr></table></div><p>Alle weiteren Infos, sowie das Plugin zum Download findet Ihr auf der <a
title="jQuery.ifixpng" href="http://jquery.khurshid.com/ifixpng.php" target="_blank">offiziellen Homepage</a>.</p><h3  class="related_post_title">Ähnliche Artikel</h3><ul
class="related_post"><li>16. Oktober 2009 -- <a
href="http://www.mysrc.de/jquery/jquery-accessible-ria-widgets-fur-jedermann/" title="jQuery &#8211; Accessible-RIA &#8211; Widgets für jedermann">jQuery &#8211; Accessible-RIA &#8211; Widgets für jedermann</a></li><li>19. November 2010 -- <a
href="http://www.mysrc.de/jquery/praxistipp-suchfeld-leeren-on-focus-jquery/" title="Praxistipp: Suchfeld leeren on focus (jQuery)">Praxistipp: Suchfeld leeren on focus (jQuery)</a></li><li>23. März 2010 -- <a
href="http://www.mysrc.de/jquery/praxistipp-%e2%80%93-jqtransform-bug-bei-input-in-firefox-3-5-2/" title="Praxistipp – jqTransform Bug bei input in Firefox > 3.5.2">Praxistipp – jqTransform Bug bei input in Firefox > 3.5.2</a></li></ul>]]></content:encoded> <wfw:commentRss>http://www.mysrc.de/jquery/jquery-ifixpng-plugin-fur-transparenz-problem/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Lazy &#8211; jQuery Plugins on-demand laden</title><link>http://www.mysrc.de/jquery/lazy-jquery-plugins-on-demand-laden/</link> <comments>http://www.mysrc.de/jquery/lazy-jquery-plugins-on-demand-laden/#comments</comments> <pubDate>Tue, 12 May 2009 11:06:13 +0000</pubDate> <dc:creator>Oliver Storm</dc:creator> <category><![CDATA[Web-Development]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Best Practice]]></category> <category><![CDATA[Coding]]></category> <guid
isPermaLink="false">http://www.mysrc.de/?p=474</guid> <description><![CDATA[Die Tage schon bin ich über ein schönes kleines jQuery-Plugin names Lazy gestolpert. Bei lazy handelt es sich um ein nur 530Byte großes Plugin das gerade bei großen Projekten einen gehörigen Vorteil, was das Laden von anderen jQuery-Plugins angeht, bringen kann. Lazy tut nämlich nichts anderes, als Plugins nur dann zu initialisieren wenn auch irgendwo [...]]]></description> <content:encoded><![CDATA[<p><img
class="alignnone size-full wp-image-477" title="lazy - jQuery Plugins on demand laden" src="http://www.mysrc.de/wp-content/uploads/2009/05/lazy.jpg" alt="lazy - jQuery Plugins on demand laden" width="460" height="120" /></p><p>Die Tage schon bin ich über ein schönes kleines<strong> jQuery-Plugin</strong> names <a
title="jQuery Plugin Lazy" href="http://www.unwrongest.com/projects/lazy/" target="_self">Lazy</a> gestolpert.<br
/> Bei lazy handelt es sich um ein nur 530Byte großes Plugin das gerade bei großen Projekten einen gehörigen Vorteil, was das Laden von anderen <strong>jQuery-Plugins</strong> angeht, bringen kann.</p><p><strong>Lazy</strong> tut nämlich nichts anderes, als Plugins nur dann zu initialisieren wenn auch irgendwo wirklich ein Aufruf für die Funktion erfolgt.<br
/> Sprich ihr könnt über lazy einbinden was ihr wollt, geladen wird es nur wenn es auch wirklich gebraucht wird.</p><p>Hier noch ein kleines <strong>Code-Beispiel</strong>:</p><div
class="wp_codebox_msgheader"><span
class="right"><sup><a
href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span
style="color: #99cc00">?</span></a></sup></span><span
class="left"><a
href="javascript:;" onclick="javascript:showCodeTxt('p474code6'); return false;">View Code</a> JAVASCRIPT</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p4746"><td
class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td
class="code" id="p474code6"><pre class="javascript" style="font-family:monospace;">$.<span style="color: #660066;">lazy</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'jquery.elastic.js'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'elastic'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
$.<span style="color: #660066;">lazy</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'jquery.validation.js'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'validate'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
$.<span style="color: #660066;">lazy</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'jquery.ajaxdotnet.js'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'ajaxDotNet'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// And then you use you plugins as you always do</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'textarea'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">elastic</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>Weiter Infos sowie eine Demo und die Files zum Download findet Ihr auf der offiziellen Seite:<br
/> <a
title="jQuery Plugin Lazy" href="http://www.unwrongest.com/projects/lazy/" target="_self">http://www.unwrongest.com/projects/lazy/</a></p><h3  class="related_post_title">Ähnliche Artikel</h3><ul
class="related_post"><li>26. Februar 2009 -- <a
href="http://www.mysrc.de/jquery/tips-zum-umgang-mit-jquery/" title="Tips zum Umgang mit jQuery">Tips zum Umgang mit jQuery</a></li><li>19. November 2010 -- <a
href="http://www.mysrc.de/jquery/praxistipp-suchfeld-leeren-on-focus-jquery/" title="Praxistipp: Suchfeld leeren on focus (jQuery)">Praxistipp: Suchfeld leeren on focus (jQuery)</a></li><li>23. März 2010 -- <a
href="http://www.mysrc.de/jquery/praxistipp-%e2%80%93-jqtransform-bug-bei-input-in-firefox-3-5-2/" title="Praxistipp – jqTransform Bug bei input in Firefox > 3.5.2">Praxistipp – jqTransform Bug bei input in Firefox > 3.5.2</a></li></ul>]]></content:encoded> <wfw:commentRss>http://www.mysrc.de/jquery/lazy-jquery-plugins-on-demand-laden/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Formulare ausrichten mit jQuery und CSS</title><link>http://www.mysrc.de/jquery/formulare-ausrichten-mit-jquery-und-css/</link> <comments>http://www.mysrc.de/jquery/formulare-ausrichten-mit-jquery-und-css/#comments</comments> <pubDate>Sat, 09 May 2009 10:04:28 +0000</pubDate> <dc:creator>Stefan Huissel</dc:creator> <category><![CDATA[Web-Development]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Forms]]></category> <category><![CDATA[Formulare]]></category> <guid
isPermaLink="false">http://www.mysrc.de/?p=464</guid> <description><![CDATA[Formulare lassen sich gut mit Tabellen oder Label layouten. Allerdings sind Tabellen zum Anzeigen von Daten gedacht und nicht um Oberflächelemente zu positionieren. Bei der CSS Variante mit Div&#8217;s und Label steht man vor dem Problem, dass sich die Länge des Formularfeld beschreibenden Textes ändern kann und ab einer bestimmten Breite zu einem Zeilenumbruch oder [...]]]></description> <content:encoded><![CDATA[<p><strong>Formulare</strong> lassen sich gut mit Tabellen oder Label <strong>layouten</strong>. Allerdings sind Tabellen zum Anzeigen von Daten gedacht und nicht um Oberflächelemente zu positionieren. Bei der CSS Variante mit Div&#8217;s und Label steht man vor dem Problem, dass sich die <strong>Länge des</strong> Formularfeld beschreibenden <strong>Textes ändern</strong> kann und ab einer bestimmten Breite zu einem Zeilenumbruch oder zu einer unterschiedlichen Ausrichtung der Formularfelder führen.<br
/> Diese kleine Schwierigkeit lässt sich mit jQuery elegant umgehen.</p><p>Zunächste einmal brauchen wir ein einfaches <strong>HTML-Grundgerüst</strong>:</p><div
class="wp_codebox_msgheader"><span
class="right"><sup><a
href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span
style="color: #99cc00">?</span></a></sup></span><span
class="left"><a
href="javascript:;" onclick="javascript:showCodeTxt('p464code10'); return false;">View Code</a> HTML</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p46410"><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td
class="code" id="p464code10"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;input_div&quot;&gt;
   &lt;label for=&quot;name&quot;&gt;Name:&lt;/label&gt;
  &lt;input type=&quot;text&quot; id=&quot;einName&quot; name=&quot;derName&quot; /&gt;
&lt;/div&gt;
&lt;div class=&quot;input_div&quot;&gt;
   ...
   ...
&lt;/div&gt;</pre></td></tr></table></div><p><strong>Das CSS</strong> ungefähr in dieser Form:</p><div
class="wp_codebox_msgheader"><span
class="right"><sup><a
href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span
style="color: #99cc00">?</span></a></sup></span><span
class="left"><a
href="javascript:;" onclick="javascript:showCodeTxt('p464code11'); return false;">View Code</a> CSS</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p46411"><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td
class="code" id="p464code11"><pre class="css" style="font-family:monospace;">label<span style="color: #00AA00;">,</span> input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span>      <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span>  <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
label<span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
.input_div<span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div><p>Im Normalfall gibt man dem Label noch eine <strong>fixe &#8220;width&#8221; Eigenschaft</strong> mit. Aber damit die Texte in jedem Fall in das Label passen und <strong>immer den gleichen Abstand</strong> zum <strong>Formularfeld</strong> haben, benutzen wir jQuery um die notwendige Breite bestimmen zu lassen:</p><div
class="wp_codebox_msgheader"><span
class="right"><sup><a
href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span
style="color: #99cc00">?</span></a></sup></span><span
class="left"><a
href="javascript:;" onclick="javascript:showCodeTxt('p464code12'); return false;">View Code</a> JAVASCRIPT</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p46412"><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td
class="code" id="p464code12"><pre class="javascript" style="font-family:monospace;">  $<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #003366; font-weight: bold;">var</span> max <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
      <span style="color: #006600; font-style: italic;">//prüfe die Breite jedes Labels und speichere die größte Zahl in der Variable max</span>
      $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;label&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
          <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> max<span style="color: #009900;">&#41;</span>
              max <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #006600; font-style: italic;">//setze jedes Label-Tag auf die gleiche Breite</span>
      $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;label&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span>max<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>So, das wäre es dann schon gewesen und das Ergebnis sieht wie folgt aus:</p><p><img
src="http://www.mysrc.de/wp-content/uploads/2009/05/form.png" alt="Form" title="Form" width="395" height="74" class="alignnone size-full wp-image-469" /></p><h3  class="related_post_title">Ähnliche Artikel</h3><ul
class="related_post"><li>19. November 2010 -- <a
href="http://www.mysrc.de/jquery/praxistipp-suchfeld-leeren-on-focus-jquery/" title="Praxistipp: Suchfeld leeren on focus (jQuery)">Praxistipp: Suchfeld leeren on focus (jQuery)</a></li><li>17. September 2009 -- <a
href="http://www.mysrc.de/jquery/jcryption-html-form-encryption-plugin/" title="jCryption &#8211; HTML-Form Encryption Plugin">jCryption &#8211; HTML-Form Encryption Plugin</a></li><li>4. September 2009 -- <a
href="http://www.mysrc.de/jquery/praxistip-output-element-des-jquery-validate-plugin-andern/" title="Praxistip: Output Element des jQuery Validate Plugin ändern">Praxistip: Output Element des jQuery Validate Plugin ändern</a></li></ul>]]></content:encoded> <wfw:commentRss>http://www.mysrc.de/jquery/formulare-ausrichten-mit-jquery-und-css/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>jQuery Address &#8211; Deep linking mit jQuery</title><link>http://www.mysrc.de/jquery/jquery-address-deep-linking-mit-jquery/</link> <comments>http://www.mysrc.de/jquery/jquery-address-deep-linking-mit-jquery/#comments</comments> <pubDate>Thu, 07 May 2009 07:28:40 +0000</pubDate> <dc:creator>Oliver Storm</dc:creator> <category><![CDATA[Web-Development]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[usability]]></category> <guid
isPermaLink="false">http://www.mysrc.de/?p=461</guid> <description><![CDATA[Denen unter euch die auch mit Flash, Flex oder Air arbeiten dürfte swfaddress von asual durchaus ein Begriff sein. Ermöglicht swfaddress doch das deeplinken innerhalb von Flash-Anwendungen. Meiner Meinung nach war swfaddress in den letzten Jahren eine der besten Zusatzentwicklungen im Bereich Flash und hat sich, nicht zu letzt durch die leichte Implementierung, schnell durchgesetzt. [...]]]></description> <content:encoded><![CDATA[<p>Denen unter euch die auch mit Flash, Flex oder Air arbeiten dürfte <a
title="asual - swfaddress" href="http://www.asual.com/swfaddress/" target="_blank">swfaddress von asual</a> durchaus ein Begriff sein. Ermöglicht swfaddress doch das <strong>deeplinken</strong> innerhalb von Flash-Anwendungen.<br
/> Meiner Meinung nach war swfaddress in den letzten Jahren eine der besten Zusatzentwicklungen im Bereich Flash und hat sich, nicht zu letzt durch die leichte Implementierung, schnell durchgesetzt.</p><p>Die Jungs von asual haben jetzt ein weiteres<strong> <a
title="Deeplinking bei Wikipedia" href="http://en.wikipedia.org/wiki/Deep_linking" target="_blank">Deeplinking</a>-Plugin</strong> entwickelt. Diesmal für <strong>jQuery</strong>.<br
/> Mit dem Plugin ist es Möglicht jetzt auch direkt den Status einer Applikation oder einen speziellen Bereich der Website zu verlinken.</p><p>Das Plugin ermöglicht unter anderem:</p><ul><li>Bookmarken in die Favoriten oder einer Social-Website</li><li>Versenden von Links via E-Mail oder Messenger</li><li>Das auffinden von speziellem Inhalt mit den großen Suchmaschinen</li><li>Verarbeiten der Browser-History und des Refresh-Buttons</li></ul><p>Eine vom Plugin erzeugte URL könnte so aussehen:</p><p>http://www.domain.de/#/section/?id=1&amp;name=jQuery</p><p>Eine Möglichkeit ist nun z.B. das verlinken in Tabs. Mit dem Plugin könnt Ihr nun z.B. direkt gezielt Bereiche einer Tab-Komponente ansteuern.<br
/> Ein Beispiel dafür findet Ihr <a
title="jQuery Address - Tab Beispiel" href="http://www.asual.com/jquery/address/samples/tabs/#" target="_blank">hier</a>.</p><p>Die Seite von asual zum Plugin findet ihr unter: <a
title="jQuery Address - Deep linking plugin" href="http://www.asual.com/jquery/address/" target="_blank">http://www.asual.com/jquery/address/</a><br
/> Dort findet Ihr das Plugin zum Download sowie die API und Beispiele.</p><h3  class="related_post_title">Ähnliche Artikel</h3><ul
class="related_post"><li>16. Oktober 2009 -- <a
href="http://www.mysrc.de/jquery/jquery-accessible-ria-widgets-fur-jedermann/" title="jQuery &#8211; Accessible-RIA &#8211; Widgets für jedermann">jQuery &#8211; Accessible-RIA &#8211; Widgets für jedermann</a></li><li>12. Juni 2009 -- <a
href="http://www.mysrc.de/jquery/bessere-textfelder-prettycomments-jquery-plugin/" title="Bessere Textfelder &#8211; prettyComments jQuery Plugin">Bessere Textfelder &#8211; prettyComments jQuery Plugin</a></li><li>12. Mai 2009 -- <a
href="http://www.mysrc.de/jquery/jquery-ifixpng-plugin-fur-transparenz-problem/" title="jQuery ifixpng &#8211; Plugin für Transparenz-Problem">jQuery ifixpng &#8211; Plugin für Transparenz-Problem</a></li></ul>]]></content:encoded> <wfw:commentRss>http://www.mysrc.de/jquery/jquery-address-deep-linking-mit-jquery/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Online Thumbnail Generator für Webseiten</title><link>http://www.mysrc.de/allgemein/online-thumbnail-generator-fur-webseiten/</link> <comments>http://www.mysrc.de/allgemein/online-thumbnail-generator-fur-webseiten/#comments</comments> <pubDate>Wed, 22 Apr 2009 14:58:18 +0000</pubDate> <dc:creator>Stefan Huissel</dc:creator> <category><![CDATA[Allgemein]]></category> <category><![CDATA[Web-Development]]></category> <category><![CDATA[api]]></category> <category><![CDATA[Thumbnails]]></category> <guid
isPermaLink="false">http://www.mysrc.de/?p=425</guid> <description><![CDATA[Unabhängig von alles JS-Frameworks will ich mal einen kleinen Service vorstellen, mit dem man sehr einfach Thumbails von Websites darstellen kann. Alles was man dafür benötigt ist ein Account auf Pageglimpse. Nach erfolgreicher Registrierung gibt man auf seiner Seite dem img-Tag als src Attribut einfach einen absoluten Link. Dieser kann dann wie folgt aussehen: http://images.pageglimpse.com/v1/thumbnails?url=http://www.mysrc.de/&#038;size=large&#038;devkey=1234567890 [...]]]></description> <content:encoded><![CDATA[<p>Unabhängig von alles JS-Frameworks will ich mal einen kleinen Service vorstellen, mit dem man sehr <strong>einfach Thumbails</strong> von Websites <strong>darstellen</strong> kann.<br
/> Alles was man dafür benötigt ist ein Account auf <a
href="http://www.pageglimpse.com/">Pageglimpse</a>. Nach erfolgreicher Registrierung gibt man auf seiner Seite dem img-Tag <strong>als src Attribut</strong> einfach <strong>einen absoluten Link</strong>. Dieser kann dann wie folgt aussehen:</p><p>http://images.pageglimpse.com/v1/thumbnails?url=http://www.mysrc.de/&#038;size=large&#038;devkey=1234567890</p><p><img
src="http://www.mysrc.de/wp-content/uploads/2009/04/mysrc_thumb-300x137.jpg" alt="mysrc_thumb" title="mysrc_thumb" width="300" height="137" class="alignnone size-medium wp-image-429" /></p><p><strong>Pageglimpse </strong>verfügt auch über eine kleine <strong>API</strong>. Was indem Fall nur bedeutet, dass dem GET-String einfach weitere Attribute hinzugefügt werden können.<br
/> Dazu gehören:</p><ul><li>devkey -> obligatorisch und auch üblich um einen Service im Web zu nutzen</li><li>url -> WWW-Adresse die der Website die als Thumbnail angezeigt werden soll</li><li>size -> Größe des Thumbails</li></ul><p>Da die Thumbnails nicht sofort generiert werden, kann man einen Request senden um den Status zu prüfen. Ein <strong>Request </strong>sähe dann so aus:</p><p>http://images.pageglimpse.com/v1/thumbnails/request?</p><p>Hinter &#8220;request?&#8221; kann man dann noch die GET-Parameter anhängen. Beispiele dazu findet ihr auf <a
href="http://www.pageglimpse.com/features/api">Pageglimpse API</a>.<br
/> <br/></p><h3  class="related_post_title">Ähnliche Artikel</h3><ul
class="related_post"><li>8. Dezember 2009 -- <a
href="http://www.mysrc.de/jquery/jquery-load-function-ajax-the-simple-way-part-1/" title="jQuery load function &#8211; Ajax the simple way (Part 1)">jQuery load function &#8211; Ajax the simple way (Part 1)</a></li><li>30. Mai 2009 -- <a
href="http://www.mysrc.de/jquery/jyoutube-jquery-youtube-thumbnail-plugin/" title="jYouTube &#8211; jQuery YouTube thumbnail plugin">jYouTube &#8211; jQuery YouTube thumbnail plugin</a></li><li>17. April 2009 -- <a
href="http://www.mysrc.de/jquery/jquery-api-browser-v13-fur-den-desktop/" title="jQuery API Browser v1.3 für den Desktop ">jQuery API Browser v1.3 für den Desktop </a></li></ul>]]></content:encoded> <wfw:commentRss>http://www.mysrc.de/allgemein/online-thumbnail-generator-fur-webseiten/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>jQuery´d Bread Crumb &#8211; jBreadCrumb</title><link>http://www.mysrc.de/jquery/jquery%c2%b4d-bread-crumb-jbreadcrumb/</link> <comments>http://www.mysrc.de/jquery/jquery%c2%b4d-bread-crumb-jbreadcrumb/#comments</comments> <pubDate>Thu, 16 Apr 2009 21:55:40 +0000</pubDate> <dc:creator>Oliver Storm</dc:creator> <category><![CDATA[Web-Development]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Plugin]]></category> <category><![CDATA[usability]]></category> <guid
isPermaLink="false">http://www.mysrc.de/?p=366</guid> <description><![CDATA[Zwar nicht ganz neu, dafür wie ich finde immer noch beeindruckend. Und für die unter euch die es nicht kennen evtl. ein Highlight. jBreadCrumb &#8211; Das jQuery-Plugin zur modernen Darstellung von Breadcrumbs. Das Plugin wurde für Breadcrumbs geschrieben welche mit extrem tief verschachtelten oder langen Seitennamen umgehen müssen und hat daher auch die Fähigkeit einzuklappen. [...]]]></description> <content:encoded><![CDATA[<p><img
class="alignnone size-full wp-image-374" title="jbreadcrumb3" src="http://www.mysrc.de/wp-content/uploads/2009/04/jbreadcrumb3.jpg" alt="jbreadcrumb3" width="471" height="94" /></p><p>Zwar nicht ganz neu, dafür wie ich finde immer noch beeindruckend. Und für die unter euch die es nicht kennen evtl. ein Highlight.<a
title="jBreadCrumb" href="http://www.comparenetworks.com/developers/jqueryplugins/jbreadcrumb.html" target="_blank"> jBreadCrumb</a> &#8211; Das <strong>jQuery-Plugin</strong> zur modernen Darstellung von Breadcrumbs.</p><p>Das Plugin wurde für <strong>Breadcrumbs</strong> geschrieben welche mit extrem tief verschachtelten oder langen Seitennamen umgehen müssen und hat daher auch die Fähigkeit einzuklappen.<br
/> Das schöne ist das sich der Einklappeffekt anhand der Anzahl der Elemente oder der Länge einstellen lässt.</p><p>Das Plugin nutzt weiter noch das <a
title="jQuery easing Plugin" href="http://gsgd.co.uk/sandbox/jquery/easing/" target="_blank">easing Plugin</a> von jQuery zum ein- bzw. aufklappen der Inhalte.</p><p>Um das Plugin zu nutzen braucht Ihr nur etwas in der Art:</p><div
class="wp_codebox_msgheader"><span
class="right"><sup><a
href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span
style="color: #99cc00">?</span></a></sup></span><span
class="left"><a
href="javascript:;" onclick="javascript:showCodeTxt('p366code14'); return false;">View Code</a> JAVASCRIPT</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p36614"><td
class="line_numbers"><pre>1
2
3
</pre></td><td
class="code" id="p366code14"><pre class="javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#breadCrumb&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">jBreadCrumb</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>easing<span style="color: #339933;">:</span><span style="color: #3366CC;">'swing'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></pre></td></tr></table></div><p>Eine Demo sowie die Dateien zum Download findet Ihr auf der <a
title="jBreadCrumb" href="http://www.comparenetworks.com/developers/jqueryplugins/jbreadcrumb.html" target="_blank">offiziellen Seite.</a></p><h3  class="related_post_title">Ähnliche Artikel</h3><ul
class="related_post"><li>12. Juni 2009 -- <a
href="http://www.mysrc.de/jquery/bessere-textfelder-prettycomments-jquery-plugin/" title="Bessere Textfelder &#8211; prettyComments jQuery Plugin">Bessere Textfelder &#8211; prettyComments jQuery Plugin</a></li><li>23. März 2010 -- <a
href="http://www.mysrc.de/jquery/praxistipp-%e2%80%93-jqtransform-bug-bei-input-in-firefox-3-5-2/" title="Praxistipp – jqTransform Bug bei input in Firefox > 3.5.2">Praxistipp – jqTransform Bug bei input in Firefox > 3.5.2</a></li><li>20. Oktober 2009 -- <a
href="http://www.mysrc.de/jquery/praxistipp-jqtransform-button-width-einstellen/" title="Praxistipp: jqTransform Button width einstellen">Praxistipp: jqTransform Button width einstellen</a></li></ul>]]></content:encoded> <wfw:commentRss>http://www.mysrc.de/jquery/jquery%c2%b4d-bread-crumb-jbreadcrumb/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Text-Overflow &#8211; jQuery Plugin ellipsis</title><link>http://www.mysrc.de/jquery/text-overflow-jquery-plugin-ellipsis/</link> <comments>http://www.mysrc.de/jquery/text-overflow-jquery-plugin-ellipsis/#comments</comments> <pubDate>Wed, 08 Apr 2009 08:30:04 +0000</pubDate> <dc:creator>Oliver Storm</dc:creator> <category><![CDATA[Web-Development]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Plugin]]></category> <guid
isPermaLink="false">http://www.mysrc.de/?p=321</guid> <description><![CDATA[Es gibt einige CSS-Features welche Microsoft schon seit längerem den Entwicklern im Internet Explorer zur Verfügung stellt. Eines dieser Features ist die Eigenschaft &#8220;text-overflow&#8221;, welche jetzt auch in CSS3 verankert ist und bereits in Safari und Opera verankert ist. Das einzige Problem ist, Firefox unterstützt es noch nicht. (Wird es aber wohl ab Version 3.1 [...]]]></description> <content:encoded><![CDATA[<p>Es gibt einige CSS-Features welche Microsoft schon seit längerem den Entwicklern im Internet Explorer zur Verfügung stellt. Eines dieser Features ist die Eigenschaft <strong>&#8220;text-overflow&#8221;</strong>, welche jetzt auch in CSS3 verankert ist und bereits in Safari und Opera verankert ist. Das einzige Problem ist, Firefox unterstützt es noch nicht. (Wird es aber wohl ab Version 3.1 tun)</p><p>Text-Overflow zeigt dem User, wenn der Text länger ist als der Container der ihn beinhaltet, einen kleinen Hinweis an das es mehr Text gibt.<br
/> Im Normallfall einfach in Form von drei Punkten.</p><p>Devon Govett hat ein kleines jQuery-Plugin geschrieben welches diese Eigenschaft jetzt auch für Firefox verfügbar macht.<br
/> Gerade im Bereich CMS oder ähnlichem ist dies Interessant. Da man sich hiermit String-Manipulationen mittels PHP o.ä. schenken kann.</p><p>Ein einfaches Beispiel:</p><div
class="wp_codebox_msgheader"><span
class="right"><sup><a
href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span
style="color: #99cc00">?</span></a></sup></span><span
class="left"><a
href="javascript:;" onclick="javascript:showCodeTxt('p321code16'); return false;">View Code</a> JAVASCRIPT</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p32116"><td
class="line_numbers"><pre>1
</pre></td><td
class="code" id="p321code16"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#id&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ellipsis</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>Das Plugin findet ihr <a
title="Text-overflow: ellipsis for Firefox via jQuery" href="http://devongovett.wordpress.com/2009/04/06/text-overflow-ellipsis-for-firefox-via-jquery/" target="_blank">hier</a> sowie die <a
title="Ellipsis Demo" href="http://dl.getdropbox.com/u/534786/index.html" target="_blank">Demo hier</a>.</p><h3  class="related_post_title">Ähnliche Artikel</h3><ul
class="related_post"><li>23. März 2010 -- <a
href="http://www.mysrc.de/jquery/praxistipp-%e2%80%93-jqtransform-bug-bei-input-in-firefox-3-5-2/" title="Praxistipp – jqTransform Bug bei input in Firefox > 3.5.2">Praxistipp – jqTransform Bug bei input in Firefox > 3.5.2</a></li><li>20. Oktober 2009 -- <a
href="http://www.mysrc.de/jquery/praxistipp-jqtransform-button-width-einstellen/" title="Praxistipp: jqTransform Button width einstellen">Praxistipp: jqTransform Button width einstellen</a></li><li>16. Oktober 2009 -- <a
href="http://www.mysrc.de/jquery/praxistipp-jqtransform-width-bug/" title="Praxistipp &#8211; jqTransform width bug">Praxistipp &#8211; jqTransform width bug</a></li></ul>]]></content:encoded> <wfw:commentRss>http://www.mysrc.de/jquery/text-overflow-jquery-plugin-ellipsis/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Mozilla Bespin &#8211; webbasierter Code-Editor</title><link>http://www.mysrc.de/web-development/mozilla-bespin/</link> <comments>http://www.mysrc.de/web-development/mozilla-bespin/#comments</comments> <pubDate>Tue, 17 Feb 2009 09:12:55 +0000</pubDate> <dc:creator>Oliver Storm</dc:creator> <category><![CDATA[Javascript]]></category> <category><![CDATA[Web-Development]]></category> <category><![CDATA[Bespin]]></category> <category><![CDATA[editor]]></category> <guid
isPermaLink="false">http://www.mysrc.de/?p=77</guid> <description><![CDATA[Es regt sich was in den Mozilla Labs, dem zu hause für experimentelle Projekte bei Mozilla. Dort stellt Mozilla Bespin vor. Einen freien, in JavaScript geschriebenen, Code-Editor welcher im Browser bedient werden kann. Das schöne an Bespin ist, dass jeder Anwender den Editor weitestgehend seinen Bedürfnissen anpassen kann. Die Köpfe hinter dem Projekt sind, unter [...]]]></description> <content:encoded><![CDATA[<p><img
class="alignnone size-full wp-image-78" title="bespin" src="http://www.mysrc.de/wp-content/uploads/2009/02/bespin.png" alt="bespin" width="300" height="100" /></p><p>Es regt sich was in den Mozilla Labs, dem zu hause für experimentelle Projekte bei Mozilla. Dort stellt Mozilla Bespin vor. Einen freien, in <strong>JavaScript</strong> geschriebenen, Code-Editor welcher im Browser bedient werden kann.<br
/> Das schöne an Bespin ist, dass jeder Anwender den Editor weitestgehend seinen Bedürfnissen anpassen kann.</p><p>Die Köpfe hinter dem Projekt sind, unter anderem, die beiden <a
title="ajaxian" href="http://ajaxian.com/" target="_blank">Ajaxian.com</a> Gründer Ben Galbraith und Dion Almaer.<br
/> Mit der Entwicklung von Bespin geht Mozilla den nächsten logischen Schritt in Richtung <strong>SaaS </strong>(<a
title="Software as a Service bei Wikipedia" href="http://de.wikipedia.org/wiki/Software_as_a_Service" target="_blank">Software as a Service</a>) und macht somit eine Entwicklungsumgebung<br
/> für derartige Webandwendungen online verfügbar.<br
/> Viele Vorteile des Saas-Modells sind natürlich auch für <strong>Webentwickler</strong> interessant. Schneller Zugriff auf alle Projekte von Überall, problemlose Zusammenarbeit mit anderen Entwicklern und vieles mehr.</p><p>Bespin liegt momentan, als früher experimenteller Prototyp,  in der Version 0.1 vor und ist nur ein Anfang. Ziel von Bespin soll es sein ein offenes, erweiterbares und webbasiertes Framework zum erstellen von Code zu werden, welches die <strong>Produktivität von Entwicklern</strong> erhöht.</p><h3>Die wesentlichen Features im Überblick:</h3><ul><li><strong>Echtzeit-Collaboration</strong>:<br
/> Live-Coding zusammen mit Kollegen soll einfach und unkompliziert möglich sein.</li><li><strong>Integrierte Kommandozeile</strong>:<br
/> Tools wie vi oder Emacs haben es vorgemacht und auch Bespin will diese Stärke nutzen.</li><li><strong>Erweiterbar und Self-Hosted</strong>:<br
/> Sowohl das Interface als auch die Fähigkeiten sollen über einfache Befehle (wie bei <a
href="http://t3n.yeebase.com/aktuell/news/newspost/mozilla-labs-ubiquity-die-kommandozeile-fuers-web-20/1431/" target="_blank">Ubiquity</a>) oder über die Plug-In API erweiterbar sein.</li><li><strong>Schnelligkeit</strong>:<br
/> Auch die Bearbeitung von sehr großen Dateien soll sehr schnell werden.</li><li><strong>Zugriff von überall</strong>:<br
/> Die Entwickler sollen von jedem Ort und jedem Gerät über einen modernen Browser Zugriff erhalten.</li><li><strong>Einfache Benutzung</strong>:<br
/> Die Nutzer sollen sich schnell zurechtfinden und mit dem Coden beginnen können.</li></ul><p><object
width="400" height="225" data="http://vimeo.com/moogaloop.swf?clip_id=3195079&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash"><param
name="allowfullscreen" value="true" /><param
name="allowscriptaccess" value="always" /><param
name="src" value="http://vimeo.com/moogaloop.swf?clip_id=3195079&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /></object></p><p><strong>Weiterführende Links zum Thema:</strong><br
/> <a
title="Introducing Bespin" href="http://labs.mozilla.com/2009/02/introducing-bespin/" target="_blank">http://labs.mozilla.com/2009/02/introducing-bespin/</a><br
/> <a
title="Bespin bei Mozilla.org" href="https://bespin.mozilla.com/" target="_blank">https://bespin.mozilla.com/</a></p><h3  class="related_post_title">Ähnliche Artikel</h3><ul
class="related_post"><li>Keine ähnlichen Artikel verfügbar</li></ul>]]></content:encoded> <wfw:commentRss>http://www.mysrc.de/web-development/mozilla-bespin/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
