<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title><![CDATA[tutorials.de - Javascript & Ajax]]></title>
		<link>http://www.tutorials.de/</link>
		<description><![CDATA[Forum & Hilfe zur Skriptsprache Javascript und Ajax (Asynchronous JavaScript and XML)]]></description>
		<language>de</language>
		<lastBuildDate>Wed, 08 Sep 2010 23:23:25 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>30</ttl>
		<image>
			<url>http://style.tutorials.de/v10/images/misc/rss.png</url>
			<title><![CDATA[tutorials.de - Javascript & Ajax]]></title>
			<link>http://www.tutorials.de/</link>
		</image>
		<item>
			<title>Linkrahmen bei Bannerrotation</title>
			<link>http://www.tutorials.de/javascript-ajax/366059-linkrahmen-bei-bannerrotation.html</link>
			<pubDate>Wed, 08 Sep 2010 22:00:49 GMT</pubDate>
			<description><![CDATA[Hallo! 
 
ich würde gerne folgenden script für eine Bannerrotation nutzen und schaffe es nicht den Linkrahmen um die Bilder zu entfernen. 
 
 
 
<script type="text/javascript">  
   /**  
   * @banner    [array] Bannersammlung  
   */]]></description>
			<content:encoded><![CDATA[<div>Hallo!<br />
<br />
ich würde gerne folgenden script für eine Bannerrotation nutzen und schaffe es nicht den Linkrahmen um die Bilder zu entfernen.<br />
<br />
<br />
<br />
&lt;script type=&quot;text/javascript&quot;&gt; <br />
   /** <br />
   * @banner    [array] Bannersammlung <br />
   */ <br />
   var banner = new Array(); <br />
   banner[0] = { <br />
      href: 'http://www.whatever.com', <br />
      src: 'banner0.gif', <br />
      alt: 'alttext 0' <br />
   } <br />
   banner[1] = { <br />
      href: 'http://www.whatever.com', <br />
      src: 'banner1.gif', <br />
      alt: 'alttext 1' <br />
   } <br />
   banner[2] = { <br />
      href: 'http://www.whatever.com', <br />
      src: 'banner2.gif', <br />
      alt: 'alttext 2' <br />
   } <br />
   banner[3] = { <br />
      href: 'http://www.whatever.com', <br />
      src: 'banner3.gif', <br />
      alt: 'alttext 3' <br />
   } <br />
   banner[4] = { <br />
      href: 'http://www.whatever.com', <br />
      src: 'banner4.gif', <br />
      alt: 'alttext 4' <br />
   } <br />
   banner[5] = { <br />
      href: 'http://www.whatever.com', <br />
      src: 'banner5.gif', <br />
      alt: 'alttext 5' <br />
   } <br />
   /** <br />
   * @bannerChange      Gibt zufälligen Banner zurück [html] <br />
   * @param         [string] id des banner-containers <br />
   *                [array] die Bannersammlung <br />
   *                [number] refresh in ms (optional) <br />
   */ <br />
   var bannerChange = { <br />
      init: function(zone,store,time){ <br />
         this.name  = 'bannerChange'; <br />
         this.zone  = document.getElementById(zone); <br />
         this.store = store; <br />
         this.count = store.length-1; <br />
         this.time  = (time) ? time : false; <br />
         this.lastNr = null; <br />
          <br />
         this.preloadImages(); <br />
         this.randomShow(); <br />
         if (this.time) this.interval = window.setInterval(this.name+&quot;.randomShow()&quot;, time); <br />
      }, <br />
      preloadImages: function(){ <br />
         for (var i=0;i&lt;=this.count;i++) { <br />
            var img = new Image(); <br />
            img.src = this.store[i].src; <br />
         } <br />
      }, <br />
      getRandomNr: function(){ <br />
         var nextNr; <br />
         do { <br />
            nextNr = Math.round(this.count * Math.random()); <br />
         } while(nextNr == this.lastNr); <br />
         this.lastNr = nextNr; <br />
         return nextNr; <br />
      }, <br />
      randomShow: function(){ <br />
         var whichOne = this.getRandomNr();          <br />
         var html = '&lt;a href=&quot;'+this.store[whichOne].href+'&quot; &gt;'; <br />
         html     += '&lt;img src=&quot;'+this.store[whichOne].src+'&quot; '; <br />
         html     += ' alt=&quot;'+this.store[whichOne].alt+'&quot;&gt;'; <br />
         html     += '&lt;/a&gt;'; <br />
         this.zone.innerHTML = html; <br />
      } <br />
   } <br />
   window.onload = function(){ <br />
      bannerChange.init('dropzone',banner,1000); <br />
   }<br />
&lt;/script&gt;<br />
<br />
-------------------------------------<br />
<br />
&lt;div id=&quot;dropzone&quot;&gt; <br />
   &lt;!-- banner goes here --&gt; <br />
    &lt;a href=&quot;http://www.whatever.com&quot;&gt; <br />
      &lt;img src=&quot;banner0.gif&quot; alt=&quot;banner für user ohne javascript&quot; /&gt; <br />
    &lt;/a&gt;<br />
&lt;/div&gt;</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/javascript-ajax/"><![CDATA[Javascript & Ajax]]></category>
			<dc:creator>willswing</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/javascript-ajax/366059-linkrahmen-bei-bannerrotation.html</guid>
		</item>
		<item>
			<title>jQuery FadeIn / FadeOut</title>
			<link>http://www.tutorials.de/javascript-ajax/366037-jquery-fadein-fadeout.html</link>
			<pubDate>Wed, 08 Sep 2010 12:51:41 GMT</pubDate>
			<description>Hi, 
ich habe eine Seite gebaut in HTML und CSS. Die Grundstruktur auf jeder Seite ist mehr oder weniger gleich, lediglich der Inhalt ändert sich. Auf jeden Fall möchte ich ausprobieren, einen Seitenwechsel ein wenig zu animieren. Mit animieren meine ich lediglich (alles innerhalb 1 Sekunde...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
ich habe eine Seite gebaut in HTML und CSS. Die Grundstruktur auf jeder Seite ist mehr oder weniger gleich, lediglich der Inhalt ändert sich. Auf jeden Fall möchte ich ausprobieren, einen Seitenwechsel ein wenig zu animieren. Mit animieren meine ich lediglich (alles innerhalb 1 Sekunde ungefähr) die jetzige Seite kurz ausblenden und eine andere dann einblenden. Insgesamt habe ich nur 4 Seiten, so dass dies wahrtscheinlich nicht zu nervig wird. Es soll eben auch kaum auffallen, aber man soll merken, dass es ein wenig animiert ist.<br />
<br />
Nun ja, ich habe gesucht und ein wenig rumprobiert. Die neue Seite laden habe ich hinbekommen mit jQuery:<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
</pre></td><td class="bbcode_code_highlight"><pre>$(function(){
&nbsp; &nbsp; $('#container').hide().fadeIn();
})</pre></td></tr></tbody></table></code><hr />
</div> Dies funktioniert auch. Das Ausfaden der anderen Seite bei Klick auf einen der 4 Navigationspunkte ( ul li a), schaffe ich leider nicht. Die jQuery Funktion dafür sollte sein<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
</pre></td><td class="bbcode_code_highlight"><pre>$('#container').fadeOut();</pre></td></tr></tbody></table></code><hr />
</div> <br />
Nur leider weiß ich nicht, wie ich diese Funktion genau dann ausführe, wenn man auf einem Link klickt (muss ich dem a tag eine id geben?). Außerdem muss nachdem die Seite ausgefadet ist, erst dann der Seitenwechsel erfolgen. Dies geht wahrscheinlich mit der load Eigenschaft<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
</pre></td><td class="bbcode_code_highlight"><pre>.load('neueSeite.html');</pre></td></tr></tbody></table></code><hr />
</div> <br />
Allerdings bekomme ich dies nicht zusammengestückelt, weil ich nicht weiß, wie man herausfindet ob geklickt wurde und wo (4 Links führen zu unterschiedlichen inhalten). <br />
<br />
Zusammengefasst will ich zurst die aktuelle Seite ausfaden, neue Seite aufrufen, neue Seite einfaden. Einfaden klappt mehr oder weniger, beim Rest weiß mich grad nicht weiter. So habe ich es auch schon versucht...<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
</pre></td><td class="bbcode_code_highlight"><pre>$('#container').fadeOut(1000, function() {
&nbsp; &nbsp; &nbsp;$this.load('tactics.html');
});</pre></td></tr></tbody></table></code><hr />
</div> </div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/javascript-ajax/"><![CDATA[Javascript & Ajax]]></category>
			<dc:creator>LeMarkus</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/javascript-ajax/366037-jquery-fadein-fadeout.html</guid>
		</item>
		<item>
			<title>Merkwürdiges Problem mit einer Slideshow</title>
			<link>http://www.tutorials.de/javascript-ajax/366017-merkwuerdiges-problem-mit-einer-slideshow.html</link>
			<pubDate>Tue, 07 Sep 2010 20:06:54 GMT</pubDate>
			<description>Hi zusammen, 
 
und wieder einmal benötige ich die Hilfe von JS-Experten bei der Lösung 
eines merkwürdigen Phänomens. 
 
Bislang hat meine Slideshow problemlos funktioniert. Nun wollte ich aber die 
entsprechenden Namen unter den Bildern mit anzeigen lassen. 
Deshalb habe ich mein Script...</description>
			<content:encoded><![CDATA[<div>Hi zusammen,<br />
<br />
und wieder einmal benötige ich die Hilfe von JS-Experten bei der Lösung<br />
eines merkwürdigen Phänomens.<br />
<br />
Bislang hat meine Slideshow problemlos funktioniert. Nun wollte ich aber die<br />
entsprechenden Namen unter den Bildern mit anzeigen lassen.<br />
Deshalb habe ich mein Script entsprechend erweitert.<br />
Jetzt werden zwar die Namen angezeigt, jedoch gibt es bei einigen FF-Browsern<br />
ein bislang mir unbekanntes Problem, für das ich keine Erklärung finden kann.<br />
<br />
Während bei allen IE-Versionen (inkl. IE6.0) alles funktioniert, treten<br />
z.B. beim FF2.0 und FF3.0 einige Merkwürdigkeiten auf.<br />
Es kommt u.a. zu einer Beeinflussung des Eingabe-Fensters innerhalb<br />
des IFames, wo bei jedem Bild-Wechsel die bisherige Eingabe unsichtbar<br />
wird, aber immer noch im Hintergrund vorhanden ist.<br />
Eine genaue Beschreibung des Phänomens ist nur schwer möglich, wenn<br />
man es nicht selbst gesehen hat.<br />
Deshalb hier mal der Link dazu :<br />
<a href="http://www.radio-adventure.de/radio.php" target="_blank">http://www.radio-adventure.de/radio.php</a><br />
<br />
Und hier das verwendete Script (Auszug) :<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP-Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$sql_bild&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"SELECT&nbsp;*&nbsp;FROM&nbsp;$tabelle&nbsp;ORDER&nbsp;BY&nbsp;id"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$erg_bild&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql_bild</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$dbconn</span><span style="color: #007700">)&nbsp;or&nbsp;die(</span><span style="color: #0000BB">mysql_error</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">$anz_bild&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_num_rows</span><span style="color: #007700">(</span><span style="color: #0000BB">$erg_bild</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;<br /></span><br />...<br />&lt;head&gt;<br />&nbsp;&nbsp;...<br />&nbsp;&nbsp;&lt;script&nbsp;language="JavaScript"&nbsp;type="text/JavaScript"&gt;<br />&nbsp;&nbsp;var&nbsp;image&nbsp;=&nbsp;new&nbsp;Array();<br />&nbsp;&nbsp;var&nbsp;username&nbsp;=&nbsp;new&nbsp;Array();<br />&nbsp;&nbsp;<span style="color: #0000BB">&lt;?php<br />&nbsp;&nbsp;$zaehler&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;while&nbsp;(</span><span style="color: #0000BB">$datensatz&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$erg_bild</span><span style="color: #007700">))&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">'image&#91;'</span><span style="color: #007700">.</span><span style="color: #0000BB">$zaehler</span><span style="color: #007700">.</span><span style="color: #DD0000">'&#93;&nbsp;=&nbsp;"galerie/'</span><span style="color: #007700">.</span><span style="color: #0000BB">strtolower</span><span style="color: #007700">(</span><span style="color: #0000BB">$datensatz</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">"name"</span><span style="color: #007700">&#93;).</span><span style="color: #DD0000">'.jpg";'</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">'username&#91;'</span><span style="color: #007700">.</span><span style="color: #0000BB">$zaehler</span><span style="color: #007700">.</span><span style="color: #DD0000">'&#93;&nbsp;=&nbsp;"'</span><span style="color: #007700">.</span><span style="color: #0000BB">$datensatz</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">"name"</span><span style="color: #007700">&#93;.</span><span style="color: #DD0000">'";'</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$zaehler</span><span style="color: #007700">++;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">'var&nbsp;anzahl_bilder&nbsp;=&nbsp;'</span><span style="color: #007700">.</span><span style="color: #0000BB">$anz_bild</span><span style="color: #007700">.</span><span style="color: #DD0000">';'</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">?&gt;<br /></span>&nbsp;&nbsp;var&nbsp;picIndex;<br /><br />&nbsp;&nbsp;function&nbsp;slide(picIndex)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;document.images&#91;"slide"&#93;.src&nbsp;=&nbsp;image&#91;picIndex&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById("name").innerHTML&nbsp;=&nbsp;username&#91;picIndex&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;picIndex++;<br />&nbsp;&nbsp;&nbsp;&nbsp;if(picIndex==anzahl_bilder)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;picIndex=0;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;eval('window.setTimeout("slide('+picIndex+')",&nbsp;3000);')<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&lt;/script&gt;<br />&nbsp;&nbsp;...<br />&lt;/head&gt;<br /><br />&lt;body&nbsp;onload="slide(1)"&gt;<br /><br />&lt;div&nbsp;id="show"&gt;<br />&nbsp;&nbsp;&lt;i&gt;Galerie&lt;/i&gt;<br />&nbsp;&nbsp;&lt;img&nbsp;name="slide"&nbsp;id="slide"&nbsp;alt="Bild-Name"&gt;<br />&nbsp;&nbsp;&lt;p&nbsp;id="name"&nbsp;/&gt;<br />&lt;/div&gt;</span>
</code></code><hr />
</div> Wodurch kann diese Beeinflussung hervorgerufen worden sein ?<br />
Würde mich freuen, wenn jemand dazu eine kleine Idee hätte.<br />
Danke schon mal im voraus.<br />
<br />
Gruß, Mike</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/javascript-ajax/"><![CDATA[Javascript & Ajax]]></category>
			<dc:creator>sheeba1507</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/javascript-ajax/366017-merkwuerdiges-problem-mit-einer-slideshow.html</guid>
		</item>
		<item>
			<title>onclick in DOM eintragen</title>
			<link>http://www.tutorials.de/javascript-ajax/366010-onclick-dom-eintragen.html</link>
			<pubDate>Tue, 07 Sep 2010 16:44:38 GMT</pubDate>
			<description><![CDATA[Hallo zusammen. 
 
Ich stehe mal wieder auf dem Schlauch. Ich möchte per JS einen EventHandler an ein DOM-Element anhängen. Das habe ich nun so gelöst: 
 
domeintrag.setAttribute("onclick", "herstellerauswaehlen('" + result[f].categories_id + "', '" + result[f].categories_name + "')"); 
 
das würde...]]></description>
			<content:encoded><![CDATA[<div>Hallo zusammen.<br />
<br />
Ich stehe mal wieder auf dem Schlauch. Ich möchte per JS einen EventHandler an ein DOM-Element anhängen. Das habe ich nun so gelöst:<br />
<br />
domeintrag.setAttribute(&quot;onclick&quot;, &quot;herstellerauswaehlen('&quot; + result[f].categories_id + &quot;', '&quot; + result[f].categories_name + &quot;')&quot;);<br />
<br />
das würde auch ganz gut funktionieren, ABER natürlich nicht in Müll-IE 6.<br />
<br />
Wie kann ich das sonst schreiben, das das auch wirklich jeder Browser versteht?<br />
<br />
Danke euch.<br />
<br />
<br />
CU SAM<br />
<a href="http://www.mehr-autoteile.de" target="_blank">gebrauchte Autoteile.</a><br />
<a href="http://www.mehr-autoteile.de/php/shop/shop-tuning.php" target="_blank">Tuning Teile Online</a></div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/javascript-ajax/"><![CDATA[Javascript & Ajax]]></category>
			<dc:creator>SAMariter</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/javascript-ajax/366010-onclick-dom-eintragen.html</guid>
		</item>
		<item>
			<title>Web Service aufruf mittels Ajax</title>
			<link>http://www.tutorials.de/javascript-ajax/366009-web-service-aufruf-mittels-ajax.html</link>
			<pubDate>Tue, 07 Sep 2010 16:10:50 GMT</pubDate>
			<description>Hallo, 
 
ich hab hier ein kleines Problem, mit dem ich absolut nicht weiter komme. 
Ich hab einen Web Service auf einem Tomcat 6 laufen. 
Diesen möchte/darf ich nur mittels Javascript aufrufen. So weit so gut.  
 
Ruf ich nun diesen Dienst über mein JavaScript auf, bekomme ich nur ein leeres...</description>
			<content:encoded><![CDATA[<div>Hallo,<br />
<br />
ich hab hier ein kleines Problem, mit dem ich absolut nicht weiter komme.<br />
Ich hab einen Web Service auf einem Tomcat 6 laufen.<br />
Diesen möchte/darf ich nur mittels Javascript aufrufen. So weit so gut. <br />
<br />
Ruf ich nun diesen Dienst über mein JavaScript auf, bekomme ich nur ein leeres Object zurück. <br />
Aufrufe per Java Client bzw. über den Browser funktionieren alle.<br />
Vielleicht hat ja jemand ne Idee. Danke im Voraus!<br />
<br />
<br />
<br />
Hier der Teil des Scriptes, der den Aufruf tätigt :<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="bbcode_code_highlight"><pre>&nbsp; &nbsp; 
&nbsp; &nbsp; var endpoint = &quot;http://localhost:8080/TestService/services/TestService&quot;;
&nbsp; &nbsp; var soapaction = &quot;http://localhost:8080/TestService/services/TestService/GetMsg&quot;;
&nbsp;
&nbsp; &nbsp; 
&nbsp; &nbsp; xmlHttp = getXMLHttp();
&nbsp; &nbsp; xmlHttp.open('POST', endpoint, true);
&nbsp; &nbsp; xmlHttp.setRequestHeader('Content-Type', 'text/xml;charset=utf-8');
&nbsp; &nbsp; xmlHttp.setRequestHeader('SOAPAction', soapaction);
&nbsp;
&nbsp; &nbsp; xmlHttp.onreadystatechange = function() {
&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; if (xmlHttp.readyState == 4)
&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//responseXML ist hier immer null
&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;alert(xmlHttp.responseXML);
&nbsp;
&nbsp; &nbsp; }
&nbsp;
&nbsp; &nbsp; xmlHttp.send(request);</pre></td></tr></tbody></table></code><hr />
</div> <br />
<br />
Der Anfrage Header sieht nun wie folgt aus:<br />
<br />
<b>Host</b>	localhost:8080<br />
<b>User-Agent</b>	Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid) Firefox/3.6.8<br />
<b>Accept</b>	text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8<br />
<b>Accept-Language</b>	de-de,de;q=0.8,en-us;q=0.5,en;q=0.3<br />
<b>Accept-Encoding</b>	gzip,deflate<br />
<b>Accept-Charset</b>	ISO-8859-1,utf-8;q=0.7,*;q=0.7<br />
<b>Keep-Alive</b>	115<br />
<b>Connection</b>	keep-alive<br />
<b>Origin</b>	<a href="http://localhost" target="_blank">http://localhost</a><br />
<b>Access-Control-Request-Method</b>	POST<br />
<b>Access-Control-Request-Headers</b>	cache-control,soapaction	<br />
<br />
<br />
Und der Antwort Header<br />
<br />
<b>Server</b>	Apache-Coyote/1.1<br />
<b>Allow</b>	GET, HEAD, POST, TRACE, OPTIONS<br />
<b>Content-Length</b>	0<br />
<b>Date</b>	Tue, 07 Sep 2010 18:02:17 GMT</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/javascript-ajax/"><![CDATA[Javascript & Ajax]]></category>
			<dc:creator>janiwani</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/javascript-ajax/366009-web-service-aufruf-mittels-ajax.html</guid>
		</item>
		<item>
			<title>Alle InputFelder (Type=text) durchlaufen und explizit abfragen</title>
			<link>http://www.tutorials.de/javascript-ajax/366003-alle-inputfelder-type-text-durchlaufen-und-explizit-abfragen.html</link>
			<pubDate>Tue, 07 Sep 2010 14:50:24 GMT</pubDate>
			<description>Hallo zusammen, 
 
ich habe ein Blackout gerade und komme nicht weiter ;-( 
 
Folgendes: ich abe ein Formular mit ca. 24 TextFledern und möchte alle Abfragen angefangen mit dem Namen und soweiter. 
 
Das mit dem Namen hat schon geklappt, aber dann wenn ich diese abfrage, ob die leer sind oder...</description>
			<content:encoded><![CDATA[<div>Hallo zusammen,<br />
<br />
ich habe ein Blackout gerade und komme nicht weiter ;-(<br />
<br />
Folgendes: ich abe ein Formular mit ca. 24 TextFledern und möchte alle Abfragen angefangen mit dem Namen und soweiter.<br />
<br />
Das mit dem Namen hat schon geklappt, aber dann wenn ich diese abfrage, ob die leer sind oder nicht, dann klappt es nicht.<br />
<br />
Ich komme gar nicht rein in die zweite For-Schleife... kann einer bitte helfen?<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">HTML-Code:</div>
	<hr /><code class="bbcode_code">for(i=0; i&lt;document.forms&#91;0&#93;.length; i++){<br />
&nbsp; &nbsp; if(document.forms&#91;0&#93;.elements&#91;i&#93;.type == 'text'){<br />
&nbsp; &nbsp; &nbsp; &nbsp; var getName = document.forms&#91;0&#93;.elements&#91;i&#93;.name;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; var allEmpty = true;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(getName.match('FName')){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var getThemAll = document.forms&#91;0&#93;.elements&#91;i&#93;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(getThemAll.value);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(var j=0; j&lt;=getThemAll.length; j++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(getThemAll.value&#91;j&#93; != ''){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert('j' + getThemAll.value&#91;j&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; allEmpty = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (allEmpty){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert('es sind alle leer');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert('das passt');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
}</code><hr />
</div> <div class="bbcode_container">
	<div class="bbcode_description">HTML-Code:</div>
	<hr /><code class="bbcode_code"><span style="color:#FF8000">&lt;form ....&gt;</span><br />
<span style="color:#FF8000">&lt;input type=<span style="color:#0000FF">&quot;text&quot;</span> name=<span style="color:#0000FF">&quot;friend_01_FName&quot;</span> value=<span style="color:#0000FF">&quot;xxx&quot;</span> class=<span style="color:#0000FF">&quot;inputText_01&quot;</span> /&gt;</span><br />
<span style="color:#FF8000">&lt;input type=<span style="color:#0000FF">&quot;text&quot;</span> name=<span style="color:#0000FF">&quot;friend_01_LName&quot;</span> value=<span style="color:#0000FF">&quot;yyy&quot;</span> class=<span style="color:#0000FF">&quot;inputText_02&quot;</span> /&gt;</span><br />
<span style="color:#FF8000">&lt;input type=<span style="color:#0000FF">&quot;text&quot;</span> name=<span style="color:#0000FF">&quot;friend_01_eMail&quot;</span> value=<span style="color:#0000FF">&quot;&quot;</span> class=<span style="color:#0000FF">&quot;inputText_02&quot;</span> /&gt;</span><br />
<span style="color:#FF8000">&lt;input type=<span style="color:#0000FF">&quot;text&quot;</span> name=<span style="color:#0000FF">&quot;friend_02_FName&quot;</span> value=<span style="color:#0000FF">&quot;&quot;</span> class=<span style="color:#0000FF">&quot;inputText_03&quot;</span> /&gt;</span><br />
<span style="color:#FF8000">&lt;input type=<span style="color:#0000FF">&quot;text&quot;</span> name=<span style="color:#0000FF">&quot;friend_02_LName&quot;</span> value=<span style="color:#0000FF">&quot;&quot;</span> class=<span style="color:#0000FF">&quot;inputText_04&quot;</span> /&gt;</span><br />
<span style="color:#FF8000">&lt;input type=<span style="color:#0000FF">&quot;text&quot;</span> name=<span style="color:#0000FF">&quot;friend_02_eMail&quot;</span> value=<span style="color:#0000FF">&quot;&quot;</span> class=<span style="color:#0000FF">&quot;inputText_04&quot;</span> /&gt;</span><br />
<span style="color:#FF8000">&lt;input type=<span style="color:#0000FF">&quot;text&quot;</span> name=<span style="color:#0000FF">&quot;friend_03_FName&quot;</span> value=<span style="color:#0000FF">&quot;&quot;</span> class=<span style="color:#0000FF">&quot;inputText_03&quot;</span> /&gt;</span><br />
<span style="color:#FF8000">&lt;input type=<span style="color:#0000FF">&quot;text&quot;</span> name=<span style="color:#0000FF">&quot;friend_03_LName&quot;</span> value=<span style="color:#0000FF">&quot;&quot;</span> class=<span style="color:#0000FF">&quot;inputText_04&quot;</span> /&gt;</span><br />
<span style="color:#FF8000">&lt;input type=<span style="color:#0000FF">&quot;text&quot;</span> name=<span style="color:#0000FF">&quot;friend_03_eMail&quot;</span> value=<span style="color:#0000FF">&quot;&quot;</span> class=<span style="color:#0000FF">&quot;inputText_04&quot;</span> /&gt;</span><br />
<span style="color:#FF8000">&lt;input type=<span style="color:#0000FF">&quot;text&quot;</span> name=<span style="color:#0000FF">&quot;friend_04_FName&quot;</span> value=<span style="color:#0000FF">&quot;&quot;</span> class=<span style="color:#0000FF">&quot;inputText_03&quot;</span> /&gt;</span><br />
<span style="color:#FF8000">&lt;input type=<span style="color:#0000FF">&quot;text&quot;</span> name=<span style="color:#0000FF">&quot;friend_04_LName&quot;</span> value=<span style="color:#0000FF">&quot;&quot;</span> class=<span style="color:#0000FF">&quot;inputText_04&quot;</span> /&gt;</span><br />
<span style="color:#FF8000">&lt;input type=<span style="color:#0000FF">&quot;text&quot;</span> name=<span style="color:#0000FF">&quot;friend_04_eMail&quot;</span> value=<span style="color:#0000FF">&quot;&quot;</span> class=<span style="color:#0000FF">&quot;inputText_04&quot;</span> /&gt;</span><br />
<span style="color:#FF8000">&lt;/form&gt;</span></code><hr />
</div> vielen Danke und Gruß<br />
Messmar</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/javascript-ajax/"><![CDATA[Javascript & Ajax]]></category>
			<dc:creator>messmar</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/javascript-ajax/366003-alle-inputfelder-type-text-durchlaufen-und-explizit-abfragen.html</guid>
		</item>
		<item>
			<title>jQuery - mehrere Events wahlweise um Funktion auszulösen?</title>
			<link>http://www.tutorials.de/javascript-ajax/366001-jquery-mehrere-events-wahlweise-um-funktion-auszuloesen.html</link>
			<pubDate>Tue, 07 Sep 2010 14:20:41 GMT</pubDate>
			<description>Hallo, 
 
ich bin gerade dabei das wunderbar minimale vTip-jQuery-Plugin http://www.vertigo-project.com/projects/vtip etwas für meine Zwecke zu modifizieren. Das Plugin ist darauf ausgerichtet beim hovern zu reagieren. Ich würde jetzt gerne noch zusätzlich das Reagieren auf focus bzw. blur haben,...</description>
			<content:encoded><![CDATA[<div>Hallo,<br />
<br />
ich bin gerade dabei das wunderbar minimale vTip-jQuery-Plugin <a href="http://www.vertigo-project.com/projects/vtip" target="_blank">http://www.vertigo-project.com/projects/vtip</a> etwas für meine Zwecke zu modifizieren. Das Plugin ist darauf ausgerichtet beim hovern zu reagieren. Ich würde jetzt gerne noch zusätzlich das Reagieren auf focus bzw. blur haben, so wie es das NiceTitle-Plugin <a href="http://www.wordpress.dotflare.com/nicetitle-plugin/" target="_blank">http://www.wordpress.dotflare.com/nicetitle-plugin/</a> beherrscht. <br />
Ich bin mir bloß nicht so recht im Klaren darüber, wie ich bei Verwendung von jQuery mehrere Events als Auslöser für eine Funktion angeben kann.<br />
Irgendwie brachte mich auch eine entsprechende Suche per Google nicht weiter. <br />
Ist so etwas möglich und wenn ja wie?</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/javascript-ajax/"><![CDATA[Javascript & Ajax]]></category>
			<dc:creator>shredder01</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/javascript-ajax/366001-jquery-mehrere-events-wahlweise-um-funktion-auszuloesen.html</guid>
		</item>
		<item>
			<title>jQuery toggle background IE</title>
			<link>http://www.tutorials.de/javascript-ajax/365998-jquery-toggle-background-ie.html</link>
			<pubDate>Tue, 07 Sep 2010 12:56:25 GMT</pubDate>
			<description><![CDATA[Hallo zusammen, 
 
ich habe eine Togglereihe und versuche gerade, einen "toggle" auf ein Hintergrundbild zu bringen. Im FF und Opera funktioniert das ganze, leider nicht im IE 8. Das Hintergrund wird bei Klick geladen, leider verschwindet das Ursprungsbild aus der CSS, welches aber bei auslösen des...]]></description>
			<content:encoded><![CDATA[<div>Hallo zusammen,<br />
<br />
ich habe eine Togglereihe und versuche gerade, einen &quot;toggle&quot; auf ein Hintergrundbild zu bringen. Im FF und Opera funktioniert das ganze, leider nicht im IE 8. Das Hintergrund wird bei Klick geladen, leider verschwindet das Ursprungsbild aus der CSS, welches aber bei auslösen des Toggles wieder geladen werden soll..<br />
<br />
Ich habe von einem Bug gelesen, aber keine Ahnung, wie ich den hier ausbügeln könnte.<br />
<br />
Danke<br />
<br />
der ber<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP-Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">$(</span><span style="color: #0000BB">document</span><span style="color: #007700">).</span><span style="color: #0000BB">ready</span><span style="color: #007700">(function()&nbsp;{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(</span><span style="color: #DD0000">".signin"</span><span style="color: #007700">).</span><span style="color: #0000BB">click</span><span style="color: #007700">(function(</span><span style="color: #0000BB">e</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">e</span><span style="color: #007700">.</span><span style="color: #0000BB">preventDefault</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(</span><span style="color: #DD0000">"fieldset#signin_menu"</span><span style="color: #007700">).</span><span style="color: #0000BB">toggle</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(</span><span style="color: #DD0000">"#meindiv"</span><span style="color: #007700">).</span><span style="color: #0000BB">css</span><span style="color: #007700">({</span><span style="color: #DD0000">"background"</span><span style="color: #007700">:&nbsp;</span><span style="color: #DD0000">"#ffffff&nbsp;url(images/divvy.png)&nbsp;right&nbsp;-5px&nbsp;no-repeat"</span><span style="color: #007700">});<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(</span><span style="color: #DD0000">".signin"</span><span style="color: #007700">).</span><span style="color: #0000BB">toggleClass</span><span style="color: #007700">(</span><span style="color: #DD0000">"menu-open"</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(</span><span style="color: #DD0000">"fieldset#signin_menu"</span><span style="color: #007700">).</span><span style="color: #0000BB">mouseup</span><span style="color: #007700">(function()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">false<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">});<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(</span><span style="color: #0000BB">document</span><span style="color: #007700">).</span><span style="color: #0000BB">mouseup</span><span style="color: #007700">(function(</span><span style="color: #0000BB">e</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if($(</span><span style="color: #0000BB">e</span><span style="color: #007700">.</span><span style="color: #0000BB">target</span><span style="color: #007700">).</span><span style="color: #0000BB">parent</span><span style="color: #007700">(</span><span style="color: #DD0000">"a.signin"</span><span style="color: #007700">).</span><span style="color: #0000BB">length</span><span style="color: #007700">==</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(</span><span style="color: #DD0000">".signin"</span><span style="color: #007700">).</span><span style="color: #0000BB">removeClass</span><span style="color: #007700">(</span><span style="color: #DD0000">"menu-open"</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(</span><span style="color: #DD0000">"fieldset#signin_menu"</span><span style="color: #007700">).</span><span style="color: #0000BB">hide</span><span style="color: #007700">();<br />$(</span><span style="color: #DD0000">"#meindiv"</span><span style="color: #007700">).</span><span style="color: #0000BB">css</span><span style="color: #007700">({</span><span style="color: #DD0000">"background"</span><span style="color: #007700">:&nbsp;</span><span style="color: #DD0000">""</span><span style="color: #007700">});<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div> </div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/javascript-ajax/"><![CDATA[Javascript & Ajax]]></category>
			<dc:creator>ber</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/javascript-ajax/365998-jquery-toggle-background-ie.html</guid>
		</item>
		<item>
			<title>Frage zu JQuery $.get</title>
			<link>http://www.tutorials.de/javascript-ajax/365993-frage-zu-jquery-get.html</link>
			<pubDate>Tue, 07 Sep 2010 10:56:39 GMT</pubDate>
			<description><![CDATA[Folgenden Code habe ich um eine XML Datei aus zu lesen und ein zufälliges Element im Dokument an zu zeigen, was auch funktioniert. 
 
<div class="bbcode_container"> 
                <div class="bbcode_description">Code :</div> 
                <div class="bbcode_code"...]]></description>
			<content:encoded><![CDATA[<div>Folgenden Code habe ich um eine XML Datei aus zu lesen und ein zufälliges Element im Dokument an zu zeigen, was auch funktioniert.<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="bbcode_code_highlight"><pre>$(document).ready(function(){
var textarray = new Array();
var zaehler = 0;
var zufall = 0;
&nbsp; &nbsp; $.get('content/didyouknow.xml',function(d){
&nbsp; &nbsp; &nbsp; &nbsp; $(d).find('item').each(function(){
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var $duk = $(this);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var text = $duk.find('text').text();
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text = text.replace(&quot;&#91;i&#93;&quot;,&quot;&lt;i&gt;&quot;);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text = text.replace(&quot;&#91;/i&#93;&quot;,&quot;&lt;/i&gt;&quot;);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textarray&#91;zaehler&#93; = text;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zaehler++;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });
&nbsp; &nbsp; var anzahl = parseInt(textarray.length);
&nbsp; &nbsp; zufall = parseInt(Math.random()*(anzahl));
&nbsp; &nbsp; $('#binfo_wusstestdu_text').html(textarray&#91;zufall&#93;);
&nbsp; &nbsp; });
&nbsp;
});</pre></td></tr></tbody></table></code><hr />
</div> <br />
Nun ist meine Frage hier zu, wieso ist das textarray nach der Ausführung von $.get wieder leer obwohl ich das Array vor dem auslesen der XML erzeuge?<br />
Und wie kann ich dafür sorgen dass der Inhalt des Arrays auch danach noch vorhanden ist?<br />
<br />
Gruß und Dank<br />
RipmaV</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/javascript-ajax/"><![CDATA[Javascript & Ajax]]></category>
			<dc:creator>RipmaV</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/javascript-ajax/365993-frage-zu-jquery-get.html</guid>
		</item>
		<item>
			<title>Javascript, Alert, Confirm, Deutsch/Polnisch</title>
			<link>http://www.tutorials.de/javascript-ajax/365992-javascript-alert-confirm-deutsch-polnisch.html</link>
			<pubDate>Tue, 07 Sep 2010 10:46:46 GMT</pubDate>
			<description>Hallo Leute, 
langer Titel hoffentlich kurze Antwort. 
 
Ich programmiere ein mehrsprachige Applikation, die auf einem lokalem Webserver läuft. 
Einige Abfragen erfolgen über alert oder confirm Boxen. 
Meine Frage, wie kann ich nun die Texte 
OK 
Abrechen 
Ja 
Nein</description>
			<content:encoded><![CDATA[<div>Hallo Leute,<br />
langer Titel hoffentlich kurze Antwort.<br />
<br />
Ich programmiere ein mehrsprachige Applikation, die auf einem lokalem Webserver läuft.<br />
Einige Abfragen erfolgen über alert oder confirm Boxen.<br />
Meine Frage, wie kann ich nun die Texte<br />
OK<br />
Abrechen<br />
Ja<br />
Nein<br />
usw<br />
in einer anderen Sprache darstellen?<br />
<br />
Gruß<br />
Raabun</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/javascript-ajax/"><![CDATA[Javascript & Ajax]]></category>
			<dc:creator>Raabun</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/javascript-ajax/365992-javascript-alert-confirm-deutsch-polnisch.html</guid>
		</item>
		<item>
			<title>fancybox iframe: nach öffnen funktioniert das Mausrad nicht mehr?!</title>
			<link>http://www.tutorials.de/javascript-ajax/365988-fancybox-iframe-nach-oeffnen-funktioniert-das-mausrad-nicht-mehr.html</link>
			<pubDate>Tue, 07 Sep 2010 09:06:12 GMT</pubDate>
			<description>Hallo zusammen, 
 
einige von euch benutzen ja auch die Fancybox. Da ich auf meiner Site http://www.pixelasm.com einpaar MOVs eingebunden habe musste ich dazu ein iframe verwenden um das einzubinden. Komischerweise ist es aber so das wenn man das iframe wieder schließt das Mausrad nicht mehr...</description>
			<content:encoded><![CDATA[<div>Hallo zusammen,<br />
<br />
einige von euch benutzen ja auch die Fancybox. Da ich auf meiner Site <a href="http://www.pixelasm.com" target="_blank">http://www.pixelasm.com</a> einpaar MOVs eingebunden habe musste ich dazu ein iframe verwenden um das einzubinden. Komischerweise ist es aber so das wenn man das iframe wieder schließt das Mausrad nicht mehr funktioniert.<br />
Die Mausrad JS Datei hab ich aber eigentlich weggelassen und bei den anderen Fancybox Gallerien die ich auf der Seite verwende klappt alles wunderbar.<br />
<br />
Hat vielleicht jemand eine Idee wie ich das Problem lösen kann?<br />
<br />
Grüße<br />
Ralf</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/javascript-ajax/"><![CDATA[Javascript & Ajax]]></category>
			<dc:creator>kharn</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/javascript-ajax/365988-fancybox-iframe-nach-oeffnen-funktioniert-das-mausrad-nicht-mehr.html</guid>
		</item>
		<item>
			<title>Suchmaske mit X (Close)</title>
			<link>http://www.tutorials.de/javascript-ajax/365949-suchmaske-mit-x-close.html</link>
			<pubDate>Mon, 06 Sep 2010 08:50:34 GMT</pubDate>
			<description>Hallo, ich habe eine Suchefunktion programmiert und würde diese gern etwas auffrischen mit CSS. Habe auf einer Seite gesehen, dass bei Eingabe von Daten am rechten Ende der Suchbox ein kleines X angezeigt wird, mit der man die Suche löschen kann. Wie macht man sowas? 
 
hier ist die Seite, wo ich...</description>
			<content:encoded><![CDATA[<div>Hallo, ich habe eine Suchefunktion programmiert und würde diese gern etwas auffrischen mit CSS. Habe auf einer Seite gesehen, dass bei Eingabe von Daten am rechten Ende der Suchbox ein kleines X angezeigt wird, mit der man die Suche löschen kann. Wie macht man sowas?<br />
<br />
hier ist die Seite, wo ich dieses Feature gesehen habe: oben rechte Suchfunktion:<br />
<a href="http://wiki.flux-cms.org/display/BLOG/LiveSearch" target="_blank">http://wiki.flux-cms.org/display/BLOG/LiveSearch</a></div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/javascript-ajax/"><![CDATA[Javascript & Ajax]]></category>
			<dc:creator>nordi</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/javascript-ajax/365949-suchmaske-mit-x-close.html</guid>
		</item>
		<item>
			<title>2 Handle Slider in Scriptaculous</title>
			<link>http://www.tutorials.de/javascript-ajax/365945-2-handle-slider-scriptaculous.html</link>
			<pubDate>Mon, 06 Sep 2010 08:06:33 GMT</pubDate>
			<description>Hi, 
Ich versuche gerade einen 2 Handle-Slider mit Scriptaculous hinzubekommen. Leider gibt es hierzu im Netz recht wenig bis gar nichts. 
 
Ich nutze quasi den Standard-Slider und möchte ihn auf 2 Buttons erweitern um eine art Bandbreite festzlegen. Sowas gibts bei jquery massenweise nur bei...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
Ich versuche gerade einen 2 Handle-Slider mit Scriptaculous hinzubekommen. Leider gibt es hierzu im Netz recht wenig bis gar nichts.<br />
<br />
Ich nutze quasi den Standard-Slider und möchte ihn auf 2 Buttons erweitern um eine art Bandbreite festzlegen. Sowas gibts bei jquery massenweise nur bei Scriptaculous fast gar nichts.<br />
<br />
Bsp. wie es ungefähr sein sollte: <a href="http://jqueryui.com/demos/slider/range.html" target="_blank">http://jqueryui.com/demos/slider/range.html</a><br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">HTML-Code:</div>
	<hr /><code class="bbcode_code"><span style="color:#000080">&lt;div id=<span style="color:#0000FF">&quot;debug1&quot;</span>&gt;</span>Keine Auswahl<span style="color:#000080">&lt;/div&gt;</span><span style="color:#000080">&lt;div id=<span style="color:#0000FF">&quot;track1&quot;</span> style=<span style="color:#0000FF">&quot;width:265px; height:20px;&quot;</span>&gt;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000080">&lt;div id=<span style="color:#0000FF">&quot;track1-left&quot;</span>&gt;</span><span style="color:#000080">&lt;/div&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000080">&lt;div id=<span style="color:#0000FF">&quot;handle1&quot;</span> style=<span style="color:#0000FF">&quot;width:18px; height:17px;&quot;</span>&gt;</span><span style="color:#800080">&lt;img src=<span style="color:#0000FF">&quot;img/slider-images-handle.png&quot;</span> alt=<span style="color:#0000FF">&quot;&quot;</span> style=<span style="color:#0000FF">&quot;float: left;&quot;</span> /&gt;</span><span style="color:#000080">&lt;/div&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000080">&lt;/div&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#800000">&lt;script type=<span style="color:#0000FF">&quot;text/javascript&quot;</span> language=<span style="color:#0000FF">&quot;javascript&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // <span style="color:#000080">&lt;!&#91;CDATA&#91;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // horizontal slider control<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Control.Slider('handle1', 'track1', {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; range: $R(00, 10),<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; values: &#91;00,01,02,03,04,05,06,07,08,09,10&#93;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onSlide: function(v) { $('debug1').innerHTML = v + ' von 10 Punkten' },<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onChange: function(v) { $('debug1').innerHTML = v + ' von 10 Punkten' }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // &#93;&#93;&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#800000">&lt;/script&gt;</span></code><hr />
</div> Dazu gehört noch das externe JS:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">HTML-Code:</div>
	<hr /><code class="bbcode_code">// script.aculo.us slider.js v1.6.5, Wed Nov 08 14:17:49 CET 2006<br />
<br />
// Copyright (c) 2005, 2006 Marty Haught, Thomas Fuchs <br />
//<br />
// script.aculo.us is freely distributable under the terms of an MIT-style license.<br />
// For details, see the script.aculo.us web site: http://script.aculo.us/<br />
<br />
if(!Control) var Control = {};<br />
Control.Slider = Class.create();<br />
<br />
// options:<br />
//&nbsp; axis: 'vertical', or 'horizontal' (default)<br />
//<br />
// callbacks:<br />
//&nbsp; onChange(value)<br />
//&nbsp; onSlide(value)<br />
Control.Slider.prototype = {<br />
&nbsp; initialize: function(handle, track, options) {<br />
&nbsp; &nbsp; var slider = this;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; if(handle instanceof Array) {<br />
&nbsp; &nbsp; &nbsp; this.handles = handle.collect( function(e) { return $(e) });<br />
&nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &nbsp; this.handles = &#91;$(handle)&#93;;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; this.track&nbsp;  = $(track);<br />
&nbsp; &nbsp; this.options = options || {};<br />
<br />
&nbsp; &nbsp; this.axis&nbsp; &nbsp; &nbsp; = this.options.axis || 'horizontal';<br />
&nbsp; &nbsp; this.increment = this.options.increment || 1;<br />
&nbsp; &nbsp; this.step&nbsp; &nbsp; &nbsp; = parseInt(this.options.step || '1');<br />
&nbsp; &nbsp; this.range&nbsp; &nbsp;  = this.options.range || $R(0,10);<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; this.value&nbsp; &nbsp;  = 0; // assure backwards compat<br />
&nbsp; &nbsp; this.values&nbsp; &nbsp; = this.handles.map( function() { return 0 });<br />
&nbsp; &nbsp; this.spans&nbsp; &nbsp;  = this.options.spans ? this.options.spans.map(function(s){ return $(s) }) : false;<br />
&nbsp; &nbsp; this.options.startSpan = $(this.options.startSpan || null);<br />
&nbsp; &nbsp; this.options.endSpan&nbsp;  = $(this.options.endSpan || null);<br />
<br />
&nbsp; &nbsp; this.restricted = this.options.restricted || false;<br />
<br />
&nbsp; &nbsp; this.maximum&nbsp;  = this.options.maximum || this.range.end;<br />
&nbsp; &nbsp; this.minimum&nbsp;  = this.options.minimum || this.range.start;<br />
<br />
&nbsp; &nbsp; // Will be used to align the handle onto the track, if necessary<br />
&nbsp; &nbsp; this.alignX = parseInt(this.options.alignX || '0');<br />
&nbsp; &nbsp; this.alignY = parseInt(this.options.alignY || '0');<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; this.trackLength = this.maximumOffset() - this.minimumOffset();<br />
<br />
&nbsp; &nbsp; this.handleLength = this.isVertical() ? <br />
&nbsp; &nbsp; &nbsp; (this.handles&#91;0&#93;.offsetHeight != 0 ? <br />
&nbsp; &nbsp; &nbsp; &nbsp; this.handles&#91;0&#93;.offsetHeight : this.handles&#91;0&#93;.style.height.replace(/px$/,&quot;&quot;)) : <br />
&nbsp; &nbsp; &nbsp; (this.handles&#91;0&#93;.offsetWidth != 0 ? this.handles&#91;0&#93;.offsetWidth : <br />
&nbsp; &nbsp; &nbsp; &nbsp; this.handles&#91;0&#93;.style.width.replace(/px$/,&quot;&quot;));<br />
<br />
&nbsp; &nbsp; this.active&nbsp;  = false;<br />
&nbsp; &nbsp; this.dragging = false;<br />
&nbsp; &nbsp; this.disabled = false;<br />
<br />
&nbsp; &nbsp; if(this.options.disabled) this.setDisabled();<br />
<br />
&nbsp; &nbsp; // Allowed values array<br />
&nbsp; &nbsp; this.allowedValues = this.options.values ? this.options.values.sortBy(Prototype.K) : false;<br />
&nbsp; &nbsp; if(this.allowedValues) {<br />
&nbsp; &nbsp; &nbsp; this.minimum = this.allowedValues.min();<br />
&nbsp; &nbsp; &nbsp; this.maximum = this.allowedValues.max();<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; this.eventMouseDown = this.startDrag.bindAsEventListener(this);<br />
&nbsp; &nbsp; this.eventMouseUp&nbsp;  = this.endDrag.bindAsEventListener(this);<br />
&nbsp; &nbsp; this.eventMouseMove = this.update.bindAsEventListener(this);<br />
<br />
&nbsp; &nbsp; // Initialize handles in reverse (make sure first handle is active)<br />
&nbsp; &nbsp; this.handles.each( function(h,i) {<br />
&nbsp; &nbsp; &nbsp; i = slider.handles.length-1-i;<br />
&nbsp; &nbsp; &nbsp; slider.setValue(parseFloat(<br />
&nbsp; &nbsp; &nbsp; &nbsp; (slider.options.sliderValue instanceof Array ? <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; slider.options.sliderValue&#91;i&#93; : slider.options.sliderValue) || <br />
&nbsp; &nbsp; &nbsp; &nbsp;  slider.range.start), i);<br />
&nbsp; &nbsp; &nbsp; Element.makePositioned(h); // fix IE<br />
&nbsp; &nbsp; &nbsp; Event.observe(h, &quot;mousedown&quot;, slider.eventMouseDown);<br />
&nbsp; &nbsp; });<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Event.observe(this.track, &quot;mousedown&quot;, this.eventMouseDown);<br />
&nbsp; &nbsp; Event.observe(document, &quot;mouseup&quot;, this.eventMouseUp);<br />
&nbsp; &nbsp; Event.observe(document, &quot;mousemove&quot;, this.eventMouseMove);<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; this.initialized = true;<br />
&nbsp; },<br />
&nbsp; dispose: function() {<br />
&nbsp; &nbsp; var slider = this;&nbsp; &nbsp; <br />
&nbsp; &nbsp; Event.stopObserving(this.track, &quot;mousedown&quot;, this.eventMouseDown);<br />
&nbsp; &nbsp; Event.stopObserving(document, &quot;mouseup&quot;, this.eventMouseUp);<br />
&nbsp; &nbsp; Event.stopObserving(document, &quot;mousemove&quot;, this.eventMouseMove);<br />
&nbsp; &nbsp; this.handles.each( function(h) {<br />
&nbsp; &nbsp; &nbsp; Event.stopObserving(h, &quot;mousedown&quot;, slider.eventMouseDown);<br />
&nbsp; &nbsp; });<br />
&nbsp; },<br />
&nbsp; setDisabled: function(){<br />
&nbsp; &nbsp; this.disabled = true;<br />
&nbsp; },<br />
&nbsp; setEnabled: function(){<br />
&nbsp; &nbsp; this.disabled = false;<br />
&nbsp; },&nbsp; <br />
&nbsp; getNearestValue: function(value){<br />
&nbsp; &nbsp; if(this.allowedValues){<br />
&nbsp; &nbsp; &nbsp; if(value &gt;= this.allowedValues.max()) return(this.allowedValues.max());<br />
&nbsp; &nbsp; &nbsp; if(value <span style="color:#000080">&lt;= this.allowedValues.min()) return(this.allowedValues.min());<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; var offset = Math.abs(this.allowedValues&#91;0&#93; - value);<br />
&nbsp; &nbsp; &nbsp; var newValue = this.allowedValues&#91;0&#93;;<br />
&nbsp; &nbsp; &nbsp; this.allowedValues.each( function(v) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; var currentOffset = Math.abs(v - value);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(currentOffset &lt;= offset){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newValue = v;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; offset = currentOffset;<br />
&nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; return newValue;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; if(value &gt;</span> this.range.end) return this.range.end;<br />
&nbsp; &nbsp; if(value <span style="color:#000080">&lt; this.range.start) return this.range.start;<br />
&nbsp; &nbsp; return value;<br />
&nbsp; },<br />
&nbsp; setValue: function(sliderValue, handleIdx){<br />
&nbsp; &nbsp; if(!this.active) {<br />
&nbsp; &nbsp; &nbsp; this.activeHandleIdx = handleIdx || 0;<br />
&nbsp; &nbsp; &nbsp; this.activeHandle&nbsp; &nbsp; = this.handles&#91;this.activeHandleIdx&#93;;<br />
&nbsp; &nbsp; &nbsp; this.updateStyles();<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; handleIdx = handleIdx || this.activeHandleIdx || 0;<br />
&nbsp; &nbsp; if(this.initialized &amp;&amp; this.restricted) {<br />
&nbsp; &nbsp; &nbsp; if((handleIdx&gt;</span>0) &amp;&amp; (sliderValue<span style="color:#000080">&lt;this.values&#91;handleIdx-1&#93;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; sliderValue = this.values&#91;handleIdx-1&#93;;<br />
&nbsp; &nbsp; &nbsp; if((handleIdx &lt; (this.handles.length-1)) &amp;&amp; (sliderValue&gt;</span>this.values&#91;handleIdx+1&#93;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; sliderValue = this.values&#91;handleIdx+1&#93;;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; sliderValue = this.getNearestValue(sliderValue);<br />
&nbsp; &nbsp; this.values&#91;handleIdx&#93; = sliderValue;<br />
&nbsp; &nbsp; this.value = this.values&#91;0&#93;; // assure backwards compat<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; this.handles&#91;handleIdx&#93;.style&#91;this.isVertical() ? 'top' : 'left'&#93; = <br />
&nbsp; &nbsp; &nbsp; this.translateToPx(sliderValue);<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; this.drawSpans();<br />
&nbsp; &nbsp; if(!this.dragging || !this.event) this.updateFinished();<br />
&nbsp; },<br />
&nbsp; setValueBy: function(delta, handleIdx) {<br />
&nbsp; &nbsp; this.setValue(this.values&#91;handleIdx || this.activeHandleIdx || 0&#93; + delta, <br />
&nbsp; &nbsp; &nbsp; handleIdx || this.activeHandleIdx || 0);<br />
&nbsp; },<br />
&nbsp; translateToPx: function(value) {<br />
&nbsp; &nbsp; return Math.round(<br />
&nbsp; &nbsp; &nbsp; ((this.trackLength-this.handleLength)/(this.range.end-this.range.start)) * <br />
&nbsp; &nbsp; &nbsp; (value - this.range.start)) + &quot;px&quot;;<br />
&nbsp; },<br />
&nbsp; translateToValue: function(offset) {<br />
&nbsp; &nbsp; return ((offset/(this.trackLength-this.handleLength) * <br />
&nbsp; &nbsp; &nbsp; (this.range.end-this.range.start)) + this.range.start);<br />
&nbsp; },<br />
&nbsp; getRange: function(range) {<br />
&nbsp; &nbsp; var v = this.values.sortBy(Prototype.K); <br />
&nbsp; &nbsp; range = range || 0;<br />
&nbsp; &nbsp; return $R(v&#91;range&#93;,v&#91;range+1&#93;);<br />
&nbsp; },<br />
&nbsp; minimumOffset: function(){<br />
&nbsp; &nbsp; return(this.isVertical() ? this.alignY : this.alignX);<br />
&nbsp; },<br />
&nbsp; maximumOffset: function(){<br />
&nbsp; &nbsp; return(this.isVertical() ? <br />
&nbsp; &nbsp; &nbsp; (this.track.offsetHeight != 0 ? this.track.offsetHeight :<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.track.style.height.replace(/px$/,&quot;&quot;)) - this.alignY : <br />
&nbsp; &nbsp; &nbsp; (this.track.offsetWidth != 0 ? this.track.offsetWidth : <br />
&nbsp; &nbsp; &nbsp; &nbsp; this.track.style.width.replace(/px$/,&quot;&quot;)) - this.alignY);<br />
&nbsp; },&nbsp; <br />
&nbsp; isVertical:&nbsp; function(){<br />
&nbsp; &nbsp; return (this.axis == 'vertical');<br />
&nbsp; },<br />
&nbsp; drawSpans: function() {<br />
&nbsp; &nbsp; var slider = this;<br />
&nbsp; &nbsp; if(this.spans)<br />
&nbsp; &nbsp; &nbsp; $R(0, this.spans.length-1).each(function(r) { slider.setSpan(slider.spans&#91;r&#93;, slider.getRange(r)) });<br />
&nbsp; &nbsp; if(this.options.startSpan)<br />
&nbsp; &nbsp; &nbsp; this.setSpan(this.options.startSpan,<br />
&nbsp; &nbsp; &nbsp; &nbsp; $R(0, this.values.length&gt;1 ? this.getRange(0).min() : this.value ));<br />
&nbsp; &nbsp; if(this.options.endSpan)<br />
&nbsp; &nbsp; &nbsp; this.setSpan(this.options.endSpan, <br />
&nbsp; &nbsp; &nbsp; &nbsp; $R(this.values.length&gt;1 ? this.getRange(this.spans.length-1).max() : this.value, this.maximum));<br />
&nbsp; },<br />
&nbsp; setSpan: function(span, range) {<br />
&nbsp; &nbsp; if(this.isVertical()) {<br />
&nbsp; &nbsp; &nbsp; span.style.top = this.translateToPx(range.start);<br />
&nbsp; &nbsp; &nbsp; span.style.height = this.translateToPx(range.end - range.start + this.range.start);<br />
&nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &nbsp; span.style.left = this.translateToPx(range.start);<br />
&nbsp; &nbsp; &nbsp; span.style.width = this.translateToPx(range.end - range.start + this.range.start);<br />
&nbsp; &nbsp; }<br />
&nbsp; },<br />
&nbsp; updateStyles: function() {<br />
&nbsp; &nbsp; this.handles.each( function(h){ Element.removeClassName(h, 'selected') });<br />
&nbsp; &nbsp; Element.addClassName(this.activeHandle, 'selected');<br />
&nbsp; },<br />
&nbsp; startDrag: function(event) {<br />
&nbsp; &nbsp; if(Event.isLeftClick(event)) {<br />
&nbsp; &nbsp; &nbsp; if(!this.disabled){<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.active = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; var handle = Event.element(event);<br />
&nbsp; &nbsp; &nbsp; &nbsp; var pointer&nbsp; = &#91;Event.pointerX(event), Event.pointerY(event)&#93;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var track = handle;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(track==this.track) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var offsets&nbsp; = Position.cumulativeOffset(this.track); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.event = event;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.setValue(this.translateToValue( <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  (this.isVertical() ? pointer&#91;1&#93;-offsets&#91;1&#93; : pointer&#91;0&#93;-offsets&#91;0&#93;)-(this.handleLength/2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var offsets&nbsp; = Position.cumulativeOffset(this.activeHandle);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.offsetX = (pointer&#91;0&#93; - offsets&#91;0&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.offsetY = (pointer&#91;1&#93; - offsets&#91;1&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // find the handle (prevents issues with Safari)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while((this.handles.indexOf(handle) == -1) &amp;&amp; handle.parentNode) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; handle = handle.parentNode;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(this.handles.indexOf(handle)!=-1) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.activeHandle&nbsp; &nbsp; = handle;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.activeHandleIdx = this.handles.indexOf(this.activeHandle);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.updateStyles();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var offsets&nbsp; = Position.cumulativeOffset(this.activeHandle);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.offsetX = (pointer&#91;0&#93; - offsets&#91;0&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.offsetY = (pointer&#91;1&#93; - offsets&#91;1&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; Event.stop(event);<br />
&nbsp; &nbsp; }<br />
&nbsp; },<br />
&nbsp; update: function(event) {<br />
&nbsp;  if(this.active) {<br />
&nbsp; &nbsp; &nbsp; if(!this.dragging) this.dragging = true;<br />
&nbsp; &nbsp; &nbsp; this.draw(event);<br />
&nbsp; &nbsp; &nbsp; // fix AppleWebKit rendering<br />
&nbsp; &nbsp; &nbsp; if(navigator.appVersion.indexOf('AppleWebKit')&gt;0) window.scrollBy(0,0);<br />
&nbsp; &nbsp; &nbsp; Event.stop(event);<br />
&nbsp;  }<br />
&nbsp; },<br />
&nbsp; draw: function(event) {<br />
&nbsp; &nbsp; var pointer = &#91;Event.pointerX(event), Event.pointerY(event)&#93;;<br />
&nbsp; &nbsp; var offsets = Position.cumulativeOffset(this.track);<br />
&nbsp; &nbsp; pointer&#91;0&#93; -= this.offsetX + offsets&#91;0&#93;;<br />
&nbsp; &nbsp; pointer&#91;1&#93; -= this.offsetY + offsets&#91;1&#93;;<br />
&nbsp; &nbsp; this.event = event;<br />
&nbsp; &nbsp; this.setValue(this.translateToValue( this.isVertical() ? pointer&#91;1&#93; : pointer&#91;0&#93; ));<br />
&nbsp; &nbsp; if(this.initialized &amp;&amp; this.options.onSlide)<br />
&nbsp; &nbsp; &nbsp; this.options.onSlide(this.values.length&gt;1 ? this.values : this.value, this);<br />
&nbsp; },<br />
&nbsp; endDrag: function(event) {<br />
&nbsp; &nbsp; if(this.active &amp;&amp; this.dragging) {<br />
&nbsp; &nbsp; &nbsp; this.finishDrag(event, true);<br />
&nbsp; &nbsp; &nbsp; Event.stop(event);<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; this.active = false;<br />
&nbsp; &nbsp; this.dragging = false;<br />
&nbsp; },&nbsp; <br />
&nbsp; finishDrag: function(event, success) {<br />
&nbsp; &nbsp; this.active = false;<br />
&nbsp; &nbsp; this.dragging = false;<br />
&nbsp; &nbsp; this.updateFinished();<br />
&nbsp; },<br />
&nbsp; updateFinished: function() {<br />
&nbsp; &nbsp; if(this.initialized &amp;&amp; this.options.onChange) <br />
&nbsp; &nbsp; &nbsp; this.options.onChange(this.values.length&gt;1 ? this.values : this.value, this);<br />
&nbsp; &nbsp; this.event = null;<br />
&nbsp; }<br />
}</code><hr />
</div> Vielen Dank! :)</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/javascript-ajax/"><![CDATA[Javascript & Ajax]]></category>
			<dc:creator>uran</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/javascript-ajax/365945-2-handle-slider-scriptaculous.html</guid>
		</item>
		<item>
			<title><![CDATA[[Ajax] POST-Variable enthält undefined, Script-Teil enthält richtigen Wert]]></title>
			<link>http://www.tutorials.de/javascript-ajax/365935-ajax-post-variable-enthaelt-undefined-script-teil-enthaelt-richtigen-wert.html</link>
			<pubDate>Sun, 05 Sep 2010 19:36:32 GMT</pubDate>
			<description><![CDATA[Hallo zusammen, 
 
meine ersten Anfänge in Ajax, also bidde nicht beschweren. Habe versucht eine AutoSuggest-Box umzufriemeln, um wie z.B. bei Youtube bei klick auf ein Listenelement die URL direkt aufzurufen. Mein Problem ist folgendes: Die Funktion "fill(string)" wird aufgerufen, der erste Befehl...]]></description>
			<content:encoded><![CDATA[<div>Hallo zusammen,<br />
<br />
meine ersten Anfänge in Ajax, also bidde nicht beschweren. Habe versucht eine AutoSuggest-Box umzufriemeln, um wie z.B. bei Youtube bei klick auf ein Listenelement die URL direkt aufzurufen. Mein Problem ist folgendes: Die Funktion &quot;fill(string)&quot; wird aufgerufen, der erste Befehl &quot;$('#country').val(thisValue);&quot; auch korrekt ausgeführt. Enthaltener Wert (z.B. &quot;Shrek 2&quot;) wird auch in die Textbox (id: country) übertragen. Nur bei der Übergabe von thisValue an die redirect.php hapert es ein bisschen. Es wird nur &quot;undefined&quot; übergeben, obwohl thisValue ja eigentlich &quot;Shrek 2&quot; enthält. Wo ist mein Problem?<br />
<br />
Danke im Voraus!<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="bbcode_code_highlight"><pre>function fill(thisValue) {
&nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; $('#country').val(thisValue); &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; $.post(&quot;redirect.php&quot;, {queryString: &quot;&quot;+thisValue+&quot;&quot;}, function(data){
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(data.length &gt;0) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; window.location.href= data; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });
&nbsp; &nbsp; &nbsp; &nbsp; setTimeout(&quot;$('#suggestions').fadeOut();&quot;, 300);
&nbsp; &nbsp; }</pre></td></tr></tbody></table></code><hr />
</div> </div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/javascript-ajax/"><![CDATA[Javascript & Ajax]]></category>
			<dc:creator>WorldRacer</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/javascript-ajax/365935-ajax-post-variable-enthaelt-undefined-script-teil-enthaelt-richtigen-wert.html</guid>
		</item>
		<item>
			<title>externes CSS via Javascript auswählen</title>
			<link>http://www.tutorials.de/javascript-ajax/365914-externes-css-via-javascript-auswaehlen.html</link>
			<pubDate>Sat, 04 Sep 2010 19:59:17 GMT</pubDate>
			<description>Hallo, 
 
ich brauche eure Hilfe, bin leider nicht so sattelfest in JS und probiere schon länger herum... 
 
Ich habe eine Seite die auf XHTML basiert und ich möchte dass je nach belieben die Seite grafisch via CSS verändert. Leider? muss ich diesesmal auf Javascript zurück greifen - habe so etwas...</description>
			<content:encoded><![CDATA[<div>Hallo,<br />
<br />
ich brauche eure Hilfe, bin leider nicht so sattelfest in JS und probiere schon länger herum...<br />
<br />
Ich habe eine Seite die auf XHTML basiert und ich möchte dass je nach belieben die Seite grafisch via CSS verändert. Leider? muss ich diesesmal auf Javascript zurück greifen - habe so etwas immer mit php gelöst...<br />
<br />
Kennt jemand von euch ein smartes Script, welches ich für dieses vorhaben verwenden kann?<br />
Ich dachte an so etwas wie hol dir den wert von dem Button und trage diesen in die linkangabe vom CSS ein - nur kann ich das nicht als JS formulieren ;)<br />
<br />
Meine idee also:<br />
2 CSS - Dateien<br />
und ein kurzes script das mal auf das eine und mal auf das andere per click schaltet...<br />
<br />
ich hoffe ihr könnt mir weiter helfen.<br />
<br />
danke und lg</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/javascript-ajax/"><![CDATA[Javascript & Ajax]]></category>
			<dc:creator>drabbit</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/javascript-ajax/365914-externes-css-via-javascript-auswaehlen.html</guid>
		</item>
	</channel>
</rss>
