<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Creating a chat script with PHP and Ajax, Part 1</title>
	<link>http://phpit.net/article/creating-chat-script-ajax-php-part1/</link>
	<description>PHPit has dozens of PHP articles, codesnippets and FAQ's.</description>
	<pubDate>Mon, 12 May 2008 03:39:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>

	<item>
		<title>by: xilin</title>
		<link>http://phpit.net/article/creating-chat-script-ajax-php-part1/#comment-3773</link>
		<pubDate>Sat, 17 Jun 2006 02:21:12 +0000</pubDate>
		<guid>http://phpit.net/article/creating-chat-script-ajax-php-part1/#comment-3773</guid>
					<description>There is a way to slove this problem:
add this function in script.js:
String.prototype.trim = function()
{
   return this.replace(/(^\s+)&#124;\s+$/g,"");
 }
and then change :	var response = request.responseText;
use:var response = request.responseText.trim(); it will work;

sorry about my english</description>
		<content:encoded><![CDATA[<p>There is a way to slove this problem:<br />
add this function in script.js:<br />
String.prototype.trim = function()<br />
{<br />
   return this.replace(/(^\s+)|\s+$/g,&#8221;");<br />
 }<br />
and then change :	var response = request.responseText;<br />
use:var response = request.responseText.trim(); it will work;</p>
<p>sorry about my english
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: WoOzY</title>
		<link>http://phpit.net/article/creating-chat-script-ajax-php-part1/#comment-1388</link>
		<pubDate>Tue, 25 Apr 2006 20:34:19 +0000</pubDate>
		<guid>http://phpit.net/article/creating-chat-script-ajax-php-part1/#comment-1388</guid>
					<description>lol, just finished translating part 1 into chinese and posted on my blog (of course i saved your original info. what am i, a pirate? no seriously, if you have any problem with this, i'll stop, or i'll continue translating your goodies :)</description>
		<content:encoded><![CDATA[<p>lol, just finished translating part 1 into chinese and posted on my blog (of course i saved your original info. what am i, a pirate? no seriously, if you have any problem with this, i&#8217;ll stop, or i&#8217;ll continue translating your goodies :)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: :v:revolution - web:v:]中文[: &#187; 用PHP和Ajax技术构建实时聊天系统（一）</title>
		<link>http://phpit.net/article/creating-chat-script-ajax-php-part1/#comment-1387</link>
		<pubDate>Tue, 25 Apr 2006 20:32:40 +0000</pubDate>
		<guid>http://phpit.net/article/creating-chat-script-ajax-php-part1/#comment-1387</guid>
					<description>[...] April 26, 2006 at 4:15 am &#183; Filed under PHP, 文献翻译   &#23436;&#25972;&#26174;&#31034; &#160; 1 2 3 4 5 原文地址 作者：Dennis Pallett 译者：!oEL [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] April 26, 2006 at 4:15 am &#183; Filed under PHP, 文献翻译   &#23436;&#25972;&#26174;&#31034; &nbsp; 1 2 3 4 5 原文地址 作者：Dennis Pallett 译者：!oEL [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jorge Rubiano</title>
		<link>http://phpit.net/article/creating-chat-script-ajax-php-part1/#comment-1090</link>
		<pubDate>Tue, 11 Apr 2006 14:08:50 +0000</pubDate>
		<guid>http://phpit.net/article/creating-chat-script-ajax-php-part1/#comment-1090</guid>
					<description>Very good chat, in addition the code is very easy to understand, speaks and writes in Spanish, reason why I use carácteres special in my writing, which does not accept.  Felecitaciones to the developer of this application, that is very useful for the people who we are beginning in this technique of development Web (Ajax).</description>
		<content:encoded><![CDATA[<p>Very good chat, in addition the code is very easy to understand, speaks and writes in Spanish, reason why I use carácteres special in my writing, which does not accept.  Felecitaciones to the developer of this application, that is very useful for the people who we are beginning in this technique of development Web (Ajax).
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Cypheros</title>
		<link>http://phpit.net/article/creating-chat-script-ajax-php-part1/#comment-1039</link>
		<pubDate>Fri, 07 Apr 2006 20:27:47 +0000</pubDate>
		<guid>http://phpit.net/article/creating-chat-script-ajax-php-part1/#comment-1039</guid>
					<description>Matthieu, where exactly did you invoke the trim() function.  I've toyed with it all over the place, and either NO text shows up, or I keep getting the error...</description>
		<content:encoded><![CDATA[<p>Matthieu, where exactly did you invoke the trim() function.  I&#8217;ve toyed with it all over the place, and either NO text shows up, or I keep getting the error&#8230;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: AjaxBlog.it &#187; Creare una chat con PHP ed Ajax</title>
		<link>http://phpit.net/article/creating-chat-script-ajax-php-part1/#comment-1010</link>
		<pubDate>Tue, 04 Apr 2006 00:46:53 +0000</pubDate>
		<guid>http://phpit.net/article/creating-chat-script-ajax-php-part1/#comment-1010</guid>
					<description>[...] Tra le moltissime letture, mi ero dimenticato di far presente del primo di una serie di articoli dedicati alla creazione di una chat  utilizzando il linguaggio di programmazione PHP ed ovviamente Ajax. Be&#8217;, lo faccio ora insieme all&#8217;annuncio dell&#8217;uscita della seconda parte. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Tra le moltissime letture, mi ero dimenticato di far presente del primo di una serie di articoli dedicati alla creazione di una chat  utilizzando il linguaggio di programmazione PHP ed ovviamente Ajax. Be&#8217;, lo faccio ora insieme all&#8217;annuncio dell&#8217;uscita della seconda parte. [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: nickp</title>
		<link>http://phpit.net/article/creating-chat-script-ajax-php-part1/#comment-861</link>
		<pubDate>Tue, 21 Mar 2006 17:06:25 +0000</pubDate>
		<guid>http://phpit.net/article/creating-chat-script-ajax-php-part1/#comment-861</guid>
					<description>Thanks for the great lesson. I'm just starting to do some server administration, setting up php and mysql, and I found this a great way to A) test my installations and B) get to know basic php and mysql and the basics of AJAX techniques. Thanks a lot and I hope the second edition of this tutorial comes out soon!</description>
		<content:encoded><![CDATA[<p>Thanks for the great lesson. I&#8217;m just starting to do some server administration, setting up php and mysql, and I found this a great way to A) test my installations and B) get to know basic php and mysql and the basics of AJAX techniques. Thanks a lot and I hope the second edition of this tutorial comes out soon!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Rock</title>
		<link>http://phpit.net/article/creating-chat-script-ajax-php-part1/#comment-755</link>
		<pubDate>Thu, 16 Mar 2006 11:40:58 +0000</pubDate>
		<guid>http://phpit.net/article/creating-chat-script-ajax-php-part1/#comment-755</guid>
					<description>Yeah, this is a very gud script i've come across. Dont care about nobody. NOBODY is a shit creature in this world. Is this script working fine with u all. I haven't checked yet. Got impressed with this n replied right back.</description>
		<content:encoded><![CDATA[<p>Yeah, this is a very gud script i&#8217;ve come across. Dont care about nobody. NOBODY is a shit creature in this world. Is this script working fine with u all. I haven&#8217;t checked yet. Got impressed with this n replied right back.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: spadgos</title>
		<link>http://phpit.net/article/creating-chat-script-ajax-php-part1/#comment-669</link>
		<pubDate>Mon, 06 Mar 2006 04:00:31 +0000</pubDate>
		<guid>http://phpit.net/article/creating-chat-script-ajax-php-part1/#comment-669</guid>
					<description>yeh there are some bugs. i left it a little while and then something i typed came up in duplicate, then this came up. need some better error checking.

HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd": 
</description>
		<content:encoded><![CDATA[<p>yeh there are some bugs. i left it a little while and then something i typed came up in duplicate, then this came up. need some better error checking.</p>
<p>HTML PUBLIC &#8220;-//W3C//DTD HTML 4.01 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/html4/loose.dtd&#8221;:
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Matthieu</title>
		<link>http://phpit.net/article/creating-chat-script-ajax-php-part1/#comment-566</link>
		<pubDate>Thu, 09 Feb 2006 15:43:33 +0000</pubDate>
		<guid>http://phpit.net/article/creating-chat-script-ajax-php-part1/#comment-566</guid>
					<description>Hi,
I have the same problem like Yen, but i have another solution.
I've seen that there is a white-space in the first position of the return of Ajax in the function "handle_response"...
so, if i apply the function "trim" to the response, it will works, and i don't have to change the code like Yen.
Sorry for my english but i'm french.
thanks a lot
Matthieu</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have the same problem like Yen, but i have another solution.<br />
I&#8217;ve seen that there is a white-space in the first position of the return of Ajax in the function &#8220;handle_response&#8221;&#8230;<br />
so, if i apply the function &#8220;trim&#8221; to the response, it will works, and i don&#8217;t have to change the code like Yen.<br />
Sorry for my english but i&#8217;m french.<br />
thanks a lot<br />
Matthieu
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
