<?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; jQuery</title> <atom:link href="http://www.mysrc.de/category/jquery/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>jQuery Mobile &#8211; Web-Apps mit jQuery</title><link>http://www.mysrc.de/jquery/jquery-mobile-web-apps-mit-jquery/</link> <comments>http://www.mysrc.de/jquery/jquery-mobile-web-apps-mit-jquery/#comments</comments> <pubDate>Thu, 25 Nov 2010 20:41:03 +0000</pubDate> <dc:creator>Oliver Storm</dc:creator> <category><![CDATA[jQuery]]></category> <category><![CDATA[jQTouch]]></category> <category><![CDATA[jQuery-Mobile]]></category> <category><![CDATA[mobile]]></category> <category><![CDATA[Tipp!]]></category> <guid
isPermaLink="false">http://www.mysrc.de/?p=1146</guid> <description><![CDATA[Endlich ist es soweit. jQuery Mobile 1.0 Alpha 2 ist released. Und meiner Meinung nach beginnt damit ein neuer Abschnitt in der Entwicklung mobiler Seiten, bzw. von Web-Apps auf touch-fähigen Smartphones. War der erste Alpha release noch sehr buggy, merkt man dass seit dem rund 200 Tickets berarbeitet wurden und auch viele Wünsche der User [...]]]></description> <content:encoded><![CDATA[<p>Endlich ist es soweit. <a
title="jQuery Mobile 1.0 Alpha 2" href="http://jquerymobile.com/" target="_blank"><strong>jQuery Mobile 1.0 Alpha 2</strong></a> ist released. Und meiner Meinung nach beginnt damit ein neuer Abschnitt in der <strong>Entwicklung mobiler Seiten</strong>, bzw. von Web-Apps auf touch-fähigen Smartphones.</p><p><a
href="http://www.mysrc.de/wp-content/uploads/2010/11/jquery-mobile.jpg"><img
class="size-full wp-image-1149 alignnone" title="jquery-mobile" src="http://www.mysrc.de/wp-content/uploads/2010/11/jquery-mobile.jpg" alt="jQuery Mobile 1.0 Alpha 2 " width="500" height="220" /></a></p><p>War der erste Alpha release noch sehr buggy, merkt man dass seit dem rund 200 Tickets berarbeitet wurden und auch viele Wünsche der User aus dem Forum einzug gefunden haben. Das jQuery Mobile Team selbst sagt:<br
/> <q>Overall the quality of jQuery Mobile has been greatly improved. A  number of subsystems have been rewritten (both for clarity and for  performance) and cross-browser compatibility has seen a marked increase  in quality.</q></p><p>Die Performance im allgemeinen wurde verbessert, neue CSS-Klassen und statische Methoden hinzugefügt und vieles mehr. Den kompletten Überblick bekommt man in den<a
title="jQuery Mobile Release Notes" href="http://jquerymobile.com/2010/11/jquery-mobile-alpha-2-released/" target="_blank"> release notes</a>.</p><p>Nachdem schon javascript Plugins wie <a
title="jqTouch auf mysrc.de" href="http://www.mysrc.de/jquery/jquery-fur-mobile-browser-jqtouch/" target="_blank">jqTouch</a>, iUi, jo, SproutCore u.a einen ersten Ausblick auf die <strong>Entwicklung Mobiler-Apps</strong> gegeben haben und auch von Entwicklern gut angenommen wurden, so ist jetzt mit jQuery Mobile wohl eines der, wenn nicht das, mächtigste Framework zum entwickeln Mobiler-Anwendungen auf dem Markt.</p><p>Ich habe heute mal mit meinem iPhone die ersten Tests gemacht und muss sagen, mir gefiel sehr was ich gesehen habe. Gerade die <a
title="jQuery Mobile Demos" href="http://jquerymobile.com/demos/1.0a2/" target="_blank">Demos</a> waren sehr vielversprechend.</p><p>Die Key-features im Überblick:</p><ul><li>Basierend auf dem jQuery Core. Somit eine geringe Lernkurve, da die Syntax weitestgehend gleich bleibt.</li><li>Kompatibel mit allen großen Mobilen Plattformen. &#8211; iOS, Android, Blackberry, Palm WebOS, Nokia/Symbian, Windows Mobile,  bada, MeeGo.</li><li>Leightweight. Mit gereade mal 12k im der komprimierten-Version.</li><li>HTML5 gestützte Konfiguration.</li><li>Automatische installation</li><li>Volle WAI-ARIA Unterstützung</li><li>Neue Events wie z.B. das unterstützen von Touch-Events</li><li>Neue Plugins wie z.B. für das Theming</li></ul><p><a
href="http://www.mysrc.de/wp-content/uploads/2010/11/jquery-mobile-browser.jpg"><img
class="alignright size-full wp-image-1152" title="jquery-mobile-browser" src="http://www.mysrc.de/wp-content/uploads/2010/11/jquery-mobile-browser.jpg" alt="" width="180" height="169" /></a><strong>Das Top-Features</strong> ist, dass wirklich alle großen Mobilen Plattformen out of the Box unterstützt werden.<br
/> Hier gibt es auch noch mal einen schönen Überblick welche Platformen genau unterstützt werden. <a
title="Mobile Graded Browser Support" href="http://jquerymobile.com/gbs/" target="_blank">Mobile Graded Browser Support.</a><br
/> Wir sind gespannt wie es hier weiter geht und werden das Thema jQuery Mobile als festen Bestandteil hier im Blog integrieren und in nächster Zeit auch eine kleine Tutorial-Serie dazu starten.</p><p>Links zu den wichtigsten <strong>jQuery Mobile</strong> Seiten:</p><ul><li><a
title="jQuery Mobile 1.0 Alpha 2" href="http://jquerymobile.com/" target="_self">jQuery Mobile Website</a></li><li><a
title="jQuery Mobile Forum" href="http://forum.jquery.com/jquery-mobile" target="_blank">Forum</a></li><li><a
title="jQuery Mobile Blog" href="http://jquerymobile.com/blog/" target="_blank">Blog</a></li><li><a
title="jQuery Mobile Demos" href="http://jquerymobile.com/demos/1.0a2/" target="_blank">Demos</a></li></ul><h3  class="related_post_title">Ähnliche Artikel</h3><ul
class="related_post"><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><li>5. August 2009 -- <a
href="http://www.mysrc.de/jquery/tipp-den-gleichen-selektor-nicht-mehrmals-aufrufen/" title="Tipp! Den gleichen Selektor nicht mehrmals aufrufen">Tipp! Den gleichen Selektor nicht mehrmals aufrufen</a></li></ul>]]></content:encoded> <wfw:commentRss>http://www.mysrc.de/jquery/jquery-mobile-web-apps-mit-jquery/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Praxistipp: Suchfeld leeren on focus (jQuery)</title><link>http://www.mysrc.de/jquery/praxistipp-suchfeld-leeren-on-focus-jquery/</link> <comments>http://www.mysrc.de/jquery/praxistipp-suchfeld-leeren-on-focus-jquery/#comments</comments> <pubDate>Fri, 19 Nov 2010 12:52:24 +0000</pubDate> <dc:creator>Oliver Storm</dc:creator> <category><![CDATA[jQuery]]></category> <category><![CDATA[Best Practice]]></category> <category><![CDATA[Forms]]></category> <category><![CDATA[Formulare]]></category> <category><![CDATA[Suche]]></category> <guid
isPermaLink="false">http://www.mysrc.de/?p=1139</guid> <description><![CDATA[Gestern hatte ich wieder diesen Fall&#8230;. Man hat´s schon x-mal gemacht, aber immer wenn man es wieder braucht findet man das code-schnippselchen nicht. Ich wollte heute in einem Projekt einfach nur das Suchfeld, welches default als Wert &#8220;Suche&#8221; drin stehen hat, auf klick ins Feld leeren und, sollte der User nichts anderes eingegeben haben beim [...]]]></description> <content:encoded><![CDATA[<p>Gestern hatte ich wieder diesen Fall&#8230;.<br
/> Man hat´s schon x-mal gemacht, aber immer wenn man es wieder braucht findet man das code-schnippselchen nicht.</p><p>Ich wollte heute in einem Projekt einfach nur das <strong>Suchfeld</strong>, welches default als Wert &#8220;Suche&#8221; drin stehen hat, auf klick ins Feld <strong>leeren </strong>und, sollte der User nichts anderes eingegeben haben beim Verlassen das Feld wieder mit diesem Standardwert füllen.</p><p>Hier der Code:</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('p1139code2'); return false;">View Code</a> JAVASCRIPT</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p11392"><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td
class="code" id="p1139code2"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.search'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">focus</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>
	value<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;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><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;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;value&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;&quot;</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>
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.search'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">blur</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;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</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;">val</span><span style="color: #009900;">&#40;</span>value<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>Ich hoffe das hilft dem ein oder anderen&#8230;</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>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>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></ul>]]></content:encoded> <wfw:commentRss>http://www.mysrc.de/jquery/praxistipp-suchfeld-leeren-on-focus-jquery/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>fadeToggle &#8211; die Neue in jQuery 1.4.4</title><link>http://www.mysrc.de/jquery/fadetoggle-die-neue-in-jquery-1-4-4/</link> <comments>http://www.mysrc.de/jquery/fadetoggle-die-neue-in-jquery-1-4-4/#comments</comments> <pubDate>Sun, 14 Nov 2010 12:18:45 +0000</pubDate> <dc:creator>Stefan Huissel</dc:creator> <category><![CDATA[jQuery]]></category> <category><![CDATA[event-handler]]></category> <category><![CDATA[Selektoren]]></category> <guid
isPermaLink="false">http://www.mysrc.de/?p=1126</guid> <description><![CDATA[Diese Woche ist jQuery in einem neuen Release erschienen. Neben einigen Bugfixes und kleinen Ändererungen gibt es auch die neue Funktion &#8220;fadeToogle&#8221;. Sie funktioniert vom Prinzip her genauso wie &#8220;toggleClass&#8221; und &#8220;slideToogle&#8221; und dient, wie die anderen, dazu möglichst einfach zwischen verschiedenen Zuständen zu wechseln. Wir wollen das an zwei Beispielen verdeutlichen. Werfen wir vorher [...]]]></description> <content:encoded><![CDATA[<p>Diese Woche ist jQuery in einem neuen <a
href="http://blog.jquery.com/">Release</a> erschienen. Neben einigen Bugfixes und kleinen Ändererungen gibt es auch die neue Funktion <strong>&#8220;fadeToogle&#8221;</strong>. Sie funktioniert vom Prinzip her genauso wie &#8220;toggleClass&#8221; und &#8220;slideToogle&#8221; und dient, wie die anderen, dazu möglichst <strong>einfach zwischen verschiedenen Zuständen zu wechseln</strong>. Wir wollen das an zwei Beispielen verdeutlichen.</p><p>Werfen wir vorher einen Blick auf die Signatur der neuen Methode:<br
/> <strong>.fadeToggle( [ duration ], [ easing ], [ callback ] )</strong></p><p><strong>Duration</strong> ist die Zeit in der das Fading ausgeführt wird<br
/> <strong>Easing</strong> ist die Art des Effektes, wobei es standardmäßig hier keine relevanten Änderungsoptionen gibt<br
/> <strong>Eine Callback Funktion</strong> um nach der Animation beliebigen Code auszuführen.</p><p>Der Javascript Code sieht nun wie folgt aus:</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('p1126code4'); return false;">View Code</a> JAVASCRIPT</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p11264"><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
</pre></td><td
class="code" id="p1126code4"><pre class="javascript" style="font-family:monospace;">    <span style="color: #006600; font-style: italic;">// Variable um aktuellen Sichtbarkeitsstatus zu speichern</span>
    <span style="color: #003366; font-weight: bold;">var</span> toogleState <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;visible&quot;</span>
&nbsp;
    $<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: #006600; font-style: italic;">//Beispiel 1</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;button:first&quot;</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: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div#fadingBox&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeToggle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;slow&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;linear&quot;</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>
&nbsp;
        <span style="color: #006600; font-style: italic;">//Beispiel 2</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;button:last&quot;</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: #009900;">&#40;</span><span style="color: #3366CC;">&quot;p:first&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeToggle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;fast&quot;</span><span style="color: #339933;">,</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>
&nbsp;
            <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>toogleState <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;visible&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;button:last&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;zeigen&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                toogleState <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;invisible&quot;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
            <span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span>
                $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;button:last&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;verstecken&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                toogleState <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;visible&quot;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
&nbsp;
          <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><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p><strong>Das erste Beispiel</strong> ist ein Box die einfach aus- und wieder eingeblendet wird. Ohne, dass der aktuelle Anzeigestatus sichtbar oder abrufbar wäre.</p><p><strong>Das zweite Beispiel</strong> zeigt einen einfachen Workaround, um mit dem aktuellen Anzeigemodus zu arbeiten. Also ist das Element gerade sichtbar oder nicht. Die hier vorgestellte Variante ist einfacherer Natur. Es wäre natürlich auch möglich, direkt den Sichtbarkeitsstatus des Objektes selbst abzufragen und entsprechend zu reagieren. Die vorgestellte Möglichkeit wurde wegen der besseren Nachvollziehbarkeit so gewählt. Allerdings wäre sie für größere Projekte wegen einer schlechteren Wartbarkeit weniger zu empfehlen.</p><p>Eine Demo dazu findet ihr <a
href="http://www.mysrc.de/demo/fadetoogle/">hier</a>.<br
/> Weder das CSS noch das JS sind ausgelagert, also einfach rechte Maustaste und Quelltext anzeigen lassen.</p><h3  class="related_post_title">Ähnliche Artikel</h3><ul
class="related_post"><li>26. November 2009 -- <a
href="http://www.mysrc.de/allgemein/jquery-howto-traversing/" title="jQuery HowTo: Traversing">jQuery HowTo: Traversing</a></li><li>13. März 2009 -- <a
href="http://www.mysrc.de/jquery/selektoren-in-jquery/" title="Selektoren in jQuery">Selektoren in jQuery</a></li><li>1. Dezember 2010 -- <a
href="http://www.mysrc.de/html5/jquery-mobile-der-eitenaufbau/" title="jQuery Mobile &#8211; Der Seitenaufbau">jQuery Mobile &#8211; Der Seitenaufbau</a></li></ul>]]></content:encoded> <wfw:commentRss>http://www.mysrc.de/jquery/fadetoggle-die-neue-in-jquery-1-4-4/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>jMediaelement &#8211; jQuery HTML5 Audio-Video Kit</title><link>http://www.mysrc.de/jquery/jmediaelement-jquery-html5-audio-video-kit/</link> <comments>http://www.mysrc.de/jquery/jmediaelement-jquery-html5-audio-video-kit/#comments</comments> <pubDate>Tue, 20 Jul 2010 07:48:49 +0000</pubDate> <dc:creator>Oliver Storm</dc:creator> <category><![CDATA[HTML5]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Video]]></category> <guid
isPermaLink="false">http://www.mysrc.de/?p=1084</guid> <description><![CDATA[Nach langer Zeit hab ich heute mal wieder ne Kleinigkeit für euch. Meiner Meinung nach der momentan wohl beste HTML-5 Mediaplayer. jMediaelement spielt sowohl Audio, als auch Video-Dateien ab und hat für alle Browser die kein HTML-5 unterstützen nen Fallback auf Flash und VLC. Der Player ist über CSS komplett stylebar und unterstützt alle großen [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.mysrc.de/wp-content/uploads/2010/07/jmediaelement.jpg"><img
class="size-medium wp-image-1086 alignright" title="jmediaelement" src="http://www.mysrc.de/wp-content/uploads/2010/07/jmediaelement-300x199.jpg" alt="" width="192" height="127" /></a></p><p>Nach langer Zeit hab ich heute mal wieder ne Kleinigkeit für euch.<br
/> Meiner Meinung nach der momentan wohl beste HTML-5 Mediaplayer.<br
/> <a
title="jMediaelement" href="http://protofunc.com/jme/" target="_blank">jMediaelement</a> spielt sowohl Audio, als auch Video-Dateien ab und hat für alle Browser die kein HTML-5 unterstützen nen Fallback auf Flash und VLC.</p><p>Der Player ist über CSS komplett stylebar und unterstützt alle großen Dateiformate wie z.B.: ogg (theora/vorbis), mp4/mov (h.264), WebM (VP8/vorbis), flv, Youtube  videos und mehr.</p><p>Die implementierung des Players ist kinderleicht und gut <a
title="jMediaelement - Documentation" href="http://protofunc.com/jme/documentation/index.html" target="_self">dokumentiert</a>.</p><h3  class="related_post_title">Ähnliche Artikel</h3><ul
class="related_post"><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>18. Februar 2009 -- <a
href="http://www.mysrc.de/jquery/jquery-videos/" title="jQuery Videos">jQuery Videos</a></li><li>4. Februar 2009 -- <a
href="http://www.mysrc.de/mootools/mootools-jquery-videos/" title="MooTools &#038; jQuery &#8211; Videos">MooTools &#038; jQuery &#8211; Videos</a></li></ul>]]></content:encoded> <wfw:commentRss>http://www.mysrc.de/jquery/jmediaelement-jquery-html5-audio-video-kit/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Praxistipp – jqTransform Bug bei input in Firefox &gt; 3.5.2</title><link>http://www.mysrc.de/jquery/praxistipp-%e2%80%93-jqtransform-bug-bei-input-in-firefox-3-5-2/</link> <comments>http://www.mysrc.de/jquery/praxistipp-%e2%80%93-jqtransform-bug-bei-input-in-firefox-3-5-2/#comments</comments> <pubDate>Tue, 23 Mar 2010 13:16:37 +0000</pubDate> <dc:creator>Oliver Storm</dc:creator> <category><![CDATA[jQuery]]></category> <category><![CDATA[Best Practice]]></category> <category><![CDATA[bug]]></category> <category><![CDATA[Formulare]]></category> <category><![CDATA[Plugin]]></category> <guid
isPermaLink="false">http://www.mysrc.de/?p=1072</guid> <description><![CDATA[Wer von euch jqTransform nutzt wird evtl. nach dem letzten Firefox Update festegestellt haben das der Text in den Inputs nicht mehr sauber mittig sitzt. Gilt für Firefox ab 3.5.2. Das ganze liegt an der neuen Render Engine die Firefox spendiert bekommen hat. Um das Problem in den Griff zu bekommen, ohne sideeffects für andere [...]]]></description> <content:encoded><![CDATA[<p>Wer von euch<strong> jqTransform</strong> nutzt wird evtl. nach dem letzten Firefox Update festegestellt haben das der Text in den <strong>Inputs</strong> nicht mehr sauber mittig sitzt.<br
/> Gilt für Firefox ab 3.5.2.</p><p><a
href="http://www.mysrc.de/wp-content/uploads/2010/03/jqtransform-input-bug.png"><img
class="alignnone size-full wp-image-1074" title="jqtransform input bug" src="http://www.mysrc.de/wp-content/uploads/2010/03/jqtransform-input-bug.png" alt="jqTransform bug im Firefox" width="241" height="37" /></a></p><p>Das ganze liegt an der neuen Render Engine die Firefox spendiert bekommen hat.<br
/> Um das Problem in den Griff zu bekommen, ohne sideeffects für andere Browser zu bekommen macht Ihr einfach folgendes.</p><p>Eure jqtransform.css auf, in Zeile 90 (.jqTransformInputInner div input {) änder Ihr die <strong>height jetzt von 31px auf auto</strong>.</p><p>Das war´s schon&#8230;.</p><h3  class="related_post_title">Ähnliche Artikel</h3><ul
class="related_post"><li>24. Juni 2009 -- <a
href="http://www.mysrc.de/jquery/ifixpng2-pngfix-transparenz-fur-den-ie6/" title="ifixpng2 &#038; pngFix &#8211; Transparenz für den IE6">ifixpng2 &#038; pngFix &#8211; Transparenz für den IE6</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>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/praxistipp-%e2%80%93-jqtransform-bug-bei-input-in-firefox-3-5-2/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>jQuery load function &#8211; Ajax the simple way (Part 1)</title><link>http://www.mysrc.de/jquery/jquery-load-function-ajax-the-simple-way-part-1/</link> <comments>http://www.mysrc.de/jquery/jquery-load-function-ajax-the-simple-way-part-1/#comments</comments> <pubDate>Tue, 08 Dec 2009 21:50:06 +0000</pubDate> <dc:creator>Stefan Huissel</dc:creator> <category><![CDATA[AJAX]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[api]]></category> <guid
isPermaLink="false">http://www.mysrc.de/?p=1055</guid> <description><![CDATA[Mit der load Funktion lassen sich einfach HTML-Elemente einer Datei in die Aktuelle einfügen. Diese Funktion ist in erster Linie für den &#8220;import&#8221; von HTML-Code gedacht und entspricht damit nicht dem typischen Ajax-Request bei dem bspw. ein PHP Skript angesprochen wird, das Daten aus der Datenbank liest und/oder andere serverseitige Prozesse anstösst. Soviel erstmal zur [...]]]></description> <content:encoded><![CDATA[<p>Mit der <a
href="http://docs.jquery.com/Ajax/load">load</a> Funktion lassen sich einfach HTML-Elemente einer Datei in die Aktuelle einfügen. Diese Funktion ist in erster Linie für den<strong> &#8220;import&#8221; von HTML-Code</strong> gedacht und entspricht damit <strong>nicht dem typischen Ajax-Request</strong> bei dem bspw. ein PHP Skript angesprochen wird, das Daten aus der Datenbank liest und/oder andere serverseitige Prozesse anstösst.</p><p>Soviel erstmal zur Theorie, der Funktionsaufruf sieht wie folgt aus:</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('p1055code7'); return false;">View Code</a> JAVASCRIPT</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p10557"><td
class="line_numbers"><pre>1
</pre></td><td
class="code" id="p1055code7"><pre class="javascript" style="font-family:monospace;"> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#someElement'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'/someFile #mydiv'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>So kurz so einfach. In das Element mit der id <strong>&#8220;someElement&#8221;</strong> wird der gesamte Inhalt eines divs mit der id &#8220;mydiv&#8221; geladen. Das geniale dabei ist, dass sich <strong>&#8220;mydiv&#8221;</strong> überhaupt nicht im aktuellen Dokument befindet, sondern in der Datei <strong>&#8220;someFile&#8221;</strong>.<br
/> Als<strong> zweiten Parameter</strong> kann man der load Funktion auch noch Daten als sogenanntes <strong>Key/Value Paar</strong> übergeben.</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('p1055code8'); return false;">View Code</a> JAVASCRIPT</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p10558"><td
class="line_numbers"><pre>1
</pre></td><td
class="code" id="p1055code8"><pre class="javascript" style="font-family:monospace;"> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#someElement'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'someFile.php'</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'param'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'someValue'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>Das enspricht allerdings jetzt schon eher dem normalen Ajax-Request. Das oder die Key/Value Paare werden dem php-Skript als post-Paramter übergeben. Natürlich <strong>verliert man damit den Vorteil</strong> des vorigen Beispiels sich einfach DOM-Elemente aus einem anderen HTML-Skript zu holen. Aber falls man das Ergebnis eines Request einfach direkt <strong>ohne weitere Verarbeitung</strong> in ein Element einfügen möchte, ist das eine sehr einfache und komfortable Variante.</p><p>Im nächsten Teil wird es dann um die anderen fortgeschritten jQuery Ajax Varianten wie get, getJSON, etc. gehen.</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>16. Mai 2009 -- <a
href="http://www.mysrc.de/jquery/formulare-mit-jquery-die-umfassende-serie/" title="Formulare mit jQuery &#8211; die umfassende Serie">Formulare mit jQuery &#8211; die umfassende Serie</a></li></ul>]]></content:encoded> <wfw:commentRss>http://www.mysrc.de/jquery/jquery-load-function-ajax-the-simple-way-part-1/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>jQuery &#8211; Click Handler Elementen zuordnen und entfernen</title><link>http://www.mysrc.de/jquery/jquery-click-handler-elementen-zuordnen-und-entfernen/</link> <comments>http://www.mysrc.de/jquery/jquery-click-handler-elementen-zuordnen-und-entfernen/#comments</comments> <pubDate>Thu, 03 Dec 2009 10:43:04 +0000</pubDate> <dc:creator>Oliver Storm</dc:creator> <category><![CDATA[jQuery]]></category> <category><![CDATA[Best Practice]]></category> <category><![CDATA[click handler]]></category> <guid
isPermaLink="false">http://www.mysrc.de/?p=1046</guid> <description><![CDATA[Click handler sind wohl eine der meistgenutzen Funktionen wenn man mit jQuery arbeitet. Selten kommt man ohne sie aus. Ich will euch heute mal kurz ein paar Feinheiten hierzu vorstellen. Einen Click handler einem Element hinzufügen Einem Element einen Click handler mitzugeben ist wohl mit das einfachste. ?View Code JAVASCRIPT1 2 3 $&#40;'#idDesElements'&#41;.click&#40;function&#40;&#41;&#123;     window.alert&#40;&#34;Click [...]]]></description> <content:encoded><![CDATA[<p><a
title="jQuery - Events - click" href="http://docs.jquery.com/Events/click" target="_blank">Click handler</a> sind wohl eine der meistgenutzen Funktionen wenn man mit jQuery arbeitet. Selten kommt man ohne sie aus.<br
/> Ich will euch heute mal kurz ein paar Feinheiten hierzu vorstellen.</p><p><strong>Einen Click handler einem Element hinzufügen</strong><br
/> Einem Element einen Click handler mitzugeben ist wohl mit das einfachste.</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('p1046code14'); return false;">View Code</a> JAVASCRIPT</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p104614"><td
class="line_numbers"><pre>1
2
3
</pre></td><td
class="code" id="p1046code14"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#idDesElements'</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>
    window.<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Click handler ausgelöst!&quot;</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><strong>Mehrer Click handler einem Element hinzufügen</strong><br
/> Einem Element kann übrigens mehr als nur ein Click handler zugewiesen werden.<br
/> Wird das Element geklickt, werden alle handler der Reihe nach ausgeführt.</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('p1046code15'); return false;">View Code</a> JAVASCRIPT</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p104615"><td
class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td
class="code" id="p1046code15"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#idDesElements'</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>
    window.<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Click handler 1!&quot;</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: #009900;">&#40;</span><span style="color: #3366CC;">'#idDesElements'</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>
    window.<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Click handler 2&quot;</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><strong>Click Handler entfernen</strong><br
/> Um Click Handler wieder zu entfernen reicht ein einfaches unbind.</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('p1046code16'); return false;">View Code</a> JAVASCRIPT</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p104616"><td
class="line_numbers"><pre>1
</pre></td><td
class="code" id="p1046code16"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#idDesElements'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">unbind</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'click'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p><strong>Click Handler hinzufügen und gleichzeitig entfernen</strong><br
/> Da wir mit jQuery ja die wunderschöne Methode des Chainings zur verfügung haben, können wir einem einem Element alle Ihm bisher zugeordneten Click Handler entziehen und gleichzeitig einen neuen hinzufügen.</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('p1046code17'); return false;">View Code</a> JAVASCRIPT</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p104617"><td
class="line_numbers"><pre>1
2
3
</pre></td><td
class="code" id="p1046code17"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#idDesElements'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">unbind</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'click'</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>
    window.<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;neuer Click handler ausgelöst!&quot;</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><strong>Click Handler und Anker</strong><br
/> Wenn man einen Click Handler an einen Linkanker aufruft, aber nicht will das der Browser dem Link folgt, nachdem der Handler aufgerufen wird muss zusätzlich einfach ein return false;</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('p1046code18'); return false;">View Code</a> JAVASCRIPT</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p104618"><td
class="line_numbers"><pre>1
2
3
4
</pre></td><td
class="code" id="p1046code18"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#idDesElements'</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>
    window.<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Click handler&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</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><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>26. November 2009 -- <a
href="http://www.mysrc.de/allgemein/jquery-howto-traversing/" title="jQuery HowTo: Traversing">jQuery HowTo: Traversing</a></li></ul>]]></content:encoded> <wfw:commentRss>http://www.mysrc.de/jquery/jquery-click-handler-elementen-zuordnen-und-entfernen/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>jQuery HowTo: Traversing</title><link>http://www.mysrc.de/allgemein/jquery-howto-traversing/</link> <comments>http://www.mysrc.de/allgemein/jquery-howto-traversing/#comments</comments> <pubDate>Thu, 26 Nov 2009 15:28:20 +0000</pubDate> <dc:creator>Stefan Huissel</dc:creator> <category><![CDATA[Allgemein]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Best Practice]]></category> <category><![CDATA[Selektoren]]></category> <guid
isPermaLink="false">http://www.mysrc.de/?p=969</guid> <description><![CDATA[Travesieren gehört zum grundlegenden Handwerkszeug, wenn man fortgeschrittene Animationen mittels jQuery durchführen möchte. Hier ein kleine Anleitung zum Auffinden bestimmter Elemente. Parent &#160;&#187;Child1 &#160;&#187;Child2 &#160;&#187;Child3 &#160;&#187;Child4 Move all Move filtered Set back Was passiert hier? Basis ist diese HTML Struktur: ?View Code HTML1 2 3 4 5 6 7 8 9 10 11 12 13 [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://de.wikipedia.org/wiki/Traversierung" target="blank">Travesieren</a> gehört zum grundlegenden Handwerkszeug, wenn man fortgeschrittene Animationen mittels jQuery durchführen möchte. Hier ein kleine Anleitung zum Auffinden bestimmter Elemente.</p><div
style="border: 1px dotted #ccc">Parent</p><div> &nbsp;&raquo;Child1</div><div
class="move"> &nbsp;&raquo;Child2</div><div> &nbsp;&raquo;Child3</div><div
class="move not"> &nbsp;&raquo;Child4</div></div><div
id="someWrapper"> <a
id="testone" href="#">Move all</a><br
/> <a
id="testtwo" href="#">Move filtered</a><br/><br
/> <a
id="setBack" href="#">Set back</a></div><p>Was passiert hier? Basis ist diese HTML Struktur:</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('p969code22'); return false;">View Code</a> HTML</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p96922"><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td
class="code" id="p969code22"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;someParent&quot; style=&quot;border: 1px dotted #ccc&quot;&gt;Parent
&lt;div&gt;
 Child1
&lt;/div&gt;
&lt;div class=&quot;move&quot;&gt;
 Child2
&lt;/div&gt;
&lt;div&gt;
 Child3
&lt;/div&gt;
&lt;div class=&quot;move not&quot;&gt;
 Child4
&lt;/div&gt;
&lt;/div&gt;
&nbsp;
&lt;div id=&quot;someWrapper&quot;&gt;
&lt;a  id=&quot;testone&quot; href=&quot;#&quot;&gt;Move all&lt;/a&gt;
&lt;a id=&quot;testtwo&quot; href=&quot;#&quot;&gt;Move filtered&lt;/a&gt;
&lt;/div&gt;</pre></td></tr></table></div><p>Folgender Javascript-Code führt die Animation aus. Ausgehend von dem Link wird mit den Methoden <strong>parent</strong> das div &#8220;someWrapper&#8221; selektiert, <strong>prev</strong> wählt das vorige Element mit der id &#8220;someParent&#8221; und schlussendlich werden mit <strong>children</strong> alle Elemente innerhalb von &#8220;someParent&#8221; selektiert.<br
/> Die id&#8217;s im Beispiel dienen nur der Veranschaulichung. Die zu animierenden Elemente werden ausschließlich über die Struktur des <a
href="http://de.wikipedia.org/wiki/Document_Object_Model" target="blank">DOM</a> gefunden.</p><p><script type="text/javascript">jQuery("#testone").click(function (e) {
    jQuery(this).parent().prev().children().animate({'paddingLeft':'20px'},200);
     return false;
});
jQuery("#testtwo").click(function (e) {
   jQuery(this).parent().prev().children().filter(".move").not(".not").animate({'paddingLeft':'20px'},200);
    return false;
});
jQuery("#setBack").click(function (e) {
   jQuery(this).parent().prev().children().animate({'paddingLeft':0},200);
    return false;
});</script></p><p>jQuery Code für &#8220;Move all&#8221;:</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('p969code23'); return false;">View Code</a> JAVASCRIPT</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p96923"><td
class="line_numbers"><pre>1
2
3
4
</pre></td><td
class="code" id="p969code23"><pre class="javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#testone&quot;</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>
    jQuery<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;">parent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">prev</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'paddingLeft'</span><span style="color: #339933;">:</span><span style="color: #3366CC;">'20px'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</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>Nun zur fortgeschrittenen Variante. Basis dafür sind die jQuery Funktion, <strong>filter</strong> und <strong>not</strong>.<br
/> jQuery Code für &#8220;Move filtered&#8221;:</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('p969code24'); return false;">View Code</a> JAVASCRIPT</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p96924"><td
class="line_numbers"><pre>1
2
3
4
</pre></td><td
class="code" id="p969code24"><pre class="javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#testtwo&quot;</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>
   jQuery<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;">parent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">prev</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">filter</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.move&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">not</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.not&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'paddingLeft'</span><span style="color: #339933;">:</span><span style="color: #3366CC;">'20px'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</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><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>14. November 2010 -- <a
href="http://www.mysrc.de/jquery/fadetoggle-die-neue-in-jquery-1-4-4/" title="fadeToggle &#8211; die Neue in jQuery 1.4.4">fadeToggle &#8211; die Neue in jQuery 1.4.4</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/allgemein/jquery-howto-traversing/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>jQuery Präsentationen für ein besseres Verständnis</title><link>http://www.mysrc.de/jquery/jquery-prasentationen-fur-ein-besseres-verstandnis/</link> <comments>http://www.mysrc.de/jquery/jquery-prasentationen-fur-ein-besseres-verstandnis/#comments</comments> <pubDate>Thu, 12 Nov 2009 09:19:36 +0000</pubDate> <dc:creator>Oliver Storm</dc:creator> <category><![CDATA[jQuery]]></category> <category><![CDATA[Tutorial]]></category> <guid
isPermaLink="false">http://www.mysrc.de/?p=962</guid> <description><![CDATA[Immer wieder stolper ich über interessante Präsentationen zum Thema jQuery im Netz. Heute möchte ich euch ein paar meiner Favoriten vorstellen. Stackoverflow DevDays: jQuery Introduction for Developers jQuery For Beginners &#8211; jQuery Conference 2009 jQuery Essentials jQuery Loves Developers &#8211; Oredev 2009 Unobtrusive JavaScript with jQuery jQuery Plugin Creation Using jQuery to Extend CSS Prototype [...]]]></description> <content:encoded><![CDATA[<p>Immer wieder stolper ich über interessante Präsentationen zum Thema jQuery im Netz.<br
/> Heute möchte ich euch ein paar meiner Favoriten vorstellen.</p><div
id="__ss_2408976" style="width: 425px; text-align: left;"><strong><a
style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" title="Stackoverflow DevDays: jQuery Introduction for Developers" href="http://www.slideshare.net/joern.zaefferer/stackoverflow-devdays-jquery-introduction-for-developers">Stackoverflow DevDays: jQuery Introduction for Developers</a></strong><object
style="margin:0px" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param
name="allowFullScreen" value="true" /><param
name="allowScriptAccess" value="always" /><param
name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=jquery-intro-so-devdays-joern-091103031135-phpapp02&amp;stripped_title=stackoverflow-devdays-jquery-introduction-for-developers" /><param
name="allowfullscreen" value="true" /><embed
style="margin:0px" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=jquery-intro-so-devdays-joern-091103031135-phpapp02&amp;stripped_title=stackoverflow-devdays-jquery-introduction-for-developers" allowscriptaccess="always" allowfullscreen="true"></embed></object></div><p><img
style="visibility: hidden; width: 0px; height: 0px;" src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNTgwMTczMzc4OTEmcHQ9MTI1ODAxNzMzOTU1MSZwPTEwMTkxJmQ9c3NfZW1iZWQmZz*yJm89MDA2OTY2MzJmNTA1NGI3YTkxMDczYzM1ZDQzNmQzMTMmb2Y9MA==.gif" border="0" alt="" width="0" height="0" /></p><div
id="__ss_1994576" style="width: 425px; text-align: left;"><a
style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" title="jQuery For Beginners - jQuery Conference 2009" href="http://www.slideshare.net/rwhitbeck/jquery-for-beginners-jquery-conference-2009">jQuery For Beginners &#8211; jQuery Conference 2009</a><object
style="margin:0px" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param
name="allowFullScreen" value="true" /><param
name="allowScriptAccess" value="always" /><param
name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=jqueryforbeginnersjqueryconference2009-090914063709-phpapp02&amp;stripped_title=jquery-for-beginners-jquery-conference-2009" /><param
name="allowfullscreen" value="true" /><embed
style="margin:0px" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=jqueryforbeginnersjqueryconference2009-090914063709-phpapp02&amp;stripped_title=jquery-for-beginners-jquery-conference-2009" allowscriptaccess="always" allowfullscreen="true"></embed></object></div><p><span
id="more-962"></span><br
/> <img
style="visibility: hidden; width: 0px; height: 0px;" src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNTgwMTczNTIxMzYmcHQ9MTI1ODAxNzM1MzExNyZwPTEwMTkxJmQ9c3NfZW1iZWQmZz*yJm89MDA2OTY2MzJmNTA1NGI3YTkxMDczYzM1ZDQzNmQzMTMmb2Y9MA==.gif" border="0" alt="" width="0" height="0" /></p><div
id="__ss_1254680" style="width: 425px; text-align: left;"><a
style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" title="jQuery Essentials" href="http://www.slideshare.net/1Marc/jquery-essentials">jQuery Essentials</a><object
style="margin:0px" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param
name="allowFullScreen" value="true" /><param
name="allowScriptAccess" value="always" /><param
name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=jquery-essentials-090406094627-phpapp01&amp;stripped_title=jquery-essentials" /><param
name="allowfullscreen" value="true" /><embed
style="margin:0px" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=jquery-essentials-090406094627-phpapp01&amp;stripped_title=jquery-essentials" allowscriptaccess="always" allowfullscreen="true"></embed></object></div><p><img
style="visibility: hidden; width: 0px; height: 0px;" src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNTgwMTczNjAyODQmcHQ9MTI1ODAxNzM2MjExMCZwPTEwMTkxJmQ9c3NfZW1iZWQmZz*yJm89MDA2OTY2MzJmNTA1NGI3YTkxMDczYzM1ZDQzNmQzMTMmb2Y9MA==.gif" border="0" alt="" width="0" height="0" /></p><div
id="__ss_2428877" style="width: 425px; text-align: left;"><a
style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" title="jQuery Loves Developers - Oredev 2009" href="http://www.slideshare.net/remy.sharp/jquery-loves-developers-oredev-2009">jQuery Loves Developers &#8211; Oredev 2009</a><object
style="margin:0px" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param
name="allowFullScreen" value="true" /><param
name="allowScriptAccess" value="always" /><param
name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=jquerylovesdevelopers-oredev-091105072543-phpapp02&amp;stripped_title=jquery-loves-developers-oredev-2009" /><param
name="allowfullscreen" value="true" /><embed
style="margin:0px" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=jquerylovesdevelopers-oredev-091105072543-phpapp02&amp;stripped_title=jquery-loves-developers-oredev-2009" allowscriptaccess="always" allowfullscreen="true"></embed></object></div><p><img
style="visibility: hidden; width: 0px; height: 0px;" src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.11NXC/bT*xJmx*PTEyNTgwMTczNjgwMTMmcHQ9MTI1ODAxNzM2ODg4MiZwPTEwMTkxJmQ9c3NfZW1iZWQmZz*yJm9mPTA=.gif" border="0" alt="" width="0" height="0" /></p><div
id="__ss_390708" style="width: 425px; text-align: left;"><a
style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" title="Unobtrusive JavaScript with jQuery" href="http://www.slideshare.net/simon/unobtrusive-javascript-with-jquery">Unobtrusive JavaScript with jQuery</a><object
style="margin:0px" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param
name="allowFullScreen" value="true" /><param
name="allowScriptAccess" value="always" /><param
name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=unobtrusivejquery-1210086958470711-9&amp;stripped_title=unobtrusive-javascript-with-jquery" /><param
name="allowfullscreen" value="true" /><embed
style="margin:0px" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=unobtrusivejquery-1210086958470711-9&amp;stripped_title=unobtrusive-javascript-with-jquery" allowscriptaccess="always" allowfullscreen="true"></embed></object></div><p><img
style="visibility: hidden; width: 0px; height: 0px;" src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.11NXC/bT*xJmx*PTEyNTgwMTczNzUyMTgmcHQ9MTI1ODAxNzM3NjE5MyZwPTEwMTkxJmQ9c3NfZW1iZWQmZz*yJm9mPTA=.gif" border="0" alt="" width="0" height="0" /></p><div
id="__ss_1992167" style="width: 425px; text-align: left;"><a
style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" title="jQuery Plugin Creation" href="http://www.slideshare.net/benalman/jquery-plugin-creation">jQuery Plugin Creation</a><object
style="margin:0px" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param
name="allowFullScreen" value="true" /><param
name="allowScriptAccess" value="always" /><param
name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=jqueryplugincreation-090913150134-phpapp02&amp;stripped_title=jquery-plugin-creation" /><param
name="allowfullscreen" value="true" /><embed
style="margin:0px" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=jqueryplugincreation-090913150134-phpapp02&amp;stripped_title=jquery-plugin-creation" allowscriptaccess="always" allowfullscreen="true"></embed></object></div><p><img
style="visibility: hidden; width: 0px; height: 0px;" src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.11NXC/bT*xJmx*PTEyNTgwMTczODE2NDAmcHQ9MTI1ODAxNzM4MjU5MiZwPTEwMTkxJmQ9c3NfZW1iZWQmZz*yJm9mPTA=.gif" border="0" alt="" width="0" height="0" /></p><div
id="__ss_1804730" style="width: 425px; text-align: left;"><a
style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" title="Using jQuery to Extend CSS" href="http://www.slideshare.net/chriscoyier/using-jquery-to-extend-css">Using jQuery to Extend CSS</a><object
style="margin:0px" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param
name="allowFullScreen" value="true" /><param
name="allowScriptAccess" value="always" /><param
name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=jquerypresentationforslides-090803135628-phpapp01&amp;stripped_title=using-jquery-to-extend-css" /><param
name="allowfullscreen" value="true" /><embed
style="margin:0px" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=jquerypresentationforslides-090803135628-phpapp01&amp;stripped_title=using-jquery-to-extend-css" allowscriptaccess="always" allowfullscreen="true"></embed></object></div><p><img
style="visibility: hidden; width: 0px; height: 0px;" src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.11NXC/bT*xJmx*PTEyNTgwMTczODg1NzcmcHQ9MTI1ODAxNzM4OTMyMSZwPTEwMTkxJmQ9c3NfZW1iZWQmZz*yJm9mPTA=.gif" border="0" alt="" width="0" height="0" /></p><div
id="__ss_145849" style="width: 425px; text-align: left;"><a
style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" title="Prototype &amp; jQuery" href="http://www.slideshare.net/remy.sharp/prototype-jquery-going-from-one-to-the-other">Prototype &amp; jQuery</a><object
style="margin:0px" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param
name="allowFullScreen" value="true" /><param
name="allowScriptAccess" value="always" /><param
name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=prototype-jquery-going-from-one-to-the-other-1193346036472971-5&amp;stripped_title=prototype-jquery-going-from-one-to-the-other" /><param
name="allowfullscreen" value="true" /><embed
style="margin:0px" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=prototype-jquery-going-from-one-to-the-other-1193346036472971-5&amp;stripped_title=prototype-jquery-going-from-one-to-the-other" allowscriptaccess="always" allowfullscreen="true"></embed></object></div><div
style="width: 425px; text-align: left;"></div><div
id="__ss_2467593" style="width: 425px; text-align: left;"><a
style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" title="jQuery Selecting and Manipulating (continued)" href="http://www.slideshare.net/jnunemaker/jquery-selecting-and-manipulating-continued">jQuery Selecting and Manipulating (continued)</a><object
style="margin:0px" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param
name="allowFullScreen" value="true" /><param
name="allowScriptAccess" value="always" /><param
name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=domjquery2-091110115145-phpapp01&amp;stripped_title=jquery-selecting-and-manipulating-continued" /><param
name="allowfullscreen" value="true" /><embed
style="margin:0px" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=domjquery2-091110115145-phpapp01&amp;stripped_title=jquery-selecting-and-manipulating-continued" allowscriptaccess="always" allowfullscreen="true"></embed></object></p><div
style="font-size: 11px; font-family: tahoma,arial; height: 26px; padding-top: 2px;"></div></div><h3  class="related_post_title">Ähnliche Artikel</h3><ul
class="related_post"><li>27. Juli 2009 -- <a
href="http://www.mysrc.de/jquery/jquery-tutorial-closing-an-accordion-automatically/" title="jQuery Tutorial &#8211; Closing an Accordion automatically">jQuery Tutorial &#8211; Closing an Accordion automatically</a></li><li>30. Juni 2009 -- <a
href="http://www.mysrc.de/allgemein/jquery-mypass-password-hiding-iphone-style/" title="jQuery myPass &#8211; password hiding iPhone-Style">jQuery myPass &#8211; password hiding iPhone-Style</a></li><li>25. Juni 2009 -- <a
href="http://www.mysrc.de/jquery/jquerylist-plugin-und-beispielsammlung/" title="jQueryList &#8211; Plugin und Beispielsammlung">jQueryList &#8211; Plugin und Beispielsammlung</a></li></ul>]]></content:encoded> <wfw:commentRss>http://www.mysrc.de/jquery/jquery-prasentationen-fur-ein-besseres-verstandnis/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Praxistipp: jqTransform Button width einstellen</title><link>http://www.mysrc.de/jquery/praxistipp-jqtransform-button-width-einstellen/</link> <comments>http://www.mysrc.de/jquery/praxistipp-jqtransform-button-width-einstellen/#comments</comments> <pubDate>Tue, 20 Oct 2009 12:52:40 +0000</pubDate> <dc:creator>Stefan Huissel</dc:creator> <category><![CDATA[jQuery]]></category> <category><![CDATA[Plugin]]></category> <category><![CDATA[Tipp!]]></category> <guid
isPermaLink="false">http://www.mysrc.de/?p=895</guid> <description><![CDATA[So nett und schön das jqTransform Plugin auch ist, macht es i.A. doch ein paar kleine Probleme. Neben der unterschiedlichen Interpretation der Breite von Textfeldern in FF und IE, lässt sich auch die Breite der Standardbuttons nicht aus dem eigenen CSS einstellen. Wer dies tun möchte und die entsprechende Einstellung nicht finden kann, dem sei [...]]]></description> <content:encoded><![CDATA[<p>So nett und schön das <a
href="http://www.dfc-e.com/metiers/multimedia/opensource/jqtransform/">jqTransform Plugin</a> auch ist, macht es i.A. doch ein paar kleine Probleme. Neben der <a
href="http://www.mysrc.de/jquery/praxistipp-jqtransform-width-bug/">unterschiedlichen Interpretation der Breite von Textfeldern</a> in FF und IE, lässt sich auch die Breite der Standardbuttons nicht aus dem eigenen CSS einstellen.</p><p>Wer dies tun möchte und die entsprechende Einstellung nicht finden kann, dem sei hier eine kleine Hilfe geboten. Dazu müsst ihr die <strong>jqtransform.css</strong> öffnen und in Z.36 dem Selektor &#8220;button.jqTransformButton span span&#8221; die <strong>neue Eigenschaft width</strong> zuweisen.<br
/> Das kann dann beispielsweise wie folgt aussehen:</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('p895code26'); return false;">View Code</a> CSS</span><div
class="codebox_clear"></div></div><div
class="wp_codebox"><table><tr
id="p89526"><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td
class="code" id="p895code26"><pre class="css" style="font-family:monospace;">button<span style="color: #6666ff;">.jqTransformButton</span> span span <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">img/btn_left.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#333</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #933;">4px</span> <span style="color: #933;">0px</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">13px</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: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">33px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">min-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div><h3  class="related_post_title">Ähnliche Artikel</h3><ul
class="related_post"><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><li>5. August 2009 -- <a
href="http://www.mysrc.de/jquery/tipp-highlighten-eins-li%c2%b4s-innerhalb-einer-list-mit-jquery/" title="Tipp! &#8211; Highlighten eins li´s innerhalb einer Liste mit jQuery">Tipp! &#8211; Highlighten eins li´s innerhalb einer Liste mit jQuery</a></li><li>25. November 2010 -- <a
href="http://www.mysrc.de/jquery/jquery-mobile-web-apps-mit-jquery/" title="jQuery Mobile &#8211; Web-Apps mit jQuery">jQuery Mobile &#8211; Web-Apps mit jQuery</a></li></ul>]]></content:encoded> <wfw:commentRss>http://www.mysrc.de/jquery/praxistipp-jqtransform-button-width-einstellen/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
