<?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>PHP Log &#187; jquery</title>
	<atom:link href="http://www.php-log.de/tags/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://www.php-log.de</link>
	<description>Eine feine Sammlung nützlicher PHP Notizen</description>
	<lastBuildDate>Thu, 27 May 2010 04:43:12 +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>Mit jQuery alle Option Tags aus einem select entfernen</title>
		<link>http://www.php-log.de/513/javascript/mit-jquery-alle-option-tags-aus-einem-select-entfernen</link>
		<comments>http://www.php-log.de/513/javascript/mit-jquery-alle-option-tags-aus-einem-select-entfernen#comments</comments>
		<pubDate>Thu, 25 Mar 2010 01:26:47 +0000</pubDate>
		<dc:creator>ralle</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.php-log.de/?p=513</guid>
		<description><![CDATA[Ab und an braucht man so eine Funktion. Hier das passende Code-Schnippsel: // So einfach... $&#40;'#my_select'&#41;.children&#40;&#41;.remove&#40;&#41; ; &#160; // Und wenn man ein leeres Option Tag anhängen will gehts das so $j&#40;'#my_select'&#41;.children&#40;&#41;.remove&#40;&#41;.end&#40;&#41;.append&#40;'&#60;option value=&#34;&#34;&#62;Bereich wählen&#60;/option&#62;'&#41; ; Und wer in Essen Brötchen braucht: Lieferdienst in Essen]]></description>
			<content:encoded><![CDATA[<p>Ab und an braucht man so eine Funktion. Hier das passende Code-Schnippsel:<span id="more-513"></span></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// So einfach...</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#my_select'</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;">remove</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// Und wenn man ein leeres Option Tag anhängen will gehts das so</span>
$j<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#my_select'</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;">remove</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">end</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;option value=&quot;&quot;&gt;Bereich wählen&lt;/option&gt;'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span></pre></div></div>

<div class="common-link">
Und wer in Essen Brötchen braucht: <a target="_blank" href="http://www.broetchenbursche-essen.de">Lieferdienst in Essen</a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.php-log.de/513/javascript/mit-jquery-alle-option-tags-aus-einem-select-entfernen/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Settings für das jQuery Plugin NotesForLightBox</title>
		<link>http://www.php-log.de/476/javascript/settings-fur-das-jquery-plugin-notesforlightbox</link>
		<comments>http://www.php-log.de/476/javascript/settings-fur-das-jquery-plugin-notesforlightbox#comments</comments>
		<pubDate>Thu, 29 Oct 2009 20:47:37 +0000</pubDate>
		<dc:creator>ralle</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.php-log.de/?p=476</guid>
		<description><![CDATA[Dieses Lightbox Plugin zählt eindeutig zu den schöneren Vertretern seiner Art. leider gibt zwei drei Stopper in der Doku, deswegen hier meine Settings zu konservatorischen Zwecken: $j&#40;function&#40;&#41; &#123; var settings = &#123; containerResizeSpeed: 350, imageLoading: '/img/nf.lightbox/loading.gif', imageBtnPrev: '/img/nf.lightbox/prev.png', imageBtnNext: '/img/nf.lightbox/next.png', imageBtnClose: '/img/nf.lightbox/close.png', imageBlank: '/img/nf.lightbox/blank.gif', imageBtnBottomPrev: '/img/nf.lightbox/btm_prev.gif', imageBtnBottomNext: '/img/nf.lightbox/btm_next.gif', imageBtnPlay: '/img/nf.lightbox/start.png', txtImage: 'Bild', txtOf: 'von', txtPrev: [...]]]></description>
			<content:encoded><![CDATA[<p>Dieses Lightbox Plugin zählt eindeutig zu den schöneren Vertretern seiner Art. leider gibt zwei drei Stopper in der Doku, deswegen hier meine Settings zu konservatorischen Zwecken:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">     $j<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>  
		 <span style="color: #003366; font-weight: bold;">var</span> settings <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span> 
			containerResizeSpeed<span style="color: #339933;">:</span> <span style="color: #CC0000;">350</span><span style="color: #339933;">,</span> 
			imageLoading<span style="color: #339933;">:</span> <span style="color: #3366CC;">'/img/nf.lightbox/loading.gif'</span><span style="color: #339933;">,</span>
			imageBtnPrev<span style="color: #339933;">:</span> <span style="color: #3366CC;">'/img/nf.lightbox/prev.png'</span><span style="color: #339933;">,</span>
			imageBtnNext<span style="color: #339933;">:</span> <span style="color: #3366CC;">'/img/nf.lightbox/next.png'</span><span style="color: #339933;">,</span>
			imageBtnClose<span style="color: #339933;">:</span> <span style="color: #3366CC;">'/img/nf.lightbox/close.png'</span><span style="color: #339933;">,</span>
			imageBlank<span style="color: #339933;">:</span> <span style="color: #3366CC;">'/img/nf.lightbox/blank.gif'</span><span style="color: #339933;">,</span>
			imageBtnBottomPrev<span style="color: #339933;">:</span> <span style="color: #3366CC;">'/img/nf.lightbox/btm_prev.gif'</span><span style="color: #339933;">,</span>
			imageBtnBottomNext<span style="color: #339933;">:</span> <span style="color: #3366CC;">'/img/nf.lightbox/btm_next.gif'</span><span style="color: #339933;">,</span>
			imageBtnPlay<span style="color: #339933;">:</span> <span style="color: #3366CC;">'/img/nf.lightbox/start.png'</span><span style="color: #339933;">,</span>
			txtImage<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Bild'</span><span style="color: #339933;">,</span>
			txtOf<span style="color: #339933;">:</span> <span style="color: #3366CC;">'von'</span><span style="color: #339933;">,</span>
			txtPrev<span style="color: #339933;">:</span> <span style="color: #3366CC;">'&amp;nbsp;zurück'</span><span style="color: #339933;">,</span>
			txtNext<span style="color: #339933;">:</span> <span style="color: #3366CC;">'&amp;nbsp;weiter'</span><span style="color: #339933;">,</span>
			keyToClose<span style="color: #339933;">:</span> <span style="color: #3366CC;">'s'</span><span style="color: #339933;">,</span>
			keyToPrev<span style="color: #339933;">:</span> <span style="color: #3366CC;">'z'</span><span style="color: #339933;">,</span>
			keyToNext<span style="color: #339933;">:</span> <span style="color: #3366CC;">'w'</span><span style="color: #339933;">,</span>
			slideShowTimer<span style="color: #339933;">:</span> <span style="color: #CC0000;">5000</span>
		<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
         $j<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'a.lightbox'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">lightBox</span><span style="color: #009900;">&#40;</span>settings<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// Select all links with lightbox class   </span>
     <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><strong>Achtung:</strong> Nicht vergessen im aufrufenden Link einen Title als Bildname anzugeben, sonst funktioniert die untere Navigation mit txtPrev, txtNext nicht. Die Pfade für die Bilder sind meinen Zwecken entsprechend angepasst und jQuery wird mit $j angesprochen anstatt mit nur $</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-log.de/476/javascript/settings-fur-das-jquery-plugin-notesforlightbox/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wenn sich der jQuery Dialog nicht erneut öffnen lässt</title>
		<link>http://www.php-log.de/440/javascript/wenn-sich-der-jquery-dialog-nicht-erneut-offnen-lasst</link>
		<comments>http://www.php-log.de/440/javascript/wenn-sich-der-jquery-dialog-nicht-erneut-offnen-lasst#comments</comments>
		<pubDate>Thu, 20 Aug 2009 19:23:55 +0000</pubDate>
		<dc:creator>ralle</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Dialog]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.php-log.de/?p=440</guid>
		<description><![CDATA[Das passiert meist wenn man dass Instanziieren des Dialogs in einer Funktion kapselt. Denn der Dialog wird nach dem Schliessen zerstört und lässt sich nicht erneut instanziieren. Wenn die Instanziierung des Dialog von Vorteil ist, z.b. wenn noch Parameter übergeben werden sollen, kann man sich einfach mit dem Event &#8216;close&#8217; behelfen. Ein Beispiel: function show_order_dialog&#40;id&#41;&#123; [...]]]></description>
			<content:encoded><![CDATA[<p>Das passiert meist wenn man dass Instanziieren des Dialogs in einer Funktion kapselt. Denn der Dialog wird nach dem Schliessen zerstört und lässt sich nicht erneut instanziieren.<span id="more-440"></span></p>
<p>Wenn die Instanziierung des Dialog von Vorteil ist, z.b. wenn noch Parameter übergeben werden sollen, kann man sich einfach mit dem Event &#8216;close&#8217; behelfen. Ein Beispiel:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> show_order_dialog<span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#dialog'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">dialog</span><span style="color: #009900;">&#40;</span>
		<span style="color: #009900;">&#123;</span>
			bgiframe<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
			resizable<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
			width<span style="color: #339933;">:</span> <span style="color: #CC0000;">500</span><span style="color: #339933;">,</span>
			modal<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
			<span style="color: #006600; font-style: italic;">// hier wird dafür gesorgt dass der Dialog nach dem</span>
			<span style="color: #006600; font-style: italic;">// schliessen zerstört wird.</span>
			<span style="color: #000066;">close</span><span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>event<span style="color: #339933;">,</span> ui<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;">dialog</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'destroy'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
			overlay<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
				backgroundColor<span style="color: #339933;">:</span> <span style="color: #3366CC;">'#000'</span><span style="color: #339933;">,</span>
				opacity<span style="color: #339933;">:</span> <span style="color: #CC0000;">0.5</span>
			<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
			buttons<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #3366CC;">'Änderungen übernehmen'</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>
					$<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;">dialog</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'close'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					update_order<span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #006600; font-style: italic;">// Es bringts wenn man das hier ausführt</span>
					<span style="color: #006600; font-style: italic;">// Denn der X Button oben rechts ruft nur close auf und nicht destroy</span>
					<span style="color: #006600; font-style: italic;">// $(this).dialog('destroy');</span>
				<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
				<span style="color: #3366CC;">'Unterbrechung löschen'</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>
					$<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;">dialog</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'close'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					delete_order<span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>										
				Abbrechen<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: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">dialog</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'close'</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;">&#125;</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.php-log.de/440/javascript/wenn-sich-der-jquery-dialog-nicht-erneut-offnen-lasst/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Datepicker verschwindet hinter dem Dialog</title>
		<link>http://www.php-log.de/437/javascript/jquery-datepicker-verschwindet-hinter-dem-dialog</link>
		<comments>http://www.php-log.de/437/javascript/jquery-datepicker-verschwindet-hinter-dem-dialog#comments</comments>
		<pubDate>Thu, 20 Aug 2009 14:18:27 +0000</pubDate>
		<dc:creator>ralle</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Datepicker]]></category>
		<category><![CDATA[Dialog]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.php-log.de/?p=437</guid>
		<description><![CDATA[Für dieses Problem gibt es eine einfache Lösung. Man muss dem Datepicker Element einen z-index zuweisen, der höher ist als der des Dialogs. Hier ein Beispiel: &#160; // Recht hoch gesetzt, sollte aber immer mehr als 10000 sein $&#40;&#34;#ui-datepicker-div&#34;&#41;.css&#40;&#34;z-index&#34;, 10000000&#41;; &#160; // Alternativ kann man auch dies versuchen um den z-index eins höher // als [...]]]></description>
			<content:encoded><![CDATA[<p>Für dieses Problem gibt es eine einfache Lösung. Man muss dem Datepicker Element einen z-index zuweisen, der höher ist als der des Dialogs.<br />
<span id="more-437"></span></p>
<p>Hier ein Beispiel:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">&nbsp;
<span style="color: #006600; font-style: italic;">// Recht hoch gesetzt, sollte aber immer mehr als 10000 sein</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#ui-datepicker-div&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;z-index&quot;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">10000000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// Alternativ kann man auch dies versuchen um den z-index eins höher </span>
<span style="color: #006600; font-style: italic;">// als das Elternelement zu setzen</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#ui-datepicker-div&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;z-index&quot;</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;">parents</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.ui-dialog&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;z-index&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.php-log.de/437/javascript/jquery-datepicker-verschwindet-hinter-dem-dialog/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Das Datum setzen mit dem jQuery Datepicker und setDate</title>
		<link>http://www.php-log.de/423/javascript/das-datum-setzen-mit-dem-jquery-datepicker-und-setdate</link>
		<comments>http://www.php-log.de/423/javascript/das-datum-setzen-mit-dem-jquery-datepicker-und-setdate#comments</comments>
		<pubDate>Sat, 15 Aug 2009 20:51:35 +0000</pubDate>
		<dc:creator>ralle</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Datepicker]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.php-log.de/?p=423</guid>
		<description><![CDATA[Das klingt zunächst einmal sehr einfach, aber ich musste doch einiges an Versuchen starten bevor es funzte, deswegen hier mal meine Lösung, zum Nachschlagen für mich selbst. &#60;input type=&#34;text&#34; name=&#34;fromTotal&#34; id=&#34;fromTotal&#34;&#62; &#160; &#60;script type=&#34;text/javascript&#34;&#62; // Ich nutze jQuery mit Prototype, deswegen spreche ich jQuery mit $j an $j&#40;function&#40;&#41; &#123; &#160; $j&#40;&#34;#fromTotal&#34;&#41;.datepicker&#40; &#123; dateFormat: 'dd.mm.yy', // [...]]]></description>
			<content:encoded><![CDATA[<p>Das klingt zunächst einmal sehr einfach, aber ich musste doch einiges an Versuchen starten bevor es funzte, deswegen hier mal meine Lösung, zum Nachschlagen für mich selbst.</p>
<p><span id="more-423"></span></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">&lt;input type=&quot;text&quot; name=&quot;fromTotal&quot; id=&quot;fromTotal&quot;&gt;
&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: #006600; font-style: italic;">// Ich nutze jQuery mit Prototype, deswegen spreche ich jQuery mit $j an</span>
	$j<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>
&nbsp;
		$j<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#fromTotal&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">datepicker</span><span style="color: #009900;">&#40;</span>
			<span style="color: #009900;">&#123;</span>
				dateFormat<span style="color: #339933;">:</span> <span style="color: #3366CC;">'dd.mm.yy'</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// Anzeige auf Deutsch</span>
				altField<span style="color: #339933;">:</span> <span style="color: #3366CC;">'#fromDate'</span><span style="color: #339933;">,</span>  <span style="color: #006600; font-style: italic;">// Aber übermittle...</span>
				altFormat<span style="color: #339933;">:</span> <span style="color: #3366CC;">'yy-mm-dd'</span>   <span style="color: #006600; font-style: italic;">// ...MySQL Compliant</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;">// Mach mal Weihnacht</span>
		$j<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#fromTotal&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">datepicker</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'setDate'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">new</span> Date <span style="color: #009900;">&#40;</span> <span style="color: #3366CC;">&quot;&lt;?= date('m d Y', strtotime('2009-12-24')) ?&gt;&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>				
&nbsp;
		<span style="color: #006600; font-style: italic;">// oder doch besser Heute</span>
		$j<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#fromTotal&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">datepicker</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'setDate'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">new</span> Date <span style="color: #009900;">&#40;</span> <span style="color: #3366CC;">&quot;&lt;?= date('m d Y', time()) ?&gt;&quot;</span> <span style="color: #009900;">&#41;</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>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p><strong>Update:</strong> Das scheint im Safari zur Zeit nicht zu funktioneren</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-log.de/423/javascript/das-datum-setzen-mit-dem-jquery-datepicker-und-setdate/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
