<?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; Plugin</title>
	<atom:link href="http://www.mysrc.de/tag/plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysrc.de</link>
	<description>- jQuery, Mootools u.a. JS-Frameworks</description>
	<lastBuildDate>Sun, 01 Aug 2010 02:49:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<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>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>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></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>2</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('p895code2'); return false;">View Code</a> CSS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8952"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code" id="p895code2"><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>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/praxistipp-jqtransform-button-width-einstellen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Praxistipp &#8211; jqTransform width bug</title>
		<link>http://www.mysrc.de/jquery/praxistipp-jqtransform-width-bug/</link>
		<comments>http://www.mysrc.de/jquery/praxistipp-jqtransform-width-bug/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 12:58:02 +0000</pubDate>
		<dc:creator>Stefan Huissel</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Best Practice]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Tipp!]]></category>

		<guid isPermaLink="false">http://www.mysrc.de/?p=890</guid>
		<description><![CDATA[Wer jqTransform schon einmal benutzt hat wird sicherlich festgestellt haben, dass der Internet Explorer und der Firefox Browser die Textfelder in einer unterschiedlichen Breite darstellen. Das ist zurückzuführen auf das size-Attribut, dass selbst wenn nicht im input Feld verankert im IE mitberücksichtigt wird. Ein kleiner Workaround dafür ist, die Berechnung des Size-Attributs im js-Code zu [...]]]></description>
			<content:encoded><![CDATA[<p>Wer <a href="http://www.dfc-e.com/metiers/multimedia/opensource/jqtransform/">jqTransform</a> schon einmal benutzt hat wird sicherlich festgestellt haben, dass der Internet Explorer und der Firefox Browser die<strong> Textfelder in einer unterschiedlichen Breite</strong> darstellen.<br />
Das ist zurückzuführen auf das size-Attribut, dass selbst wenn nicht im input Feld verankert im IE mitberücksichtigt wird.</p>
<p>Ein kleiner <strong>Workaround </strong>dafür ist, die Berechnung des Size-Attributs im js-Code zu entfernen. Selbstverständlich mit der Folge, dass dieses Attribut <strong>nicht mehr zu diesem Zweck eingesetzt werden kann</strong>. Was ich persönlich als nicht weiter schlimm erachte, da zur Best Practice des Webprogrammieres gehört, die Festlegung von Oberflächeneigenschaften über das CSS zu definieren.</p>
<p>Nun zum Workaround:</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('p890code4'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8904"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p890code4"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// Z. 107 in der jquery.transform.js</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>$input.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'size'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		inputSize <span style="color: #339933;">=</span> $input.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'size'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #CC0000;">10</span><span style="color: #339933;">;</span>
		$input.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'width'</span><span style="color: #339933;">,</span>inputSize<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Diesen Codeteil könnt ihr einfach löschen, da es zur falschen Berechnung der Breite für die Textfelder führt. Ich konnte keine ungewollten Seiteneffekte feststellen. Wenn ihr etwas findet, wäre ich dankbar für Kommentare.</p>
<h3  class="related_post_title">Ähnliche Artikel</h3><ul class="related_post"><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>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/praxistipp-jqtransform-width-bug/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Praxistip: Output Element des jQuery Validate Plugin ändern</title>
		<link>http://www.mysrc.de/jquery/praxistip-output-element-des-jquery-validate-plugin-andern/</link>
		<comments>http://www.mysrc.de/jquery/praxistip-output-element-des-jquery-validate-plugin-andern/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 19:32:05 +0000</pubDate>
		<dc:creator>Stefan Huissel</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[fehlersuche]]></category>
		<category><![CDATA[Forms]]></category>
		<category><![CDATA[Formulare]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://www.mysrc.de/?p=854</guid>
		<description><![CDATA[Das allseits bekannte jQuery Plugin um Formularfelder zu validieren funktioniert im Standardszenarion sogut wie problemlos. Schwieriger wird es schon wenn mehrere Plugins auf ein Formular angewendet werden, bei denen die Plugins eigene DOM-Elemente hinzufügen. Beispielsweise jqTransform Glücklicherweise bietet das validate Plugin dafür eine wunderbare Funktion, nämlich errorPlacement. Die Funktion sieht so aus: ?View Code JAVASCRIPT1 [...]]]></description>
			<content:encoded><![CDATA[<p>Das allseits bekannte <a href="http://docs.jquery.com/Plugins/Validation" target="blank">jQuery Plugin</a> um <a href="http://www.mysrc.de/jquery/jquery-formulare-validieren-ein-uberblick/">Formularfelder zu validieren</a> funktioniert im Standardszenarion sogut wie problemlos. </p>
<p>Schwieriger wird es schon wenn <strong>mehrere Plugins</strong> auf ein Formular angewendet werden, bei denen die Plugins eigene DOM-Elemente hinzufügen. Beispielsweise <a href="http://www.dfc-e.com/metiers/multimedia/opensource/jqtransform/" target="blank">jqTransform</a></p>
<p>Glücklicherweise bietet das validate Plugin dafür eine wunderbare Funktion, nämlich <strong>errorPlacement</strong>.<br />
Die Funktion sieht so 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('p854code8'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8548"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p854code8"><pre class="javascript" style="font-family:monospace;"> errorPlacement<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>error<span style="color: #339933;">,</span> element<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     error.<span style="color: #660066;">appendTo</span><span style="color: #009900;">&#40;</span> element.<span style="color: #660066;">TRAVERSINGFUNKTION</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span></pre></td></tr></table></div>

<p>Nehmen wir ein Formular:</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('p854code9'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8549"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p854code9"><pre class="html" style="font-family:monospace;">&lt;form action=&quot;somescript.php&quot; id=&quot;form&quot; method=&quot;get&quot;&gt;
   &lt;input type=&quot;text&quot; name=&quot;user&quot;&gt;
   &lt;label&gt;&lt;label&gt; 
   &lt;input type=&quot;text&quot; name=&quot;pw&quot;&gt;
   &lt;label&gt;&lt;label&gt;
&lt;/form&gt;
 &lt;div id=&quot;error&quot;&gt;&lt;/div&gt;</pre></td></tr></table></div>

<p>Per Default wird vom validate Plugin ein Label-Tag hinter jedes input-Feld eingefügt. Will man nun den error an einer <strong>anderen Stelle zeigen</strong> kann man die Funktion folgendermaßen umschreiben:</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('p854code10'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p85410"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p854code10"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#form&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">validate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
  errorPlacement<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>error<span style="color: #339933;">,</span> element<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     error.<span style="color: #660066;">appendTo</span><span style="color: #009900;">&#40;</span> element.<span style="color: #660066;">next</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <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>Die Fehlermeldungen würde nun <strong>ausgehend vom input</strong> (element) in das <strong>nächste DOM Element</strong>, in unserem Fall das label-Tag, <strong>geschrieben </strong>werden.<br />
Natürlich haben wir mit diesem Beispiel nur wieder das Ausgangsverhalten des Plugins erreicht. Dieses Prinzip lässt leicht auf komplexere Anwendungsfälle übertragen. Wie beispielsweise bei erwähntem jqTransform, bei dem um das input-Feld mehrere Divs gelegt werden. Die Fehlermeldung des Validate Plugins wird dann unterhalb (auf z-Ebene) der Felder angezeigt. Durch travesieren durch den DOM-Baum können die Fehlermeldungen beliebig positioniert werden.</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>4. August 2009 -- <a href="http://www.mysrc.de/jquery/formularfelder-vorausfullen-und-leeren-mit-jquery-clearfield/" title="Formularfelder vorausfüllen und leeren mit jQuery Clearfield">Formularfelder vorausfüllen und leeren mit jQuery Clearfield</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></ul>]]></content:encoded>
			<wfw:commentRss>http://www.mysrc.de/jquery/praxistip-output-element-des-jquery-validate-plugin-andern/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Form Plugin &#8211; Do some AJAX magic easily</title>
		<link>http://www.mysrc.de/jquery/jquery-form-plugin-do-some-ajax-magic-easily/</link>
		<comments>http://www.mysrc.de/jquery/jquery-form-plugin-do-some-ajax-magic-easily/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 15:33:54 +0000</pubDate>
		<dc:creator>Stefan Huissel</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Forms]]></category>
		<category><![CDATA[Formulare]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://www.mysrc.de/?p=840</guid>
		<description><![CDATA[Neulich bin ich über ein Plugin gestoßen, dass Entwicklern auf einfachstem Wege die Möglichkeit bietet ihre Formulare AJAX gestützt umzusetzen. Mitentwickelt wurde es von John Resig, einem der Urväter von jQuery. Es überzeugt durch seine Funktionsvielfalt, sowie seine einfache Umsetzung. Es genügt ein Standard HTML Formular zu schreiben und danach das Plugin mit den gewünschten [...]]]></description>
			<content:encoded><![CDATA[<p>Neulich bin ich über ein Plugin gestoßen, dass Entwicklern auf einfachstem Wege die Möglichkeit bietet ihre<strong> Formulare AJAX gestützt</strong> umzusetzen. </p>
<p><a href="http://malsup.com/jquery/form/"><img src="http://www.mysrc.de/wp-content/uploads/2009/08/form_plugin1.jpg" alt="form_plugin" title="form_plugin" width="500" height="150" class="alignnone size-full wp-image-843" /></a></p>
<p>Mitentwickelt wurde es von <a href="http://ejohn.org/">John Resig</a>, einem der Urväter von jQuery.</p>
<p>Es überzeugt durch seine <strong>Funktionsvielfalt</strong>, sowie seine einfache Umsetzung. Es genügt ein Standard HTML Formular zu schreiben und danach das Plugin mit den gewünschten Optionen aufzurufen.<br />
Das könnte dann 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('p840code13'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p84013"><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
</pre></td><td class="code" id="p840code13"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>head<span style="color: #339933;">&gt;</span> 
    <span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;path/to/jquery.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span> 
    <span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;path/to/form.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span> 
&nbsp;
    <span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span> 
        $<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;">// bind 'myForm' and provide a simple callback function </span>
            $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#myForm'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ajaxForm</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;">&quot;Formular wurde gesendet!&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;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
    <span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span> 
<span style="color: #339933;">&lt;/</span>head<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>body<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>form id<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;myForm&quot;</span> action<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;comment.php&quot;</span> method<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;post&quot;</span><span style="color: #339933;">&gt;</span> 
    <span style="color: #000066;">Name</span><span style="color: #339933;">:</span> <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;name&quot;</span> <span style="color: #339933;">/&gt;</span> 
    Kommentar<span style="color: #339933;">:</span> <span style="color: #339933;">&lt;</span>textarea <span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;kommentar&quot;</span><span style="color: #339933;">&gt;&lt;/</span>textarea<span style="color: #339933;">&gt;</span> 
    <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;submit&quot;</span> value<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Abschicken&quot;</span> <span style="color: #339933;">/&gt;</span> 
<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>body<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>Dieses Beispiel sendet die beiden Formularfelder Name und Kommentar <strong>als Ajax Request</strong> an das im form-tag angegebene Skript.<br />
Dies ist nur ein einfaches Beispiel. Weiterhin gibt es noch Methoden zur Formularberarbeitung wie <strong>reset, manueller submit, Erstellung eines querystring, etc.</strong></p>
<p>Das Plugin besitzt auch noch einige Optionen. Ein Auszug daraus:</p>
<ul>
<li>target</li>
<li>url</li>
<li>success</li>
<li>&#8230;</li>
</ul>
<p>Altgedienten Ajaxianer sollten diese Parameter bekannt sein. Benutzt werden sie dann so:</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('p840code14'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p84014"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code" id="p840code14"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// Optionobjekt mit gesetzten Attributen</span>
<span style="color: #003366; font-weight: bold;">var</span> options <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span> 
    target<span style="color: #339933;">:</span>     <span style="color: #3366CC;">'#divToUpdate'</span><span style="color: #339933;">,</span> 
    url<span style="color: #339933;">:</span>        <span style="color: #3366CC;">'comment.php'</span><span style="color: #339933;">,</span> 
    success<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> 
        <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Erfolgreich abgeschickt!'</span><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: #339933;">;</span> 
&nbsp;
<span style="color: #006600; font-style: italic;">// Options einfach der Mehthode ajaxForm als Parameter übergeben</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#myForm'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ajaxForm</span><span style="color: #009900;">&#40;</span>options<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Einfacher lässt sich <strong>ein Ajaxformular</strong> kaum umsetzen. Also viel Spaß beim Testen. Zu finden ist das Ganze in englischer Doku und kleinen Beispielen bei <a href="http://malsup.com/jquery/form">Malsup</a>.</p>
<h3  class="related_post_title">Ähnliche Artikel</h3><ul class="related_post"><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><li>4. August 2009 -- <a href="http://www.mysrc.de/jquery/formularfelder-vorausfullen-und-leeren-mit-jquery-clearfield/" title="Formularfelder vorausfüllen und leeren mit jQuery Clearfield">Formularfelder vorausfüllen und leeren mit jQuery Clearfield</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></ul>]]></content:encoded>
			<wfw:commentRss>http://www.mysrc.de/jquery/jquery-form-plugin-do-some-ajax-magic-easily/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tipp! &#8211; Highlighten eins li´s innerhalb einer Liste mit jQuery</title>
		<link>http://www.mysrc.de/jquery/tipp-highlighten-eins-li%c2%b4s-innerhalb-einer-list-mit-jquery/</link>
		<comments>http://www.mysrc.de/jquery/tipp-highlighten-eins-li%c2%b4s-innerhalb-einer-list-mit-jquery/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 10:05:44 +0000</pubDate>
		<dc:creator>Oliver Storm</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Best Practice]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Tipp!]]></category>

		<guid isPermaLink="false">http://www.mysrc.de/?p=822</guid>
		<description><![CDATA[Anbei nur ein kleiner Tipp! wie man einfach ein li auf klick highlighten kann und dem aktiven li die Klasse wieder entzieht. CSS: ?View Code CSS1 2 3 .active&#123; color: red; &#125; HTML: ?View Code HTML1 2 3 4 5 6 &#60;ul id=&#34;liste&#34;&#62; &#60;li&#62;eins&#60;/li&#62; &#60;li&#62;zwei&#60;/li&#62; &#60;li&#62;drei&#60;/li&#62; &#60;li&#62;vier&#60;/li&#62; &#60;/ul&#62; jQuery: ?View Code JAVASCRIPT1 2 3 4 [...]]]></description>
			<content:encoded><![CDATA[<p>Anbei nur ein kleiner Tipp! wie man einfach ein <strong>li auf klick highlighten</strong> kann und dem aktiven li die Klasse wieder entzieht.</p>
<p><strong>CSS:</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('p822code18'); return false;">View Code</a> CSS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p82218"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p822code18"><pre class="css" style="font-family:monospace;">        .active<span style="color: #00AA00;">&#123;</span>
	      <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">red</span><span style="color: #00AA00;">;</span>
        <span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><strong>HTML:</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('p822code19'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p82219"><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code" id="p822code19"><pre class="html" style="font-family:monospace;">&lt;ul id=&quot;liste&quot;&gt;
	&lt;li&gt;eins&lt;/li&gt;
	&lt;li&gt;zwei&lt;/li&gt;
	&lt;li&gt;drei&lt;/li&gt;
	&lt;li&gt;vier&lt;/li&gt;
&lt;/ul&gt;</pre></td></tr></table></div>

<p><strong>jQuery:</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('p822code20'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p82220"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p822code20"><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: #009900;">&#40;</span><span style="color: #3366CC;">'#liste li'</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: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">closest</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'active'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">siblings</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'active'</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;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p><a title="li highlighten " href="http://www.mysrc.de/demo/li-highlighten" target="_blank">Eine kleine Demo des ganzen</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/praxistipp-jqtransform-width-bug/" title="Praxistipp &#8211; jqTransform width bug">Praxistipp &#8211; jqTransform width bug</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/tipp-highlighten-eins-li%c2%b4s-innerhalb-einer-list-mit-jquery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Formularfelder vorausfüllen und leeren mit jQuery Clearfield</title>
		<link>http://www.mysrc.de/jquery/formularfelder-vorausfullen-und-leeren-mit-jquery-clearfield/</link>
		<comments>http://www.mysrc.de/jquery/formularfelder-vorausfullen-und-leeren-mit-jquery-clearfield/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 07:50:57 +0000</pubDate>
		<dc:creator>Oliver Storm</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Forms]]></category>
		<category><![CDATA[Formulare]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://www.mysrc.de/?p=818</guid>
		<description><![CDATA[Nur kurz möchte ich dieses kleine Plugin hier erwähnen. Gerade bei Suchfeldern kennt man es das im Feld  &#8220;Suche:&#8221; steht und verschwindet sobald das Feld den Focus bekommt. Das ganze kann man jetzt sehr elegant und einfach mit diesem kleinen jQuery Plugin lösen. Datei einbinden ?View Code HTML1 &#60;input type=&#34;text&#34; class=&#34;clearField&#34; value=&#34;What's your name?&#34; /&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Nur kurz möchte ich dieses kleine Plugin hier erwähnen.<br />
Gerade bei Suchfeldern kennt man es das im Feld  &#8220;Suche:&#8221; steht und verschwindet sobald das Feld den Focus bekommt.</p>
<p>Das ganze kann man jetzt sehr elegant und einfach mit diesem kleinen <strong>jQuery Plugin</strong> lösen.</p>
<p>Datei einbinden</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('p818code24'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p81824"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p818code24"><pre class="html" style="font-family:monospace;">&lt;input type=&quot;text&quot; class=&quot;clearField&quot; value=&quot;What's your name?&quot; /&gt;</pre></td></tr></table></div>

<p>Funktion 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('p818code25'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p81825"><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code" id="p818code25"><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: #009900;">&#40;</span><span style="color: #3366CC;">'.clearField'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">clearField</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
		blurClass<span style="color: #339933;">:</span> <span style="color: #3366CC;">'myBlurredClass'</span><span style="color: #339933;">,</span>
		activeClass<span style="color: #339933;">:</span> <span style="color: #3366CC;">'myActiveClass'</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><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>und das input Field entsprechend einbinden.</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('p818code26'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p81826"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p818code26"><pre class="html" style="font-family:monospace;">&lt;input type=&quot;text&quot; class=&quot;clearField&quot; value=&quot;What's your name?&quot; /&gt;</pre></td></tr></table></div>

<p>Fertig!</p>
<p>Alle Dateien zum Downlad findet Ihr auf der <a title="JQUERY PLUGIN: CLEARFIELD" href="http://labs.thesedays.com/projects/jquery/clearfield/" target="_blank">offiziellen Plugin Seite</a>.</p>
<h3  class="related_post_title">Ähnliche Artikel</h3><ul class="related_post"><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><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>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></ul>]]></content:encoded>
			<wfw:commentRss>http://www.mysrc.de/jquery/formularfelder-vorausfullen-und-leeren-mit-jquery-clearfield/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Schöne Schriften &#8211; FontEffect Plugin für jQuery</title>
		<link>http://www.mysrc.de/jquery/schone-schriften-fonteffect-plugin-fur-jquery/</link>
		<comments>http://www.mysrc.de/jquery/schone-schriften-fonteffect-plugin-fur-jquery/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 07:29:35 +0000</pubDate>
		<dc:creator>Oliver Storm</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Best Practice]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://www.mysrc.de/?p=810</guid>
		<description><![CDATA[Wer kennt das nicht, bettet man eine Schrift nicht als Bild ein hat man mit CSS allein so gut wie keine Möglichkeiten grafische Effekte auf die Schrift anzuwenden. Gerade bei Headlines kann dies aber doch ab und an ganz schön sein. Dem ganzen kann jetzt Abhilfe geschaffen werden mit diesem schönen jQuery Plugin habt ihr [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-811" title="FontEffect jQuery Plugin" src="http://www.mysrc.de/wp-content/uploads/2009/08/font-plugin.jpg" alt="FontEffect jQuery Plugin" width="460" height="183" /></p>
<p>Wer kennt das nicht, bettet man eine Schrift nicht als Bild ein hat man mit CSS allein so gut wie keine Möglichkeiten <strong>grafische Effekte auf die Schrift</strong> anzuwenden.<br />
Gerade bei <strong>Headlines</strong> kann dies aber doch ab und an ganz schön sein.<br />
Dem ganzen kann jetzt Abhilfe geschaffen werden mit diesem schönen <strong>jQuery Plugin</strong> habt ihr nun die Möglichkeit Outlines, Schatten, Verläufe und Spiegelungen an eurem Text zu verankern.<br />
Das Plugin ist nur 7kb groß und kommt gänzlich ohne Bilder aus, so wie es z.B. manche PHP-Funktionen tun wenn sie mit Text arbeiten.</p>
<p>Das Plugin ist denkbar einfach zu nutzen. Einfach die Files <a title="JQuery FontEffect plugin" href="http://www.iofo.it/jquery/fonteffect/" target="_blank">downloaden</a> und einbinden.</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('p810code29'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p81029"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p810code29"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;jquery-1.3.2.js&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;!--</span>mce<span style="color: #339933;">:</span><span style="color: #CC0000;">0</span><span style="color: #339933;">--&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;jquery-FontEffect-1.0.0.min.js&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;!--</span>mce<span style="color: #339933;">:</span><span style="color: #CC0000;">1</span><span style="color: #339933;">--&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>und anschließend <strong>aufrufen</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('p810code30'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p81030"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p810code30"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#id1'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">FontEffect</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> outline<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span> shadow<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#id2'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">FontEffect</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> gradient<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span> mirror<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span> mirrorColor<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;#298d79&quot;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

<p>Das Plugin kommt mit über 20 versch. Einstellmöglichkeiten für Farbe, Position, Transparenz usw&#8230; daher.<br />
Eine vollständige Liste der Optionen, jede Menge Demos, einen Konfigurator sowie alle Dateien zum Download findet Ihr auf der <a title="JQuery FontEffect plugin" href="http://www.iofo.it/jquery/fonteffect/" target="_blank">Plugin Homepage.</a><br />
Auf der Seite werden auch Mögliche Fragen bzgl. User resizing, Fonts, Box model, Divs usw angesprochen.</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/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></ul>]]></content:encoded>
			<wfw:commentRss>http://www.mysrc.de/jquery/schone-schriften-fonteffect-plugin-fur-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inhalte Zoomen mit jQuery Plugin &#8211; AnythingZoomer</title>
		<link>http://www.mysrc.de/jquery/inhalte-zoomen-mit-jquery-plugin-anythingzoomer/</link>
		<comments>http://www.mysrc.de/jquery/inhalte-zoomen-mit-jquery-plugin-anythingzoomer/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 08:58:02 +0000</pubDate>
		<dc:creator>Oliver Storm</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://www.mysrc.de/?p=806</guid>
		<description><![CDATA[Ich bin schon vor ein Paar Tagen auf dieses Plugin gestoßen und wollte es euch heute noch kurz vorstellen. Mit AnythingZoomer für jQuery habt Ihr die Möglichkeit einzelne Elemente eurer Seite vergrößert darzustellen. Dazu müsst Ihr einfach nur mit der Maus über die entsprechenden Stellen fahren und der Rest wird über CSS geregelt. Hier gibts [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-807" title="zoomerdemo" src="http://www.mysrc.de/wp-content/uploads/2009/08/zoomerdemo.jpg" alt="zoomerdemo" width="456" height="138" /></p>
<p>Ich bin schon vor ein Paar Tagen auf dieses Plugin gestoßen und wollte es euch heute noch kurz vorstellen.<br />
Mit <a title="AnythingZoomer" href="http://css-tricks.com/anythingzoomer-jquery-plugin/" target="_blank">AnythingZoomer für jQuery</a> habt Ihr die Möglichkeit einzelne Elemente eurer Seite vergrößert darzustellen.<br />
Dazu müsst Ihr einfach nur mit der Maus über die entsprechenden Stellen fahren und der Rest wird über CSS geregelt.</p>
<p>Hier gibts verschieden <a title="AnythingZoomer Demo" href="http://css-tricks.com/examples/AnythingZoomer/" target="_blank">Demos</a> und das <a title="AnythingZoomer Download" href="http://css-tricks.com/anythingzoomer-jquery-plugin/" target="_blank">Plugin zum Download</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/inhalte-zoomen-mit-jquery-plugin-anythingzoomer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery myPass &#8211; password hiding iPhone-Style</title>
		<link>http://www.mysrc.de/allgemein/jquery-mypass-password-hiding-iphone-style/</link>
		<comments>http://www.mysrc.de/allgemein/jquery-mypass-password-hiding-iphone-style/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 13:10:25 +0000</pubDate>
		<dc:creator>Oliver Storm</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Forms]]></category>
		<category><![CDATA[Formulare]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.mysrc.de/?p=765</guid>
		<description><![CDATA[About Neulich abend saß ich auf dem Sofa und wollte mich über mein iPhone bei Facebook anmelden, bei der Eingabe meines Passwortes fiel mir wieder dieses kleine Detail auf, welches die Eingabe des Passwortes doch etwas angenehmer macht. Der ein oder andere iPhone-Besitzer weiß wovon ich rede. Davon das im Eingabefeld immer für kurze Zeit [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-727" title="nicePass - jQuery Plugin" src="http://www.mysrc.de/wp-content/uploads/2009/06/nicepass.jpg" alt="nicePass - jQuery Plugin" width="460" height="186" /></p>
<h3>About</h3>
<p>Neulich abend saß ich auf dem Sofa und wollte mich über mein iPhone bei <a title="Facebook - Oliver Storm" href="http://www.facebook.com/storm.oliver" target="_blank">Facebook</a> anmelden, bei der Eingabe meines Passwortes fiel mir wieder dieses kleine Detail auf, welches die Eingabe des Passwortes doch etwas angenehmer macht.</p>
<p>Der ein oder andere iPhone-Besitzer weiß wovon ich rede. Davon das im Eingabefeld immer für kurze Zeit der <strong>zuletzt eingegeben Buchstabe des Passworts</strong> zu sehen ist, was dem User doch mehr Sicherheit gibt das seine Eingabe korrekt war.</p>
<p>Ich dachte mir sowas könnte auch für <strong>normale Formulare</strong> ganz schön sein und deshalb haben wir  ein kleines <strong>jQuery-Plugin</strong> geschrieben welches dieses Verhalten imitiert.</p>
<h3>How to use</h3>
<p><strong>jQuery myPass</strong> nutzt die <a title="jQuery" href="http://jquery.com/" target="_blank">jQuery Javascript library</a>.</p>
<p>Ihr müsst nur die beiden Dateien in eueren Header einbinden.</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('p765code35'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p76535"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p765code35"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;_js/jquery.js&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;_js/jquery.myPass-1.0.js&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<h3>Options</h3>
<p>Um das Plugin zu aktivieren und einzustellen müsst Ihr nun nur noch folgendes in euren Header schreiben</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('p765code36'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p76536"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p765code36"><pre class="javascript" style="font-family:monospace;">	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.myTextField'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">myPass</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
			charReplace <span style="color: #339933;">:</span> <span style="color: #3366CC;">'%u2665'</span><span style="color: #339933;">,</span>
			charDuration <span style="color: #339933;">:</span> <span style="color: #CC0000;">1000</span>
&nbsp;
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<ul>
<li><strong>charReplace:</strong> Hiermit könnt Ihr einstellen durch welches Zeichen die Buchstaben ersetzt werden sollen.Als default ist der Standard-Punkt eingestellt. Weitere Zeichen findet Ihr <a title="HTML Entity Browser Test Page" href="http://www.fileformat.info/format/w3c/entitytest.htm?sort=Unicode+Character" target="_blank">hier</a>.Nehmt einfach die letzten 4 Zahlen des Unicode und setzt %u davor. z.B. charReplace : &#8216;%u2665&#8242; um statt dem • ein ♥ zu verwenden.</li>
<li><strong>charDuration: </strong>Hiermit könnt Ihr einstellen wie lange das letzte Zeichen angezeigt werden soll.</li>
</ul>
<h3>HTML</h3>
<p>Im HTML-Teil eurer Seite legt Ihr nun einfach ein ganz normales Textfeld an, gebt diesem einen Namen und die Klasse welche Ihr oben eingetragen habt.</p>
<p>In diesem fall .myTextField.</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('p765code37'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p76537"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p765code37"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>form action<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;test.php&quot;</span> method<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;post&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input <span style="color: #003366; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;myTextField&quot;</span> <span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;password&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">&lt;</span>input <span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Send&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;submit&quot;</span> value<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;submit&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>Nach dem senden des Formulars könnt Ihr eure Daten ganz einfach z.B. über PHP verarbeiten.</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('p765code38'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p76538"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p765code38"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'password'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h3>Download &amp; Demo</h3>
<p><a title="myPass Plugin Demo" href="http://www.mysrc.de/plugins/myPass/demo/" target="_blank">Demonstration &#8211; Plugin in Action</a></p>
<p><a title="myPass Plugin - Download" href="http://www.mysrc.de/plugins/myPass/myPass.zip" target="_blank">Download &#8211; Alle Dateien zum Download</a></p>
<h3  class="related_post_title">Ähnliche Artikel</h3><ul class="related_post"><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><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>4. August 2009 -- <a href="http://www.mysrc.de/jquery/formularfelder-vorausfullen-und-leeren-mit-jquery-clearfield/" title="Formularfelder vorausfüllen und leeren mit jQuery Clearfield">Formularfelder vorausfüllen und leeren mit jQuery Clearfield</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.mysrc.de/allgemein/jquery-mypass-password-hiding-iphone-style/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
