<?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; Dialog</title>
	<atom:link href="http://www.php-log.de/tags/dialog/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>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>
	</channel>
</rss>
