<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Тестирование регулярных выражений на PHP с использованием AJAX</title>
	<atom:link href="http://www.simplecoding.org/testirovanie-regulyarnyx-vyrazhenij.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.simplecoding.org/testirovanie-regulyarnyx-vyrazhenij.html</link>
	<description>Блог о программировании</description>
	<lastBuildDate>Sat, 31 Jul 2010 22:06:47 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Englishelp</title>
		<link>http://www.simplecoding.org/testirovanie-regulyarnyx-vyrazhenij.html#comment-5281</link>
		<dc:creator>Englishelp</dc:creator>
		<pubDate>Mon, 13 Jul 2009 17:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/testirovanie-regulyarnyx-vyrazhenij.html#comment-5281</guid>
		<description>…parameters:&quot;sJSON=&quot; + sJSON… тоже не работает</description>
		<content:encoded><![CDATA[<p>…parameters:&#034;sJSON=&#034; + sJSON… тоже не работает</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Владимир</title>
		<link>http://www.simplecoding.org/testirovanie-regulyarnyx-vyrazhenij.html#comment-4801</link>
		<dc:creator>Владимир</dc:creator>
		<pubDate>Tue, 05 May 2009 17:32:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/testirovanie-regulyarnyx-vyrazhenij.html#comment-4801</guid>
		<description>Попробуйте изменить
...parameters:sJSON...
на
...parameters:&quot;sJSON=&quot; + sJSON...

Кстати, есть интересный плагин к jQuery &lt;a href=&quot;http://code.google.com/p/jquery-json/&quot; rel=&quot;nofollow&quot;&gt;jquery-json&lt;/a&gt;. Постараюсь в ближайшее время на эту тему пост написать.</description>
		<content:encoded><![CDATA[<p>Попробуйте изменить<br />
&#8230;parameters:sJSON&#8230;<br />
на<br />
&#8230;parameters:&#034;sJSON=&#034; + sJSON&#8230;</p>
<p>Кстати, есть интересный плагин к jQuery <a href="http://code.google.com/p/jquery-json/" rel="nofollow">jquery-json</a>. Постараюсь в ближайшее время на эту тему пост написать.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Serik</title>
		<link>http://www.simplecoding.org/testirovanie-regulyarnyx-vyrazhenij.html#comment-4798</link>
		<dc:creator>Serik</dc:creator>
		<pubDate>Mon, 04 May 2009 21:40:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/testirovanie-regulyarnyx-vyrazhenij.html#comment-4798</guid>
		<description>У меня вопрос как на стороне сервера принять JSON и обработать его при помощи PHP.

&lt;code&gt;function fun(transport){
     var json = transport.responseText.evalJSON();
     alert(json);
   }


function dataUser() {
//данные
 var oUser = new Object();
        oUser.login = $(&#039;login&#039;).value;
        oUser.pass  = $(&#039;pass&#039;).value;       
 var sJSON = Object.toJSON(oUser);
//отправляем ajax запрос
 new Ajax.Request(&#039;test.php&#039;, {method:&#039;get&#039;, parameters:sJSON, onSuccess: fun});
}	&lt;/code&gt;	

Данные в заросе post выходят:
&lt;code&gt;{&quot;login&quot;: &quot;log123&quot;, &quot;pass&quot;: &quot;123&quot;}&lt;/code&gt;

$_POST[sJSON] - пустой ??? 
Как получить полный ???</description>
		<content:encoded><![CDATA[<p>У меня вопрос как на стороне сервера принять JSON и обработать его при помощи <acronym title="PHP: Hypertext Preprocessor">PHP</acronym>.</p>
<p><code>function fun(transport){<br />
     var json = transport.responseText.evalJSON();<br />
     alert(json);<br />
   }</p>
<p>function dataUser() {<br />
//данные<br />
 var oUser = new Object();<br />
        oUser.login = $('login').value;<br />
        oUser.pass  = $('pass').value;<br />
 var sJSON = Object.toJSON(oUser);<br />
//отправляем ajax запрос<br />
 new Ajax.Request('test.php', {method:'get', parameters:sJSON, onSuccess: fun});<br />
}	</code>	</p>
<p>Данные в заросе post выходят:<br />
<code>{"login": "log123", "pass": "123"}</code></p>
<p>$_POST[sJSON] &#8211; пустой ???<br />
Как получить полный ???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 5gffgh</title>
		<link>http://www.simplecoding.org/testirovanie-regulyarnyx-vyrazhenij.html#comment-1894</link>
		<dc:creator>5gffgh</dc:creator>
		<pubDate>Thu, 24 Jul 2008 19:47:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplecoding.org/testirovanie-regulyarnyx-vyrazhenij.html#comment-1894</guid>
		<description>1</description>
		<content:encoded><![CDATA[<p>1</p>
]]></content:encoded>
	</item>
</channel>
</rss>
