<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.12-alpha" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Simple AJAX (with JSON) Chat Application for ASP 3.0</title>
	<link>http://www.lshift.net/blog/2005/10/11/simple-ajax-with-json-chat-application-for-asp-30</link>
	<description>What happens at LShift</description>
	<pubDate>Wed, 07 Jan 2009 04:17:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.12-alpha</generator>

	<item>
		<title>by: Lisandro Puzzolo</title>
		<link>http://www.lshift.net/blog/2005/10/11/simple-ajax-with-json-chat-application-for-asp-30#comment-8682</link>
		<pubDate>Thu, 24 Aug 2006 21:50:42 +0000</pubDate>
		<guid>http://www.lshift.net/blog/2005/10/11/simple-ajax-with-json-chat-application-for-asp-30#comment-8682</guid>
					<description>&lt;p&gt;Hi Tony! 
I was searching on the web if there was someone else working on JSON-RPC and ASP3.0 and it was a nice sourprice to find your site.&lt;/p&gt;

&lt;p&gt;I've been developing a proxy to make function calls from the browser to the web server (also Asp3 with javascript). The main difference between yours and mine, is that I implemented an object that lets you export almost every function, or object from the server to the client. &lt;/p&gt;

&lt;p&gt;For example, if you have on the server this object:&lt;/p&gt;

&lt;p&gt;var DB = {
   execute: function (sql) {
      return myCn.execute(sql);
   }
}&lt;/p&gt;

&lt;p&gt;function foo(bar){
   return bar;
}&lt;/p&gt;

&lt;p&gt;you may then write this:&lt;/p&gt;

&lt;p&gt;json&lt;em&gt;bridge.registerObject("DB",DB);
json&lt;/em&gt;bridge.registerObject("foo",foo);&lt;/p&gt;

&lt;p&gt;and then objects/functions are exposed to the client.
Then from the client I can call them this way:&lt;/p&gt;

&lt;p&gt;serviceProxy.DB.execute("SELECT * FROM tUsers");&lt;/p&gt;

&lt;p&gt;serviceProxy.foo ("hello world" , {onComplete:function(result) {alert(result) }} );&lt;/p&gt;

&lt;p&gt;It allows me to call the functions syncronously (like the first example) or asyncronously (like the second one) , stop the calls, or allow one call per function, cache the results ( in a Response.expires similar way) , transform recordset results to JSON results, etc.&lt;/p&gt;

&lt;p&gt;I'm developing it as long as I need functionalities, so I didn't make any manual or demos. I'm using it on my current projects. ..But If you are interested I could manage some way to show you some examples.&lt;/p&gt;

&lt;p&gt;Best regards (and sorry for my bad english)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Tony!<br />
I was searching on the web if there was someone else working on JSON-RPC and ASP3.0 and it was a nice sourprice to find your site.</p>
<p>I&#8217;ve been developing a proxy to make function calls from the browser to the web server (also Asp3 with javascript). The main difference between yours and mine, is that I implemented an object that lets you export almost every function, or object from the server to the client. </p>
<p>For example, if you have on the server this object:</p>
<p>var DB = {<br />
   execute: function (sql) {<br />
      return myCn.execute(sql);<br />
   }<br />
}</p>
<p>function foo(bar){<br />
   return bar;<br />
}</p>
<p>you may then write this:</p>
<p>json<em>bridge.registerObject(&#8221;DB&#8221;,DB);<br />
json</em>bridge.registerObject(&#8221;foo&#8221;,foo);</p>
<p>and then objects/functions are exposed to the client.<br />
Then from the client I can call them this way:</p>
<p>serviceProxy.DB.execute(&#8221;SELECT * FROM tUsers&#8221;);</p>
<p>serviceProxy.foo (&#8221;hello world&#8221; , {onComplete:function(result) {alert(result) }} );</p>
<p>It allows me to call the functions syncronously (like the first example) or asyncronously (like the second one) , stop the calls, or allow one call per function, cache the results ( in a Response.expires similar way) , transform recordset results to JSON results, etc.</p>
<p>I&#8217;m developing it as long as I need functionalities, so I didn&#8217;t make any manual or demos. I&#8217;m using it on my current projects. ..But If you are interested I could manage some way to show you some examples.</p>
<p>Best regards (and sorry for my bad english)</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: tonyg</title>
		<link>http://www.lshift.net/blog/2005/10/11/simple-ajax-with-json-chat-application-for-asp-30#comment-299</link>
		<pubDate>Wed, 18 Jan 2006 12:55:11 +0000</pubDate>
		<guid>http://www.lshift.net/blog/2005/10/11/simple-ajax-with-json-chat-application-for-asp-30#comment-299</guid>
					<description>&lt;p&gt;Yes, it's a StoppablePeriodicalExecuter (see the bottom of &lt;a href="http://www.lshift.net/~tonyg/twd-example/js/ajaj.js" rel="nofollow"&gt;ajaj.js&lt;/a&gt;), which is based on prototype.js's PeriodicalExecuter, with the addition of a means of interrupting the otherwise endless timer loop.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Yes, it&#8217;s a StoppablePeriodicalExecuter (see the bottom of <a href="http://www.lshift.net/~tonyg/twd-example/js/ajaj.js" rel="nofollow">ajaj.js</a>), which is based on prototype.js&#8217;s PeriodicalExecuter, with the addition of a means of interrupting the otherwise endless timer loop.</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Mark Chipman</title>
		<link>http://www.lshift.net/blog/2005/10/11/simple-ajax-with-json-chat-application-for-asp-30#comment-298</link>
		<pubDate>Sun, 15 Jan 2006 07:25:21 +0000</pubDate>
		<guid>http://www.lshift.net/blog/2005/10/11/simple-ajax-with-json-chat-application-for-asp-30#comment-298</guid>
					<description>&lt;p&gt;Interesting... I'm playing with it now.  I like the fact that it uses JSON and XMLHTTPRequest.  &lt;/p&gt;

&lt;p&gt;I'm currently investigating the best ways to create a chat app like you've done here using JSON and AJAX... however, I'm planning on a bit more functionality.  Some things that I'm planning on using may include AFLAX (www.aflax.org) and Taconite libraries (find it at Sourceforge).  For fluff, I'm going to use moo.fx (http://moofx.mad4milk.net/tests.html) with scriptaculous as well.&lt;/p&gt;

&lt;p&gt;A few things that I think are interesting but not workable for me are the use of a single file as the database... however, when someone new logs in, they shouldn't be able to see all the prior conversations... however, the old ones "could" easily be jammed into an array quickly, sorted, and removed (filtered) from the array prior to sending off the the client.  By doing so, it could be possible to even make "private" conversations only shown to the recipients.... now that would be very clever.&lt;/p&gt;

&lt;p&gt;BTW, what method are you using for pulling the data?... is it merely a timer checking every few seconds?&lt;/p&gt;

&lt;p&gt;Again, you've done an interesting and unique project here.  Feel free to ask me anything you want for feedback.&lt;/p&gt;

&lt;p&gt;-Mark Chipman&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Interesting&#8230; I&#8217;m playing with it now.  I like the fact that it uses JSON and XMLHTTPRequest.  </p>
<p>I&#8217;m currently investigating the best ways to create a chat app like you&#8217;ve done here using JSON and AJAX&#8230; however, I&#8217;m planning on a bit more functionality.  Some things that I&#8217;m planning on using may include AFLAX (www.aflax.org) and Taconite libraries (find it at Sourceforge).  For fluff, I&#8217;m going to use moo.fx (http://moofx.mad4milk.net/tests.html) with scriptaculous as well.</p>
<p>A few things that I think are interesting but not workable for me are the use of a single file as the database&#8230; however, when someone new logs in, they shouldn&#8217;t be able to see all the prior conversations&#8230; however, the old ones &#8220;could&#8221; easily be jammed into an array quickly, sorted, and removed (filtered) from the array prior to sending off the the client.  By doing so, it could be possible to even make &#8220;private&#8221; conversations only shown to the recipients&#8230;. now that would be very clever.</p>
<p>BTW, what method are you using for pulling the data?&#8230; is it merely a timer checking every few seconds?</p>
<p>Again, you&#8217;ve done an interesting and unique project here.  Feel free to ask me anything you want for feedback.</p>
<p>-Mark Chipman</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: tonyg</title>
		<link>http://www.lshift.net/blog/2005/10/11/simple-ajax-with-json-chat-application-for-asp-30#comment-295</link>
		<pubDate>Fri, 06 Jan 2006 16:45:06 +0000</pubDate>
		<guid>http://www.lshift.net/blog/2005/10/11/simple-ajax-with-json-chat-application-for-asp-30#comment-295</guid>
					<description>&lt;p&gt;I've built a snapshot which you can download from here: http://www.lshift.net/~tonyg/twd-example-20060106.zip&lt;/p&gt;

&lt;p&gt;Cheers,
  Tony&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;ve built a snapshot which you can download from here: http://www.lshift.net/~tonyg/twd-example-20060106.zip</p>
<p>Cheers,<br />
  Tony</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: kais</title>
		<link>http://www.lshift.net/blog/2005/10/11/simple-ajax-with-json-chat-application-for-asp-30#comment-259</link>
		<pubDate>Tue, 20 Dec 2005 21:18:17 +0000</pubDate>
		<guid>http://www.lshift.net/blog/2005/10/11/simple-ajax-with-json-chat-application-for-asp-30#comment-259</guid>
					<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I want to look your "Simple AJAX (with JSON) Chat Application for ASP 3.0" ,and i'm looking for a zip of this application.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I want to look your &#8220;Simple AJAX (with JSON) Chat Application for ASP 3.0&#8243; ,and i&#8217;m looking for a zip of this application.</p>
<p>Thanks,</p>
]]></content:encoded>
				</item>
</channel>
</rss>
