<?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: Writing Your Server-Side Ajax Handler</title>
	<atom:link href="http://borkweb.com/story/a-simple-server-side-ajax-handler/feed" rel="self" type="application/rss+xml" />
	<link>http://borkweb.com/story/a-simple-server-side-ajax-handler</link>
	<description>Some People Are Squirrel Handed.</description>
	<lastBuildDate>Thu, 12 Jan 2012 15:56:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: AaronMC</title>
		<link>http://borkweb.com/story/a-simple-server-side-ajax-handler/comment-page-1#comment-36093</link>
		<dc:creator>AaronMC</dc:creator>
		<pubDate>Mon, 26 Nov 2007 22:51:46 +0000</pubDate>
		<guid isPermaLink="false">http://borkweb.com/story/a-simple-server-side-ajax-handler#comment-36093</guid>
		<description>I also wanted to let you know I am working on a version of this code to get $_POST variables to work as well since HTTP GET has a max header size and will not work for sending larger blobs of data! If anyone has any suggestions please post!</description>
		<content:encoded><![CDATA[<p>I also wanted to let you know I am working on a version of this code to get $_POST variables to work as well since HTTP GET has a max header size and will not work for sending larger blobs of data! If anyone has any suggestions please post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AaronMC</title>
		<link>http://borkweb.com/story/a-simple-server-side-ajax-handler/comment-page-1#comment-36092</link>
		<dc:creator>AaronMC</dc:creator>
		<pubDate>Mon, 26 Nov 2007 22:49:02 +0000</pubDate>
		<guid isPermaLink="false">http://borkweb.com/story/a-simple-server-side-ajax-handler#comment-36092</guid>
		<description>Sorry, I just realized this is equal to your posted Variable Variable Method!</description>
		<content:encoded><![CDATA[<p>Sorry, I just realized this is equal to your posted Variable Variable Method!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AaronMC</title>
		<link>http://borkweb.com/story/a-simple-server-side-ajax-handler/comment-page-1#comment-36091</link>
		<dc:creator>AaronMC</dc:creator>
		<pubDate>Mon, 26 Nov 2007 22:46:26 +0000</pubDate>
		<guid isPermaLink="false">http://borkweb.com/story/a-simple-server-side-ajax-handler#comment-36091</guid>
		<description>I was looking at your code.. its a great idea, however I was wondering why you dissected the $_GET variable in your dynamic handler when you could have simply passed the $_GET array to the ajax function (after unsetting the [&#039;function&#039;] key). ie.

$params = $_GET;
//unset the function index from the params because we just don&#039;t need it there

unset($params[&#039;function&#039;]);
eval($_GET[&#039;function&#039;].&quot;($params);&quot;);

I was just curious because maybe im missing a good reason that I didn&#039;t see. It just seems that you are doing twice the amount of work.</description>
		<content:encoded><![CDATA[<p>I was looking at your code.. its a great idea, however I was wondering why you dissected the $_GET variable in your dynamic handler when you could have simply passed the $_GET array to the ajax function (after unsetting the ['function'] key). ie.</p>
<p>$params = $_GET;<br />
//unset the function index from the params because we just don&#8217;t need it there</p>
<p>unset($params['function']);<br />
eval($_GET['function'].&#8221;($params);&#8221;);</p>
<p>I was just curious because maybe im missing a good reason that I didn&#8217;t see. It just seems that you are doing twice the amount of work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Coble</title>
		<link>http://borkweb.com/story/a-simple-server-side-ajax-handler/comment-page-1#comment-27910</link>
		<dc:creator>Coble</dc:creator>
		<pubDate>Sat, 31 Mar 2007 06:49:57 +0000</pubDate>
		<guid isPermaLink="false">http://borkweb.com/story/a-simple-server-side-ajax-handler#comment-27910</guid>
		<description>I liked this site, it&#039;s neat. Good job! Visit my sites, please:
&lt;a&gt;&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I liked this site, it&#8217;s neat. Good job! Visit my sites, please:<br />
<a></a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hot-asian-babes</title>
		<link>http://borkweb.com/story/a-simple-server-side-ajax-handler/comment-page-1#comment-26870</link>
		<dc:creator>hot-asian-babes</dc:creator>
		<pubDate>Fri, 23 Mar 2007 15:12:05 +0000</pubDate>
		<guid isPermaLink="false">http://borkweb.com/story/a-simple-server-side-ajax-handler#comment-26870</guid>
		<description>Thanks for your great site!</description>
		<content:encoded><![CDATA[<p>Thanks for your great site!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: angelsoft</title>
		<link>http://borkweb.com/story/a-simple-server-side-ajax-handler/comment-page-1#comment-9879</link>
		<dc:creator>angelsoft</dc:creator>
		<pubDate>Fri, 20 Oct 2006 16:47:06 +0000</pubDate>
		<guid isPermaLink="false">http://borkweb.com/story/a-simple-server-side-ajax-handler#comment-9879</guid>
		<description>interesting ajax tips.

www.angelsoft.ph</description>
		<content:encoded><![CDATA[<p>interesting ajax tips.</p>
<p><a href="http://www.angelsoft.ph" rel="nofollow">http://www.angelsoft.ph</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BorkWeb &#187; The Ajax Experience</title>
		<link>http://borkweb.com/story/a-simple-server-side-ajax-handler/comment-page-1#comment-9148</link>
		<dc:creator>BorkWeb &#187; The Ajax Experience</dc:creator>
		<pubDate>Tue, 10 Oct 2006 17:00:39 +0000</pubDate>
		<guid isPermaLink="false">http://borkweb.com/story/a-simple-server-side-ajax-handler#comment-9148</guid>
		<description>[...] MasterWish - a one and a half year old brainchild of a couple of other developers and myself - has been my playground after work hours. I began my experimentation with Ajax using that site, as PSU tended to slap my hand when looking into Ajax at work. Through that experimentation, I began to understand the workings of Ajax and how it would work into the PHP/Templating environment I was so comfortable with. Once I had dug down, I promptly posted my &#8220;Ajax; Templating; and the Separation of Layout and Logic&#8221; article that Ajaxian blogged about, along with the follow-up article. [...]</description>
		<content:encoded><![CDATA[<p>[...] MasterWish &#8211; a one and a half year old brainchild of a couple of other developers and myself &#8211; has been my playground after work hours. I began my experimentation with Ajax using that site, as PSU tended to slap my hand when looking into Ajax at work. Through that experimentation, I began to understand the workings of Ajax and how it would work into the PHP/Templating environment I was so comfortable with. Once I had dug down, I promptly posted my &#8220;Ajax; Templating; and the Separation of Layout and Logic&#8221; article that Ajaxian blogged about, along with the follow-up article. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean</title>
		<link>http://borkweb.com/story/a-simple-server-side-ajax-handler/comment-page-1#comment-8394</link>
		<dc:creator>Jean</dc:creator>
		<pubDate>Wed, 27 Sep 2006 12:40:24 +0000</pubDate>
		<guid isPermaLink="false">http://borkweb.com/story/a-simple-server-side-ajax-handler#comment-8394</guid>
		<description>Good site!
Bye.</description>
		<content:encoded><![CDATA[<p>Good site!<br />
Bye.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nival</title>
		<link>http://borkweb.com/story/a-simple-server-side-ajax-handler/comment-page-1#comment-8212</link>
		<dc:creator>Nival</dc:creator>
		<pubDate>Sun, 24 Sep 2006 11:46:07 +0000</pubDate>
		<guid isPermaLink="false">http://borkweb.com/story/a-simple-server-side-ajax-handler#comment-8212</guid>
		<description>Cool project!</description>
		<content:encoded><![CDATA[<p>Cool project!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://borkweb.com/story/a-simple-server-side-ajax-handler/comment-page-1#comment-3739</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 06 Jul 2006 21:07:27 +0000</pubDate>
		<guid isPermaLink="false">http://borkweb.com/story/a-simple-server-side-ajax-handler#comment-3739</guid>
		<description>this maybe a more modular way to call to seperate classes

$class =$_GET[&#039;class&#039;];
include_once($_SERVER[&#039;DOCUMENT_ROOT&#039;].&quot;/classLib/$class.class.php&quot;);
$obj = new $class();
$methods = get_class_methods($obj);
if (in_array($_GET[&#039;method&#039;], $methods)) {
	$params = $_GET;
	unset($params[&#039;method&#039;]);
	unset($params[&#039;class&#039;]);
	$obj-&gt;$_GET[&#039;method&#039;]($params);
}else{
	die(&#039;Invalid call!&#039;);
}</description>
		<content:encoded><![CDATA[<p>this maybe a more modular way to call to seperate classes</p>
<p>$class =$_GET['class'];<br />
include_once($_SERVER['DOCUMENT_ROOT'].&#8221;/classLib/$class.class.php&#8221;);<br />
$obj = new $class();<br />
$methods = get_class_methods($obj);<br />
if (in_array($_GET['method'], $methods)) {<br />
	$params = $_GET;<br />
	unset($params['method']);<br />
	unset($params['class']);<br />
	$obj-&gt;$_GET['method']($params);<br />
}else{<br />
	die(&#8216;Invalid call!&#8217;);<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

