<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/1.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Hey, this AJAX thing is pretty easy, after all</title>
	<link>http://jennifergrucza.com/blog/archives/2005/07/29/hey-this-ajax-thing-is-pretty-easy-after-all</link>
	<description>Web Development, Classical Music, Kitties, and whatever else I feel like</description>
	<pubDate>Sat, 22 Nov 2008 06:49:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5</generator>

	<item>
		<title>by: Matthom</title>
		<link>http://jennifergrucza.com/blog/archives/2005/07/29/hey-this-ajax-thing-is-pretty-easy-after-all#comment-1434</link>
		<pubDate>Mon, 01 Aug 2005 11:20:00 -0700</pubDate>
		<guid>http://jennifergrucza.com/blog/archives/2005/07/29/hey-this-ajax-thing-is-pretty-easy-after-all#comment-1434</guid>
					<description>I need to brush up on this, cuz I don't comprehend HALF of what you're explaining here...

I guess I'll &lt;a href=&quot;http://www.sitepoint.com/article/remote-scripting-ajax&quot; title=&quot;Usable Interactivity with Remote Scripting [JavaScript &amp;amp; DHTML Tutorials]&quot;&gt;start here&lt;/a&gt;, and move forward. Then, I'll come back here and see if understand more... :)
</description>
		<content:encoded><![CDATA[	<p>I need to brush up on this, cuz I don&#8217;t comprehend HALF of what you&#8217;re explaining here&#8230;</p>
	<p>I guess I&#8217;ll <a href="http://www.sitepoint.com/article/remote-scripting-ajax" title="Usable Interactivity with Remote Scripting [JavaScript &amp; DHTML Tutorials]">start here</a>, and move forward. Then, I&#8217;ll come back here and see if understand more&#8230; <img src='http://jennifergrucza.com/blog/wp-images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jennifer</title>
		<link>http://jennifergrucza.com/blog/archives/2005/07/29/hey-this-ajax-thing-is-pretty-easy-after-all#comment-1435</link>
		<pubDate>Mon, 01 Aug 2005 12:08:56 -0700</pubDate>
		<guid>http://jennifergrucza.com/blog/archives/2005/07/29/hey-this-ajax-thing-is-pretty-easy-after-all#comment-1435</guid>
					<description>Just looked at that article, and it looks very good and thorough.  

Sorry for being incomprehensible.  :)  The above post is not so much an explanation of AJAX as it is an example of how I've put it to use in my own code.</description>
		<content:encoded><![CDATA[	<p>Just looked at that article, and it looks very good and thorough.  </p>
	<p>Sorry for being incomprehensible.  <img src='http://jennifergrucza.com/blog/wp-images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   The above post is not so much an explanation of AJAX as it is an example of how I&#8217;ve put it to use in my own code.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Steve Eady</title>
		<link>http://jennifergrucza.com/blog/archives/2005/07/29/hey-this-ajax-thing-is-pretty-easy-after-all#comment-1439</link>
		<pubDate>Mon, 08 Aug 2005 12:42:08 -0700</pubDate>
		<guid>http://jennifergrucza.com/blog/archives/2005/07/29/hey-this-ajax-thing-is-pretty-easy-after-all#comment-1439</guid>
					<description>Hey Jennifer.
Quick sidenote: I'm not sure what means you are using to format your code in your blog, but I've downloaded several code formatters for WordPress and very much like &lt;a href=&quot;http://blog.enargi.com/codesnippet/&quot;&gt;this one (Code Snippet)&lt;/a&gt;.  

It has support for 35 different languages, it color codes, creates hyperlinks to online language API's, and is all-around nifty.

Plus, the person who develops it is very friendly.  I reported a small bug to him and he had a new version out within hours.</description>
		<content:encoded><![CDATA[	<p>Hey Jennifer.<br />
Quick sidenote: I&#8217;m not sure what means you are using to format your code in your blog, but I&#8217;ve downloaded several code formatters for WordPress and very much like <a href="http://blog.enargi.com/codesnippet/">this one (Code Snippet)</a>.  </p>
	<p>It has support for 35 different languages, it color codes, creates hyperlinks to online language API&#8217;s, and is all-around nifty.</p>
	<p>Plus, the person who develops it is very friendly.  I reported a small bug to him and he had a new version out within hours.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jennifer</title>
		<link>http://jennifergrucza.com/blog/archives/2005/07/29/hey-this-ajax-thing-is-pretty-easy-after-all#comment-1440</link>
		<pubDate>Mon, 08 Aug 2005 12:52:25 -0700</pubDate>
		<guid>http://jennifergrucza.com/blog/archives/2005/07/29/hey-this-ajax-thing-is-pretty-easy-after-all#comment-1440</guid>
					<description>Hey Steve, thanks for the link - I'll definitely try out that plugin.

The code above is just wrapped in pre tags, nothing fancy.</description>
		<content:encoded><![CDATA[	<p>Hey Steve, thanks for the link - I&#8217;ll definitely try out that plugin.</p>
	<p>The code above is just wrapped in pre tags, nothing fancy.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Shawn</title>
		<link>http://jennifergrucza.com/blog/archives/2005/07/29/hey-this-ajax-thing-is-pretty-easy-after-all#comment-2953</link>
		<pubDate>Wed, 04 Jan 2006 11:10:22 -0800</pubDate>
		<guid>http://jennifergrucza.com/blog/archives/2005/07/29/hey-this-ajax-thing-is-pretty-easy-after-all#comment-2953</guid>
					<description>First of very useful code. I am just beginning using ajax along with the struts and your code has been some of the most beneficial. I do have one question. My experience is primarily on the back end so I am curious what the corresponding HTML looks like that calls 'synchronousPost'. Is this a map such as java uses and if so how do you create that in html. 

Thank you
Shawn</description>
		<content:encoded><![CDATA[	<p>First of very useful code. I am just beginning using ajax along with the struts and your code has been some of the most beneficial. I do have one question. My experience is primarily on the back end so I am curious what the corresponding HTML looks like that calls &#8217;synchronousPost&#8217;. Is this a map such as java uses and if so how do you create that in html. </p>
	<p>Thank you<br />
Shawn
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jennifer</title>
		<link>http://jennifergrucza.com/blog/archives/2005/07/29/hey-this-ajax-thing-is-pretty-easy-after-all#comment-2954</link>
		<pubDate>Wed, 04 Jan 2006 11:51:29 -0800</pubDate>
		<guid>http://jennifergrucza.com/blog/archives/2005/07/29/hey-this-ajax-thing-is-pretty-easy-after-all#comment-2954</guid>
					<description>Hi Shawn, glad to be of help!

To use synchronousPost, you would create an array in javascript.  So, for example, you might have this javascript function in your HTML:

&lt;pre class=&quot;code&quot;&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
   function helloWorld() {
      var parameterMap = new Array();
      parameterMap[&quot;name&quot;] = &quot;Jennifer&quot;;

      var result = synchronousPost(&quot;helloWorld.do&quot;, parameterMap);
      if (result) {
         var output = result.getElementsByTagName(&quot;output&quot;)[0].childNodes[0].nodeValue;
         alert(output);
      } else {
         alert(&quot;There was a problem sending the request to the server&quot;);
      }
   }
&amp;lt;/script&amp;gt;
&lt;/pre&gt;

Then somewhere in your HTML, you could call this function:

&lt;pre class=&quot;code&quot;&gt;&amp;lt;input type=&quot;button&quot; value=&quot;Hello&quot; onclick=&quot;helloWorld()&quot;/&amp;gt;&lt;/pre&gt;

You can see that parsing the result gets a little tricky and verbose with the DOM scripting, but you could also just return a snippet of text or HTML instead of XML, and use the javascript innerHTML property or document.write() method to add the result to your document.</description>
		<content:encoded><![CDATA[	<p>Hi Shawn, glad to be of help!</p>
	<p>To use synchronousPost, you would create an array in javascript.  So, for example, you might have this javascript function in your HTML:</p>
	<pre class="code">&lt;script type="text/javascript"&gt;
   function helloWorld() {
      var parameterMap = new Array();
      parameterMap["name"] = "Jennifer";
	
      var result = synchronousPost("helloWorld.do", parameterMap);
      if (result) {
         var output = result.getElementsByTagName("output")[0].childNodes[0].nodeValue;
         alert(output);
      } else {
         alert("There was a problem sending the request to the server");
      }
   }
&lt;/script&gt;
</pre>
	<p>Then somewhere in your HTML, you could call this function:</p>
	<pre class="code">&lt;input type="button" value="Hello" onclick="helloWorld()"/&gt;</pre>
	<p>You can see that parsing the result gets a little tricky and verbose with the DOM scripting, but you could also just return a snippet of text or HTML instead of XML, and use the javascript innerHTML property or document.write() method to add the result to your document.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Shawn</title>
		<link>http://jennifergrucza.com/blog/archives/2005/07/29/hey-this-ajax-thing-is-pretty-easy-after-all#comment-2959</link>
		<pubDate>Thu, 05 Jan 2006 10:12:03 -0800</pubDate>
		<guid>http://jennifergrucza.com/blog/archives/2005/07/29/hey-this-ajax-thing-is-pretty-easy-after-all#comment-2959</guid>
					<description>This is the part I didn't know you could do: 
parameterMap[&quot;name&quot;] = &quot;Jennifer&quot;;

Thank you.
Shawn

</description>
		<content:encoded><![CDATA[	<p>This is the part I didn&#8217;t know you could do:<br />
parameterMap[&#8221;name&#8221;] = &#8220;Jennifer&#8221;;</p>
	<p>Thank you.<br />
Shawn
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

