<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ladysign Dev Blog &#187; java servlets</title>
	<atom:link href="http://www.ladysign-apps.com/blog/tag/java-servlets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ladysign-apps.com/blog</link>
	<description>Girls can code.</description>
	<lastBuildDate>Mon, 12 Dec 2011 16:58:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Invoke Java servlet with YUI</title>
		<link>http://www.ladysign-apps.com/blog/code/javascript/invoke-java-servlet-with-yui/</link>
		<comments>http://www.ladysign-apps.com/blog/code/javascript/invoke-java-servlet-with-yui/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 12:20:23 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[YUI Library]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java servlets]]></category>
		<category><![CDATA[Javascript Frameworks]]></category>
		<category><![CDATA[post data]]></category>
		<category><![CDATA[yui]]></category>

		<guid isPermaLink="false">http://ladysign-apps.com/blog/?p=837</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 2 out of 5 stars<br />
In one of my previous post I showed you <a href="http://ladysign-apps.com/blog/archives/830"> how to invoke a Java servlet with Ajax/Javascript</a>.<br />
Now I will show you the same [......]</p><p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/javascript/invoke-java-servlet-with-yui/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 2 out of 5 stars<br />
In one of my previous post I showed you <a href="http://ladysign-apps.com/blog/archives/830"> how to invoke a Java servlet with Ajax/Javascript</a>.<br />
Now I will show you the same example with the use of Yahoo UI Library (YUI Library).</p>
<p>Make sure you implement the yahoo and connection libraries.<br />
You can download these from the YUI developer network.</p>
<pre class="brush: xml; title: ;">&lt;script type=&quot;text/javascript&quot; src=&quot;static/js/yui/yahoo-min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;static/js/yui/connection-min.js&quot;&gt;&lt;/script&gt;</pre>
<p>The script:</p>
<pre class="brush: jscript; title: ;">&lt;script type=&quot;text/javascript&quot;&gt;
      var request;
      function doSomeRequest(servletName, servletArguments){
          var arg = &quot;myParam=&quot; + getPopupContent(servletArguments).replace(/[\n\r\%]/g,''); //I replaced linebreaks and % which breaks requests.
          YAHOO.util.Connect.asyncRequest('POST', servletName, callback, arg); //note the arg is only for POST methods
          	var callback =
			{
			  success: function(o) {
			  	//do something with the response
			  },
			  failure: function(o) {
			  	//do something with the error
			  }
			}
		}
&lt;/script&gt;</pre>
<p><a href="http://developer.yahoo.com/yui/connection/">Download the files or see more examples on YUI Developer network.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/javascript/invoke-java-servlet-with-yui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

