<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[devshare.de - erstes script geht nicht]]></title>
		<link>http://devshare.de/topic/41335/erstes-script-geht-nicht/</link>
		<description><![CDATA[Die neusten Beiträge in erstes script geht nicht.]]></description>
		<lastBuildDate>Sun, 20 Aug 2006 12:28:42 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: erstes script geht nicht]]></title>
			<link>http://devshare.de/post/46514/#p46514</link>
			<description><![CDATA[<p>Hi Superheld ;o)</p><p>Ich hab mal Dein Skript ausprobiert .. es funktioniert einwandfrei? Was klappt den bei Dir nicht, bzw. welchen Fehler bekommst Du?</p>]]></description>
			<author><![CDATA[dummy@example.com (j|g)]]></author>
			<pubDate>Sun, 20 Aug 2006 12:28:42 +0000</pubDate>
			<guid>http://devshare.de/post/46514/#p46514</guid>
		</item>
		<item>
			<title><![CDATA[erstes script geht nicht]]></title>
			<link>http://devshare.de/post/46508/#p46508</link>
			<description><![CDATA[<p>hallo</p><p>um mal zu probieren, wie ajax so ist, habe ich mir vor kurzem von einer webseite ein script kopiert und getestet. allerdings geht es nicht. jetzt frage ich mich, was ich falsch mache. müssen einstellungen am server berücksichtigt werden? oder habe ich was anderes falsch gemacht? hier mal der code:</p><p>start:<br />&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;</p><p>function createRequestObject() {<br />&nbsp; &nbsp; var ro;<br />&nbsp; &nbsp; var browser = navigator.appName;<br />&nbsp; &nbsp; if(browser == &quot;Microsoft Internet Explorer&quot;){<br />&nbsp; &nbsp; &nbsp; &nbsp; ro = new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);<br />&nbsp; &nbsp; }else{<br />&nbsp; &nbsp; &nbsp; &nbsp; ro = new XMLHttpRequest();<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; return ro;<br />}</p><p>var http = createRequestObject();</p><p>function sndReq(action) {<br />&nbsp; &nbsp; http.open(&#039;get&#039;, &#039;ajax_01_serverscript.php?action=&#039;+action);<br />&nbsp; &nbsp; http.onreadystatechange = handleResponse;<br />&nbsp; &nbsp; http.send(null);<br />}</p><p>function handleResponse() {<br />&nbsp; &nbsp; if(http.readyState == 4){<br />&nbsp; &nbsp; &nbsp; &nbsp; var response = http.responseText;<br />&nbsp; &nbsp; &nbsp; &nbsp; var update = new Array();</p><p>&nbsp; &nbsp; &nbsp; &nbsp; if(response.indexOf(&#039;|&#039; != -1)) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; update = response.split(&#039;|&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById(update[0]).innerHTML = update[1];<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }<br />}</p><br /><p>&lt;/script&gt;<br />&lt;a href=&quot;javascript:sndReq(&#039;foo&#039;)&quot;&gt;[foo]&lt;/a&gt;<br />&lt;div id=&quot;foo&quot;&gt;<br />&lt;/div&gt;</p><br /><br /><br /><br /><br /><br /><br /><p>server:<br />&lt;script&gt;</p><p>switch($_REQUEST[&#039;action&#039;]) {<br />&nbsp; &nbsp; case &#039;foo&#039;:<br />&nbsp; &nbsp; &nbsp; echo &quot;foo|foo done&quot;;<br />&nbsp; &nbsp; &nbsp; break;<br />}</p><p>&lt;/script&gt;</p><p>so schwer kann es ja nicht sein <img src="http://devshare.de/img/smilies/smile.png" width="15" height="15" alt="smile" /> was sagt ihr dazu. muss gehen oder geht nicht...?</p>]]></description>
			<author><![CDATA[dummy@example.com (superheld)]]></author>
			<pubDate>Fri, 18 Aug 2006 15:09:58 +0000</pubDate>
			<guid>http://devshare.de/post/46508/#p46508</guid>
		</item>
	</channel>
</rss>

