<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Carlos Guarany - from Toronto</title>
	<atom:link href="http://cguarany.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://cguarany.wordpress.com</link>
	<description>ITC565 - Charles Sturt University - Term 1, 2010</description>
	<lastBuildDate>Sun, 30 May 2010 23:29:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='cguarany.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/e05ef8d595757ca425bdfeb97e602066?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Carlos Guarany - from Toronto</title>
		<link>http://cguarany.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://cguarany.wordpress.com/osd.xml" title="Carlos Guarany - from Toronto" />
	<atom:link rel='hub' href='http://cguarany.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Exercise 16: Conclusion</title>
		<link>http://cguarany.wordpress.com/2010/05/27/exercise-16-conclusion/</link>
		<comments>http://cguarany.wordpress.com/2010/05/27/exercise-16-conclusion/#comments</comments>
		<pubDate>Fri, 28 May 2010 01:16:20 +0000</pubDate>
		<dc:creator>cguarany</dc:creator>
				<category><![CDATA[Conclusion]]></category>
		<category><![CDATA[Exercises]]></category>

		<guid isPermaLink="false">http://cguarany.wordpress.com/?p=283</guid>
		<description><![CDATA[“I learned along the weeks of ITC565 that the WEB is more and more a place of open standards. There is no place for proprietary formats and technology anymore and the vendors have to adapt to new reality. The client side is all about open frameworks and standardized W3C solutions. Microsoft had to embrace jQuery [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cguarany.wordpress.com&amp;blog=12303349&amp;post=283&amp;subd=cguarany&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><em>“I learned along the weeks of ITC565 that the WEB is more and more a place of open standards. There is no place for proprietary formats and technology anymore and the vendors have to adapt to new reality. The client side is all about open frameworks and standardized W3C solutions. Microsoft had to embrace jQuery and this trend will move forward to the middle-tier and backend soon. Even browser’s plug-ins will not be acceptable for handling content. Apple, the one who is setting the rules in the mobile world, already gave Adobe Flash a death sentence.</em></p>
<p><em>In the Line of Business systems is where Flash and Silverlight will find a space to survive where the remote access and distribution facilities of the WEB are inherited. No matter if it is for business or personal use, nobody wants to install and maintain programs. It is the so called plug and play finally coming to live. Our personal computer is now a toaster, we buy it with pre-installed Operating System and software for protection, get connected and voila! The only thing we want to install these days is the browser of preference.</em></p>
<p><em>In the upcoming wave, our WEB solution will be open sourced, fully compliant with WEB standards, will use a whole bunch of pluggable pieces of free software, interchangeable, and it will be deployed in the cloud somewhere. Our job as WEB developers is to know how to put it all together rather than reinventing the wheel. The future has arrived!”</em></p>
<p>That&#8217;s been said, in terms of system integration, I would definitely go for the Service Oriented Architecture, the first available option comprising XML Web Services. I would choose an implementation that follows the <a href="http://www.ws-i.org/">WS-I</a> specifications for Web Services Interoperability.</p>
<p>Software applications written in various programming languages and running on various platforms can use Web Services to exchange data over the Internet and HTTP, without requiring changes to the firewall filtering rules. This solution is platform neutral, scalable and provide enough security through WS-Security, an extension to SOAP to apply security to Web services. It allows the communication of various security token formats, such as SAML, Kerberos, and X.509 with the use of XML Signature and XML Encryption to provide end-to-end security.</p>
<p>Web services provide a very loose coupling between an application that uses the web service and the web service itself and therefore use &#8220;little glue&#8221; to connect the parts and allow great reusability of code.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cguarany.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cguarany.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cguarany.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cguarany.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cguarany.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cguarany.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cguarany.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cguarany.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cguarany.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cguarany.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cguarany.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cguarany.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cguarany.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cguarany.wordpress.com/283/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cguarany.wordpress.com&amp;blog=12303349&amp;post=283&amp;subd=cguarany&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cguarany.wordpress.com/2010/05/27/exercise-16-conclusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>43.513492 -79.882802</georss:point>
		<geo:lat>43.513492</geo:lat>
		<geo:long>-79.882802</geo:long>
		<media:content url="http://1.gravatar.com/avatar/f4293906ad91fad8d15afdc092787f09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cguarany</media:title>
		</media:content>
	</item>
		<item>
		<title>Workshop 8 &#8211; Plug-ins</title>
		<link>http://cguarany.wordpress.com/2010/05/19/workshop-8-plug-ins/</link>
		<comments>http://cguarany.wordpress.com/2010/05/19/workshop-8-plug-ins/#comments</comments>
		<pubDate>Thu, 20 May 2010 02:17:29 +0000</pubDate>
		<dc:creator>cguarany</dc:creator>
				<category><![CDATA[Workshops]]></category>

		<guid isPermaLink="false">http://cguarany.wordpress.com/?p=353</guid>
		<description><![CDATA[As I have been using Visual Studio 2008 since the first Workshop, I think I ended up covering a lot in terms of .NET, Visual Studio and jQuery integration. So I would like to change the course and talk about something I came across during the Ajax research: Plug-ins. By the number of plug-ins available [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cguarany.wordpress.com&amp;blog=12303349&amp;post=353&amp;subd=cguarany&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As I have been using Visual Studio 2008 since the first Workshop, I think I ended up covering a lot in terms of .NET, Visual Studio and jQuery integration. So I would like to change the course and talk about something I came across during the Ajax research: <a href="http://plugins.jquery.com/">Plug-ins</a>. By the number of plug-ins available we can measure the popularity of jQuery!</p>
<p>Writing your own plug-in is pretty simple. We need to follow this  template:</p>
<ol>
<li>//Needs an anonymous function to wrap around your function to avoid conflict</li>
<li>(function($){</li>
<li> //Attach this new method to jQuery</li>
<li> $.fn.extend({</li>
<li> //This is where you write your plugin&#8217;s name</li>
<li> pluginname: function() {</li>
<li> //Iterate over the current set of matched elements</li>
<li> return this.each(function() {</li>
<li> //code to be inserted here</li>
<li> });</li>
<li> }</li>
<li> });</li>
<li>//pass jQuery to the function,</li>
<li>})(jQuery);</li>
</ol>
<p>I started by creating the a extension function in a separate file for the jQuery pkug-in. This is just a simple example that will receive background, color, height and width parameters to be set on the element.</p>
<p><a href="http://cguarany.files.wordpress.com/2010/05/plugin.jpg"><img class="alignnone size-full wp-image-406" title="Plugin" src="http://cguarany.files.wordpress.com/2010/05/plugin.jpg?w=459&#038;h=304" alt="" width="459" height="304" /></a></p>
<p>The jQuery code consumes the plug-in function called setCSS:</p>
<p><a href="http://cguarany.files.wordpress.com/2010/05/jquery.jpg"><img class="alignnone size-full wp-image-407" title="jQuery" src="http://cguarany.files.wordpress.com/2010/05/jquery.jpg?w=500&#038;h=461" alt="" width="500" height="461" /></a></p>
<p>That&#8217;s the result when we click the text on the web page:</p>
<p><a href="http://cguarany.files.wordpress.com/2010/05/result.jpg"><img class="alignnone size-full wp-image-408" title="Result" src="http://cguarany.files.wordpress.com/2010/05/result.jpg?w=500&#038;h=222" alt="" width="500" height="222" /></a></p>
<p>Among the vast options of plug ins available for jQuery, I found <a href="http://jtemplates.tpython.com/">jTemplate </a>a very interesting one. As in the previous workshops when I talked about Ajax, if we want to populate a table with data from a web service, we can use jTemplate to bind the fields to the HTML elements. Data can be passed as an object and you can reference the object’s  properties with this $T data item.</p>
<p>&lt;scrip src=&#8221;scripts/jQuery-jtemplates.min.js&#8221;  type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;</p>
<p>&#8230;</p>
<p>1. $(document).ready(function() {<br />
2.           $.ajax({<br />
3.               type: &#8220;POST&#8221;,<br />
4.               url:  &#8220;MyService.asmx/GetInfo&#8221;,<br />
5.               data: &#8220;{}&#8221;,<br />
6.               contentType: &#8220;application/json; charset=utf-8&#8243;,<br />
7.               dataType: &#8220;json&#8221;,<br />
8.               success:  function(msg) {<br />
9.<br />
10.                   ApplyTemplate(msg);<br />
11.               }<br />
12.           });<br />
13.       });<br />
14. function ApplyTemplate(msg) {<br />
15.        $(&#8216;#Container&#8217;).setTemplate($(&#8220;#TemplateResultsTable&#8221;).html());<br />
16.       $(&#8216;#Container&#8217;).processTemplate(msg);<br />
17. }</p>
<p>&#8230;</p>
<p>1. &lt;script type=&#8221;text/html&#8221; id=&#8221;TemplateResultsTable&#8221;&gt;<br />
2. {#template MAIN}<br />
3. &lt;table&gt;<br />
4.   &lt;tr&gt;<br />
5.      &lt;th&gt;Field1&lt;/th&gt;<br />
6.     &lt;th&gt;Field2&lt;/th&gt;<br />
7.     &lt;th&gt;Field3&lt;/th&gt;<br />
8.      &lt;th&gt;Field4&lt;/th&gt;<br />
9.   &lt;/tr&gt;<br />
10.    {#foreach $T.d as MyTable}<br />
11.     {#include ROW root=$T.MyTable}<br />
12.   {#/for}<br />
13. &lt;/table&gt;<br />
14. {#/template MAIN}<br />
15. {#template ROW}<br />
16. &lt;tr&gt;<br />
17.    &lt;td&gt;{$T.Field1}&lt;/td&gt;<br />
18.    &lt;td&gt;{$T.Field2}&lt;/td&gt;<br />
19.    &lt;td&gt;{$T.Field3}&lt;/td&gt;<br />
20.    &lt;td&gt;{$T.Field4}&lt;/td&gt;<br />
21. &lt;/tr&gt;<br />
22.  {#/template ROW}<br />
23. &lt;/script&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cguarany.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cguarany.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cguarany.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cguarany.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cguarany.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cguarany.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cguarany.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cguarany.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cguarany.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cguarany.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cguarany.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cguarany.wordpress.com/353/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cguarany.wordpress.com/353/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cguarany.wordpress.com/353/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cguarany.wordpress.com&amp;blog=12303349&amp;post=353&amp;subd=cguarany&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cguarany.wordpress.com/2010/05/19/workshop-8-plug-ins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>43.513492 -79.882802</georss:point>
		<geo:lat>43.513492</geo:lat>
		<geo:long>-79.882802</geo:long>
		<media:content url="http://1.gravatar.com/avatar/f4293906ad91fad8d15afdc092787f09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cguarany</media:title>
		</media:content>

		<media:content url="http://cguarany.files.wordpress.com/2010/05/plugin.jpg" medium="image">
			<media:title type="html">Plugin</media:title>
		</media:content>

		<media:content url="http://cguarany.files.wordpress.com/2010/05/jquery.jpg" medium="image">
			<media:title type="html">jQuery</media:title>
		</media:content>

		<media:content url="http://cguarany.files.wordpress.com/2010/05/result.jpg" medium="image">
			<media:title type="html">Result</media:title>
		</media:content>
	</item>
		<item>
		<title>Elevator Pitch 2</title>
		<link>http://cguarany.wordpress.com/2010/05/14/elevator-pitch%c2%a02/</link>
		<comments>http://cguarany.wordpress.com/2010/05/14/elevator-pitch%c2%a02/#comments</comments>
		<pubDate>Sat, 15 May 2010 02:17:15 +0000</pubDate>
		<dc:creator>cguarany</dc:creator>
				<category><![CDATA[Assignment]]></category>

		<guid isPermaLink="false">http://cguarany.wordpress.com/?p=395</guid>
		<description><![CDATA[&#8220;In the last twelve weeks of e-business immersion I learned that the WEB is a place of openness and standard. Timing, quality and interoperability are the master words for a successful e-business project. Building a Web site is a complex task in terms of technology. We depicted each component of this process by showing, discussing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cguarany.wordpress.com&amp;blog=12303349&amp;post=395&amp;subd=cguarany&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><em>&#8220;In the last twelve weeks of e-business immersion I learned that the WEB is a place of openness and standard. Timing, quality and interoperability are the master words for a successful e-business project. Building a Web site is a complex task in terms of technology. We depicted each component of this process by showing, discussing and comparing the available tools from the client to the server, the main steps and best practices when it comes to concurrency, security, data exchange, mobile access etc.</em></p>
<p><em>A little bit of jQuery, was an valuable asset not only because its widely adoption but also for opening my mind to the excellent JavaScript frameworks and plug-ins on the market. Dojo, Prototype, MooTools, you name it! And they’re all under the free license agreement.</em></p>
<p><em>In ITC565 we had a chance to learn, research and practice all we need to get involved with a WEB project plan. Our job as Web developers is more and more knowing how to put the all of the pieces together and take advantage of the components and frameworks available. After all, the Internet that once was something for Geeks is now everywhere for everyone. We are getting closer to the day that “E”-business will become just Business”.</em></p>
<object height="81" width="100%"><param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fsoundcloud.com%2Fcguarany%2Felevator2&amp;g=1&amp;"></param><embed height="81" src="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fsoundcloud.com%2Fcguarany%2Felevator2&amp;g=1&amp;" type="application/x-shockwave-flash" width="100%"> </embed> </object>
<p>or <a href="http://soundcloud.com/cguarany/elevator2">go to the page</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cguarany.wordpress.com/395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cguarany.wordpress.com/395/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cguarany.wordpress.com/395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cguarany.wordpress.com/395/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cguarany.wordpress.com/395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cguarany.wordpress.com/395/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cguarany.wordpress.com/395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cguarany.wordpress.com/395/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cguarany.wordpress.com/395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cguarany.wordpress.com/395/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cguarany.wordpress.com/395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cguarany.wordpress.com/395/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cguarany.wordpress.com/395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cguarany.wordpress.com/395/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cguarany.wordpress.com&amp;blog=12303349&amp;post=395&amp;subd=cguarany&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cguarany.wordpress.com/2010/05/14/elevator-pitch%c2%a02/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>43.513492 -79.882802</georss:point>
		<geo:lat>43.513492</geo:lat>
		<geo:long>-79.882802</geo:long>
		<media:content url="http://1.gravatar.com/avatar/f4293906ad91fad8d15afdc092787f09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cguarany</media:title>
		</media:content>
	</item>
		<item>
		<title>Workshop 7 &#8211; ASP.NET Integration</title>
		<link>http://cguarany.wordpress.com/2010/05/14/workshop-7-asp-net-integration/</link>
		<comments>http://cguarany.wordpress.com/2010/05/14/workshop-7-asp-net-integration/#comments</comments>
		<pubDate>Sat, 15 May 2010 01:47:51 +0000</pubDate>
		<dc:creator>cguarany</dc:creator>
				<category><![CDATA[Workshops]]></category>

		<guid isPermaLink="false">http://cguarany.wordpress.com/?p=347</guid>
		<description><![CDATA[On Sunday, September 28, 2008, Microsoft officially made an announcement regarding jQuery support: &#8220;As the team started to investigate building the ability to perform selection and animation operations, though, they quickly realized that the jQuery support for these scenarios is already excellent, and that there is a huge ecosystem and community built up around it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cguarany.wordpress.com&amp;blog=12303349&amp;post=347&amp;subd=cguarany&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>On Sunday, September 28, 2008, Microsoft officially made an announcement  regarding jQuery support:</p>
<p>&#8220;As the team started to investigate  building the ability to perform selection and animation operations,  though, they quickly realized that the jQuery support for these  scenarios is already excellent, and that there is a huge ecosystem and community built up  around it already.  The jQuery library also works well on the same page  with ASP.NET AJAX and the ASP.NET AJAX Control Toolkit. Rather than duplicate functionality, we thought, wouldn&#8217;t  it be great to just use jQuery as-is, and add it as a standard,  supported, library in VS/ASP.NET,  and then focus our energy building new features that took advantage of it?  We sent mail the  jQuery team to gauge their interest in this, and quickly heard back that  they thought that it sounded like an interesting idea too. I&#8217;m  excited today to announce that Microsoft will be shipping jQuery with  Visual Studio going forward.  We will distribute the jQuery JavaScript  library as-is, and will not be forking or changing the source from the main jQuery branch.  The files will  continue to use and ship under the existing jQuery MIT license. We will  also distribute intellisense-annotated versions that provide  great Visual Studio intellisense and help-integration at design-time.&#8221;</p>
<p>I have already set up intellisense in my <a href="http://cguarany.wordpress.com/2010/03/20/workshop-1/">first Workshop  post</a>. Let&#8217;s now move forward and explore another ways to integrate  jQuery and .NET. As we know we can consume ASP .NET web  services using jQuery, we can consume an ASP .NET page method using  jQuery and, as already explored in the <a href="http://cguarany.wordpress.com/2010/05/08/workshop-6-ajax-ii/">workshop 6</a>, we can consume WCF  Services using  jQuery. I could play around and show some of those variations  but they would&#8217;t change much in the way we use jQuery to call those  different flavours of Web Services.</p>
<p>Even if the official jQuery  support, Microsoft still has it own framework for Ajax that also  provides Ajax features and UI extensibility (Microsoft Ajax Toolkit). One  thing that is worth pointing out is some of the problems developers face when trying to coexist  ScripManager (the main engine of the Microsoft Ajax Framework) and  jQuery. I found two different workarounds for this issue. The  first is to subclass the ScriptManager class and override its  functionality that enables the replacement of the MicrosoftAjax.js  reference with a framework of your choice, in this case jQuery:</p>
<p>&lt;%@  Register Namespace=&#8221;AltScriptManager&#8221; TagPrefix=&#8221;asp&#8221; %&gt;<br />
&#8230;<br />
&lt;asp:AltScriptManager  runat=&#8221;server&#8221;<br />
FrameworkPath=&#8221;~/script/jquery-1.2.6.js&#8221;  /&gt;<br />
&#8230;</p>
<p>This is available for download <a href="http://weblogs.asp.net/bleroy/archive/2008/07/07/using-scriptmanager-with-other-frameworks.aspx">here.</a> But if you really want to have both frameworks running in  parallel in the same project you may have some problems with the partial  postback provided by MS Ajax Framewok and jQuery. Microsoft provides  partial refreshes of the page by the use of UpdatePanel. Basically  everything enclosed in the UpdatePanel takes advantage of the Ajax. For  example:</p>
<p>&lt;form id=&#8221;form1&#8243; runat=&#8221;server&#8221;&gt;<br />
&lt;asp:ScriptManager  ID=&#8221;SM1&#8243; runat=&#8221;server&#8221; EnablePartialRendering=&#8221;true&#8221; /&gt;<br />
&lt;div&gt;<br />
&lt;asp:UpdatePanel ID=&#8221;UpdatePanel1&#8243;  runat=&#8221;Server&#8221;&gt;<br />
&lt;ContentTemplate&gt;<br />
&lt;asp:GridView  ID=&#8221;GridView1&#8243; runat=&#8221;Server&#8221; AllowPaging=&#8221;true&#8221; OnPageIndexChanging=&#8221;ChangePage&#8221;&gt;&lt;/asp:GridView&gt;<br />
&lt;/ContentTemplate&gt;<br />
&lt;/asp:UpdatePanel&gt;<br />
&lt;/div&gt;<br />
&lt;/form&gt;</p>
<p>if you want to use jQuery in  the client side to manipulate the HTML Table elements generated by the  server side DataGrid within the UpdatePanel like:</p>
<p>&lt;script language=&#8221;javascript&#8221;&gt;<br />
$(document).ready(function()<br />
{<br />
//for table row<br />
$(&#8220;tr:even&#8221;).css(&#8220;background-color&#8221;, &#8220;#F4F4F8&#8243;);<br />
});<br />
&lt;/script&gt;</p>
<p>It works great when the page  is loaded for the first time but for further interactions such as when  you click for  paging in the Grid, the jQuery won&#8217;t work  unless we change the jQuery code to:</p>
<p>&lt;script language=&#8221;javascript&#8221;&gt;<br />
function  pageLoad(sender, args)<br />
{<br />
$(&#8220;tr:even&#8221;).css(&#8220;background-color&#8221;, &#8220;#F4F4F8&#8243;);<br />
}<br />
&lt;/script&gt;</p>
<p>The alternate rows  background color on every page load will work for for first time the page is loaded and all subsequent loads,  full or  partial postback,</p>
<p>In my opinion where jQuery really fits is in <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=53289097-73ce-43bf-b6a6-35e00103cb4b&amp;displaylang=en">ASP.NET MVC framework</a>. It is out of the scope of this workshop to go deep inside the MS implementation of MVC but it is a very powerful pattern whereby the Web pages requests are routed to the controller for processing and redirected to the View. The Views are ASP.NET web pages without code behind, just pure HTML and Javascript. And that is why jQuery is convenient because the Views keeps posting information back and forth to the controllers who act as the code behind for the pages. The Controller then passes the request for retrieving or inserting data to/from the Model. The jQuery .post function comes in handy as an Ajax engine to plug the View to the Controller in the MS ASP.NET MVC framework.</p>
<p>This is how the View looks like when we add jQuery to the ASP.NET MVC to post information:</p>
<p><a href="http://cguarany.files.wordpress.com/2010/05/form.jpg"><img class="alignnone size-full wp-image-378" title="form" src="http://cguarany.files.wordpress.com/2010/05/form.jpg?w=500&#038;h=173" alt="" width="500" height="173" /></a></p>
<p><a href="http://cguarany.files.wordpress.com/2010/05/post.jpg"><img class="alignnone size-full wp-image-379" title="post" src="http://cguarany.files.wordpress.com/2010/05/post.jpg?w=499&#038;h=243" alt="" width="499" height="243" /></a></p>
<p>And this is how the Controller receives the information from the posted form:</p>
<p><a href="http://cguarany.files.wordpress.com/2010/05/contoller1.jpg"><img class="alignnone size-full wp-image-385" title="contoller" src="http://cguarany.files.wordpress.com/2010/05/contoller1.jpg?w=443&#038;h=107" alt="" width="443" height="107" /></a></p>
<p>This way we can grab the information as <strong>Request.Form["MyField"]</strong> or, instead of serializing the form,  we could have passed the <em>input text &#8220;MyField&#8221; </em>value in jQuery <em>post </em>function and receive it as a parameter in the <em>MyAction</em> method of the Controller.</p>
<p><strong>References:</strong></p>
<p>jQuery and ASP.NET AJAX UpdatePanel:</p>
<p><a href="http://www.dotnetfunda.com/articles/article471-jquery-and-aspnet-ajax-updatepanel-.aspx">http://www.dotnetfunda.com/articles/article471-jquery-and-aspnet-ajax-updatepanel-.aspx</a></p>
<p>﻿</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cguarany.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cguarany.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cguarany.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cguarany.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cguarany.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cguarany.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cguarany.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cguarany.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cguarany.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cguarany.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cguarany.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cguarany.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cguarany.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cguarany.wordpress.com/347/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cguarany.wordpress.com&amp;blog=12303349&amp;post=347&amp;subd=cguarany&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cguarany.wordpress.com/2010/05/14/workshop-7-asp-net-integration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>43.513492 -79.882802</georss:point>
		<geo:lat>43.513492</geo:lat>
		<geo:long>-79.882802</geo:long>
		<media:content url="http://1.gravatar.com/avatar/f4293906ad91fad8d15afdc092787f09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cguarany</media:title>
		</media:content>

		<media:content url="http://cguarany.files.wordpress.com/2010/05/form.jpg" medium="image">
			<media:title type="html">form</media:title>
		</media:content>

		<media:content url="http://cguarany.files.wordpress.com/2010/05/post.jpg" medium="image">
			<media:title type="html">post</media:title>
		</media:content>

		<media:content url="http://cguarany.files.wordpress.com/2010/05/contoller1.jpg" medium="image">
			<media:title type="html">contoller</media:title>
		</media:content>
	</item>
		<item>
		<title>Exercise 15: M-commerce, innovation and mobile devices</title>
		<link>http://cguarany.wordpress.com/2010/05/14/exercise-15-m-commerce-innovation-and-mobile-devices/</link>
		<comments>http://cguarany.wordpress.com/2010/05/14/exercise-15-m-commerce-innovation-and-mobile-devices/#comments</comments>
		<pubDate>Sat, 15 May 2010 01:46:54 +0000</pubDate>
		<dc:creator>cguarany</dc:creator>
				<category><![CDATA[Exercises]]></category>

		<guid isPermaLink="false">http://cguarany.wordpress.com/?p=281</guid>
		<description><![CDATA[1)What is meant by a location based service? Explain using the Web applications found on a late model mobile device. They are mobile applications that take advantage of the geographical position of the mobile device. Commonwealth Bank for instance provides a &#8220;Nearest branch locator&#8221; service for devices with GPS capabilities. This site also shows 10 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cguarany.wordpress.com&amp;blog=12303349&amp;post=281&amp;subd=cguarany&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>1)What is meant by a location based service? Explain using the Web applications found on a late model mobile device.</strong><br />
They are mobile applications that take advantage of the geographical position of the mobile device. Commonwealth Bank for instance provides a &#8220;Nearest branch locator&#8221; service for devices with GPS capabilities. This site also shows <a href="http://theregoesdave.com/2008/06/10/10-location-based-applications-for-iphone-and-iphone-3g/">10 LBS applications</a> for the iPhone 3G.</p>
<p><strong>2)Describe the purpose of the Open Mobile Alliance Initiative.</strong><br />
According to the official site, the purpose of Open Mobile Alliance is to establish interoperable services across countries, operators and mobile terminals that will meet the needs of the user. The companies supporting the Open Mobile Alliance will work towards stimulating the fast and wide adoption of a variety of new, enhanced mobile information, communication and entertainment services.<br />
<strong><br />
3)What are the main components of a mobile Web services framework?</strong></p>
<p>Subscriber: End user or entity who has a business relationship with a mobile network operator.</p>
<p>Mobile Network Services: Web services that provide access to functionality within a mobile network that may be either well-defined within the industry  or proprietary.</p>
<p>Third-Party Services: Web services that provide access to what may be a wide variety of functionality, some of which may be well-defined within the industry and some of which may be proprietary.</p>
<p>Authentication Service and the Payment Service: Web services operated by the mobile network operator that expose functionality to perform authentication and payment authorization, respectively.</p>
<p>Both Mobile Network Services and Third-Party Services require a Subscriber to authenticate and optionally provide authorization to make a payment. A Client Platform provides support for secure, chargeable transactions using Web services between an invoking Client Application and Third-Party Services or Mobile Network Services. The Client Platform controls all interactions with the Subscriber being authenticated within the framework during the authentication.</p>
<p><strong><br />
4)Visit an airline Web site and search for information on WAP or SMS or 3G mobile application access to booking airline services. The same services exist in banking. How do both industries compare?</strong></p>
<p>Air Canada provides Mobile Web Browser based applications as well as specific native versions for download (iPhone and Blackberries). You can use a variety of services such as electronic  paperless check-in, check flight status, receive flight information and timetables, manage miles and other travel information. At the moment they don&#8217;t seem to provide a mobile end to end feature to book flights and purchase tickets from a mobile device. I noticed that Lufthansa and American Airlines do provide Mobile Services to book flights and other cool features such as Check-in via SMS.</p>
<p>Banks provide non-transaction based services such as balance checks and transaction based actions like account transactions, payments and funds transfer. Security is the main issue for  those services. SMS token request is an alternative used to enforce security which provides a secondary channel of authentication.</p>
<p>Banks services are intrinsically more transaction based than airline&#8217;s, however the latter also requires a security communication channel and encryption for booking and managing the flights and payments.</p>
<p><em><strong>References:</strong></em></p>
<p>Open Mobile Alliance<br />
<a href="http://www.openmobilealliance.org/">http://www.openmobilealliance.org/</a><br />
Mobile Web services framework<br />
<a href="http://www.swe.uni-linz.ac.at/teaching/lva/ws04-05/service_engineering/246553/%5CMobileWS/mws_tech_roadmap.asp.htm">http://www.swe.uni-linz.ac.at/teaching/lva/ws04-05/service_engineering/246553/%5CMobileWS/mws_tech_roadmap.asp.htm</a><br />
Air Canada Mobile<br />
<a href="http://www.aircanada.com/en/travelinfo/traveller/mobile/index.html">http://www.aircanada.com/en/travelinfo/traveller/mobile/index.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cguarany.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cguarany.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cguarany.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cguarany.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cguarany.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cguarany.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cguarany.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cguarany.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cguarany.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cguarany.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cguarany.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cguarany.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cguarany.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cguarany.wordpress.com/281/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cguarany.wordpress.com&amp;blog=12303349&amp;post=281&amp;subd=cguarany&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cguarany.wordpress.com/2010/05/14/exercise-15-m-commerce-innovation-and-mobile-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>43.513492 -79.882802</georss:point>
		<geo:lat>43.513492</geo:lat>
		<geo:long>-79.882802</geo:long>
		<media:content url="http://1.gravatar.com/avatar/f4293906ad91fad8d15afdc092787f09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cguarany</media:title>
		</media:content>
	</item>
		<item>
		<title>Workshop 6 &#8211; Ajax II</title>
		<link>http://cguarany.wordpress.com/2010/05/08/workshop-6-ajax-ii/</link>
		<comments>http://cguarany.wordpress.com/2010/05/08/workshop-6-ajax-ii/#comments</comments>
		<pubDate>Sat, 08 May 2010 19:21:12 +0000</pubDate>
		<dc:creator>cguarany</dc:creator>
				<category><![CDATA[Workshops]]></category>

		<guid isPermaLink="false">http://cguarany.wordpress.com/?p=320</guid>
		<description><![CDATA[As in the previous workshop I played around some basic jQuery Ajax capabilities.  This week i decided to explore the lowest level Ajax function. &#60;script type="text/javascript" language="javascript" src="script/jQuery-1.3.2.min.js" "&#62;&#60;/script&#62; &#60;script type="text/javascript"&#62; var varType; var varUrl; var varData; var varContentType; var varDataType; var varProcessData; function CallService() { $.ajax({ type : varType, //GET or POST or PUT [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cguarany.wordpress.com&amp;blog=12303349&amp;post=320&amp;subd=cguarany&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As in the previous workshop I played around some basic jQuery Ajax capabilities.  This week i decided to explore the lowest level Ajax function.</p>
<pre>&lt;script type="text/javascript" language="javascript"
   src="script/jQuery-1.3.2.min.js" "&gt;&lt;/script&gt;

     &lt;script type="text/javascript"&gt;

        var varType;
        var varUrl;
        var varData;
        var varContentType;
        var varDataType;
        var varProcessData;

        function CallService()
        {
                $.ajax({
                    type          : varType, //GET or POST or PUT or DELETE verb
                    url           : varUrl, // Location of the service
                    data          : varData, //Data sent to server
                    contentType   : varContentType, // content type sent to server
                    dataType      : varDataType, //Expected data format from server
                    processdata   : varProcessData, //True or False
                    success       : function(msg) {//On Successfull service call
                    ServiceSucceeded(msg);
                    },
                    error: ServiceFailed// When Service call fails
                });
        }
    &lt;/script&gt;</pre>
<p>I created a basic WCF service to be consumed directly from the Web Page using the .<strong>ajax </strong>function above. This WCF service will return data in Jason format.</p>
<p>First we need to enable Ajax. We do that by setting the <strong>binding = &#8220;webHttpBinding&#8221;</strong> in the web.config file:</p>
<p><a href="http://cguarany.files.wordpress.com/2010/04/webconfig.jpg"><img class="alignnone size-full wp-image-322" title="webconfig" src="http://cguarany.files.wordpress.com/2010/04/webconfig.jpg?w=500&#038;h=279" alt="" width="500" height="279" /></a></p>
<p>Secondly, configure the service to serialize Jason. We do that by decorating the method signature with the attribute <strong>ResponseFormat = jason</strong> in the service interface.</p>
<p><a href="http://cguarany.files.wordpress.com/2010/04/interface2.jpg"><img class="alignnone size-full wp-image-336" title="Interface" src="http://cguarany.files.wordpress.com/2010/04/interface2.jpg?w=499&#038;h=227" alt="" width="499" height="227" /></a></p>
<p>This is he WCF method (endpoint) implementation:</p>
<p><a href="http://cguarany.files.wordpress.com/2010/04/method.jpg">e<img class="alignnone size-full wp-image-326" title="Method" src="http://cguarany.files.wordpress.com/2010/04/method.jpg?w=499&#038;h=271" alt="" width="499" height="271" /></a></p>
<p>And finally, the jQuery Ajax call:</p>
<p><a href="http://cguarany.files.wordpress.com/2010/04/jquery.jpg"><img class="alignnone size-full wp-image-327" title="JQUERY" src="http://cguarany.files.wordpress.com/2010/04/jquery.jpg?w=499&#038;h=408" alt="" width="499" height="408" /></a></p>
<p>When the page loads, the alert shows the return data from the WCF service:</p>
<p><a href="http://cguarany.files.wordpress.com/2010/04/return.jpg"><img class="alignnone size-full wp-image-328" title="return" src="http://cguarany.files.wordpress.com/2010/04/return.jpg?w=499&#038;h=293" alt="" width="499" height="293" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cguarany.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cguarany.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cguarany.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cguarany.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cguarany.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cguarany.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cguarany.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cguarany.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cguarany.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cguarany.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cguarany.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cguarany.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cguarany.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cguarany.wordpress.com/320/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cguarany.wordpress.com&amp;blog=12303349&amp;post=320&amp;subd=cguarany&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cguarany.wordpress.com/2010/05/08/workshop-6-ajax-ii/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<georss:point>43.513492 -79.882802</georss:point>
		<geo:lat>43.513492</geo:lat>
		<geo:long>-79.882802</geo:long>
		<media:content url="http://1.gravatar.com/avatar/f4293906ad91fad8d15afdc092787f09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cguarany</media:title>
		</media:content>

		<media:content url="http://cguarany.files.wordpress.com/2010/04/webconfig.jpg" medium="image">
			<media:title type="html">webconfig</media:title>
		</media:content>

		<media:content url="http://cguarany.files.wordpress.com/2010/04/interface2.jpg" medium="image">
			<media:title type="html">Interface</media:title>
		</media:content>

		<media:content url="http://cguarany.files.wordpress.com/2010/04/method.jpg" medium="image">
			<media:title type="html">Method</media:title>
		</media:content>

		<media:content url="http://cguarany.files.wordpress.com/2010/04/jquery.jpg" medium="image">
			<media:title type="html">JQUERY</media:title>
		</media:content>

		<media:content url="http://cguarany.files.wordpress.com/2010/04/return.jpg" medium="image">
			<media:title type="html">return</media:title>
		</media:content>
	</item>
		<item>
		<title>Workshop 5 &#8211; Ajax I</title>
		<link>http://cguarany.wordpress.com/2010/04/25/workshop-5-ajax-i/</link>
		<comments>http://cguarany.wordpress.com/2010/04/25/workshop-5-ajax-i/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 00:26:50 +0000</pubDate>
		<dc:creator>cguarany</dc:creator>
				<category><![CDATA[Workshops]]></category>

		<guid isPermaLink="false">http://cguarany.wordpress.com/?p=310</guid>
		<description><![CDATA[Those are the basic Functions available in jQuery for Ajax: $.ajax(options) This is jQuery&#8217;s low-level AJAX implementation. Example 1: Load and execute a JavaScript file. $.ajax({ type: &#8220;GET&#8221;, url: &#8220;test.js&#8221;, dataType: &#8220;script&#8221; }); Example 2: Save some data to the server and notify the user once its complete. $.ajax({ type: &#8220;POST&#8221;, url: &#8220;some.php&#8221;, data: &#8220;name=John&#38;location=Boston&#8221;, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cguarany.wordpress.com&amp;blog=12303349&amp;post=310&amp;subd=cguarany&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Those are the basic Functions available in jQuery for Ajax:</p>
<p><strong>$.ajax(options)</strong></p>
<p>This is jQuery&#8217;s low-level AJAX implementation.</p>
<p><em>Example 1</em>: Load and execute a JavaScript file.</p>
<p>$.ajax({<br />
type: &#8220;GET&#8221;,<br />
url: &#8220;test.js&#8221;,<br />
dataType: &#8220;script&#8221;<br />
});</p>
<p><em>Example 2:</em> Save some data to the server and notify the user once its complete.</p>
<p>$.ajax({<br />
type: &#8220;POST&#8221;,<br />
url: &#8220;some.php&#8221;,<br />
data: &#8220;name=John&amp;location=Boston&#8221;,<br />
success: function(msg){<br />
alert( &#8220;Data Saved: &#8221; + msg );<br />
}<br />
});</p>
<p><em>Example 3</em>: Retrieve the latest version of an HTML page.</p>
<p>$.ajax({<br />
url: &#8220;test.html&#8221;,<br />
cache: false,<br />
success: function(html){<br />
$(&#8220;#results&#8221;).append(html);<br />
}<br />
});</p>
<p><em>Example4: </em>Loads data synchronously. Blocks the browser while the requests is active. It is better to block user interaction bother means when synchronization is necessary.</p>
<p>var html = $.ajax({<br />
url: &#8220;some.php&#8221;,<br />
async: false<br />
}).responseText;</p>
<p><em>Example 5:</em> Sends an xml document as data to the server. By setting the processData option to false, the automatic conversion of data to strings is prevented.</p>
<p>var xmlDocument = [create xml document];<br />
$.ajax({<br />
url: &#8220;page.php&#8221;,<br />
processData: false,<br />
data: xmlDocument,<br />
success: handleResponse<br />
});</p>
<p><strong>$.get(url, data, callback)</strong></p>
<p>This is an easy way to send a simple GET request to a server without having to use the more complex $.ajax function. It allows a single callback function to be specified that will be executed when the request is complete (and only if the response has a successful response code). If you need to have both error and success callbacks, you may want to use $.ajax.</p>
<p><em>Example:</em></p>
<p>$.get(&#8220;test.php&#8221;, function(data){<br />
alert(&#8220;Data Loaded: &#8221; + data);<br />
});</p>
<p><strong>$.post(url, data, callback, type)</strong></p>
<p>This is an easy way to send a simple POST request to a server without having to use the more complex $.ajax function. It allows a single callback function to be specified that will be executed when the request is complete (and only if the response has a successful response code). The returned data format can be specified by the fourth paramater. If you need to have both error and success callbacks, you may want to use $.ajax. $.post is a (simplified) wrapper function for $.ajax.</p>
<p><em>Example:</em></p>
<p>$.post(&#8220;test.php&#8221;, function(data){<br />
alert(&#8220;Data Loaded: &#8221; + data);<br />
});</p>
<p><strong>load(url, data, callback)<br />
</strong></p>
<p>A GET request will be performed by default &#8211; but if you pass in any extra parameters then a POST will occur. This is the highest level Ajax jQuery function.</p>
<p><a href="http://cguarany.files.wordpress.com/2010/04/sourcecode.jpg"><img class="alignnone size-full wp-image-314" title="SourceCode" src="http://cguarany.files.wordpress.com/2010/04/sourcecode.jpg?w=500&#038;h=417" alt="" width="500" height="417" /></a></p>
<p><a href="http://cguarany.files.wordpress.com/2010/04/ws5.jpg"><img class="alignnone size-full wp-image-315" title="ws5" src="http://cguarany.files.wordpress.com/2010/04/ws5.jpg?w=499&#038;h=223" alt="" width="499" height="223" /></a></p>
<p><strong>Reference:</strong> <a href="http://net.tutsplus.com/tutorials/javascript-ajax/5-ways-to-make-ajax-calls-with-jquery/">http://net.tutsplus.com/tutorials/javascript-ajax/5-ways-to-make-ajax-calls-with-jquery/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cguarany.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cguarany.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cguarany.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cguarany.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cguarany.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cguarany.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cguarany.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cguarany.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cguarany.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cguarany.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cguarany.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cguarany.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cguarany.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cguarany.wordpress.com/310/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cguarany.wordpress.com&amp;blog=12303349&amp;post=310&amp;subd=cguarany&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cguarany.wordpress.com/2010/04/25/workshop-5-ajax-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>43.513492 -79.882802</georss:point>
		<geo:lat>43.513492</geo:lat>
		<geo:long>-79.882802</geo:long>
		<media:content url="http://1.gravatar.com/avatar/f4293906ad91fad8d15afdc092787f09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cguarany</media:title>
		</media:content>

		<media:content url="http://cguarany.files.wordpress.com/2010/04/sourcecode.jpg" medium="image">
			<media:title type="html">SourceCode</media:title>
		</media:content>

		<media:content url="http://cguarany.files.wordpress.com/2010/04/ws5.jpg" medium="image">
			<media:title type="html">ws5</media:title>
		</media:content>
	</item>
		<item>
		<title>My Gmail has been hacked!</title>
		<link>http://cguarany.wordpress.com/2010/04/23/my-gmail-has-been-hacked/</link>
		<comments>http://cguarany.wordpress.com/2010/04/23/my-gmail-has-been-hacked/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 00:45:40 +0000</pubDate>
		<dc:creator>cguarany</dc:creator>
				<category><![CDATA[Opinion]]></category>

		<guid isPermaLink="false">http://cguarany.wordpress.com/?p=299</guid>
		<description><![CDATA[In perfect synchronism with this week&#8217;s topic, I got my Google Gmail account hacked. As soon as I checked my email this morning I noticed a great number of non-deliverable messages in my Inbox and surprisingly a huge list of emails in my Sent Items to every single entry of my contact list including the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cguarany.wordpress.com&amp;blog=12303349&amp;post=299&amp;subd=cguarany&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In perfect synchronism with this week&#8217;s topic, I got my Google Gmail  account hacked.</p>
<p>As soon as I checked my email this morning I  noticed a great number of non-deliverable messages in my Inbox and  surprisingly a huge list of emails in my Sent Items to every single  entry of my contact list including the CSU Forums (which apparently  refused them, fortunately).</p>
<p>Yes, now all my friends, ex-bosses,  current boss and all the people I have business relationship with, know I  am a Viagra seller <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Norton suite 2010 is up and running and  confirms that my computer IS NOT INFECTED whatsoever. If you do a Web  search you will find out lots of people with similar or same problem.</p>
<p><a href="http://www.google.com/support/forum/p/gmail/thread?tid=66f2b6d2cf7d41fe&amp;hl=en">http://www.google.com/support/forum/p/gmail/thread?tid=66f2b6d2cf7d41fe&amp;hl=en</a><br />
<a href="http://groups.google.com/group/Gmail-Help-Message-Delivery-en/browse_thread/thread/8bfd0e496671c97b?fwc=2&amp;pli=1">http://groups.google.com/group/Gmail-Help-Message-Delivery-en/browse_thread/thread/8bfd0e496671c97b?fwc=2&amp;pli=1</a></p>
<p>You can see in the picture that Gmail shows From (Poland) and When  (7:23am , Toronto)  the hacker activity took place as well as the IP  Addess used (which of course should not be real) .</p>
<p><a href="http://cguarany.files.wordpress.com/2010/04/gmail.png"><img class="alignnone size-full wp-image-300" title="gmail" src="http://cguarany.files.wordpress.com/2010/04/gmail.png?w=500&#038;h=280" alt="" width="500" height="280" /></a></p>
<p>The fact is: Who are we going to sue in these cases? The hacker? The  provider that offers a free insecure service? In the past it was not  conceivable to me to have my professional emails hosted in a free  service. I would prefer to pay for the provider, download my emails with  the hassle of managing backups, transferring accounts etc.. until I  accepted the Google&#8217;s invitation and ended up having my whole  professional communication in the hands of a free and unreliable  service.</p>
<p>Canceling the email account is an easy and quick step&#8230;but I need first  to bring and save the whole history of emails of about 4 years!</p>
<p>And finally a tip: Don&#8217;t enable the POP3 of your Gmail account. I think  that was the hole and the source of my problem.</p>
<p>Welcome to the Cloud Computing!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cguarany.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cguarany.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cguarany.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cguarany.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cguarany.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cguarany.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cguarany.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cguarany.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cguarany.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cguarany.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cguarany.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cguarany.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cguarany.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cguarany.wordpress.com/299/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cguarany.wordpress.com&amp;blog=12303349&amp;post=299&amp;subd=cguarany&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cguarany.wordpress.com/2010/04/23/my-gmail-has-been-hacked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>43.513492 -79.882802</georss:point>
		<geo:lat>43.513492</geo:lat>
		<geo:long>-79.882802</geo:long>
		<media:content url="http://1.gravatar.com/avatar/f4293906ad91fad8d15afdc092787f09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cguarany</media:title>
		</media:content>

		<media:content url="http://cguarany.files.wordpress.com/2010/04/gmail.png" medium="image">
			<media:title type="html">gmail</media:title>
		</media:content>
	</item>
		<item>
		<title>Exercise 14 &#8211; Searching mechanisms,virtual worlds and cyberagents</title>
		<link>http://cguarany.wordpress.com/2010/04/17/exercise-14-searching-mechanismsvirtual-worlds-and-cyberagents/</link>
		<comments>http://cguarany.wordpress.com/2010/04/17/exercise-14-searching-mechanismsvirtual-worlds-and-cyberagents/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 16:05:26 +0000</pubDate>
		<dc:creator>cguarany</dc:creator>
				<category><![CDATA[Exercises]]></category>

		<guid isPermaLink="false">http://cguarany.wordpress.com/?p=273</guid>
		<description><![CDATA[1)What is a spider? What does it do? According to the definition, a Web crawler or Spider is one type of bot, or software agent. In general, it starts with a list of URLs to visit, called the seeds. As the crawler visits these URLs, it identifies all the hyperlinks  in the page and adds [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cguarany.wordpress.com&amp;blog=12303349&amp;post=273&amp;subd=cguarany&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>1)What is a spider? What does it do?</strong></p>
<p>According to the definition, a Web crawler or Spider is one type of bot, or software agent. In general, it starts with a list of URLs to visit, called the seeds. As the crawler visits these URLs, it identifies all the hyperlinks  in the page and adds them to the list of URLs to visit, called the crawl frontier. URLs from the frontier are recursively visited according to a set of policies. In other words it is a piece of software that unattendedly browses a list of web sites to process or gather some information.</p>
<p><strong>2)Differentiate the various types of software agents.</strong><br />
They are classified as static or mobile agents and either deliberative or reactive.</p>
<p>Some examples:<br />
Spider: Used by the search engines to index the web pages. (static and deliberative)<br />
Commercial: For example a news service or one that aggregates products from a variety of auction web sites. (static and reactive)</p>
<p>Malicious: Virus, spywares or any kind of software that is installed to collect information without consent such as email addresses and user preferences for spam purposes. (mobile and deliberative)</p>
<p><strong>3)Identify various activities in e-commerce where software agents are currently in use.</strong><br />
Some examples:<br />
Price comparison sites: Search all the vendors to show the available options.<br />
News service: Collects news from a variety of sources and push it to the subscriber.<br />
Service to check popularity of a product, personality or event by counting the number of searches or web sites hits.</p>
<p><strong>4)Computing ethics and bot programming case study: rocky</strong><br />
<a href="http://cguarany.files.wordpress.com/2010/04/rocky.jpg"><img class="alignnone size-full wp-image-340" title="rocky" src="http://cguarany.files.wordpress.com/2010/04/rocky.jpg?w=500&#038;h=767" alt="" width="500" height="767" /></a></p>
<p>Eliza, one of the original chat bots created in the 60&#8242;s, is an interesting example of early artificial intelligence programs but It is very limited comaparing to the current technology<br />
such as <a href="http://www.personalityforge.com/botlist.php">http://www.personalityforge.com/botlist.php</a></p>
<p><strong><em>References:</em></strong><br />
<a href="http://en.wikipedia.org/wiki/Web_crawler">http://en.wikipedia.org/wiki/Web_crawler</a><br />
<a href="http://en.wikipedia.org/wiki/Internet_bot">http://en.wikipedia.org/wiki/Internet_bot</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cguarany.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cguarany.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cguarany.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cguarany.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cguarany.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cguarany.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cguarany.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cguarany.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cguarany.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cguarany.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cguarany.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cguarany.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cguarany.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cguarany.wordpress.com/273/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cguarany.wordpress.com&amp;blog=12303349&amp;post=273&amp;subd=cguarany&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cguarany.wordpress.com/2010/04/17/exercise-14-searching-mechanismsvirtual-worlds-and-cyberagents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>43.513492 -79.882802</georss:point>
		<geo:lat>43.513492</geo:lat>
		<geo:long>-79.882802</geo:long>
		<media:content url="http://1.gravatar.com/avatar/f4293906ad91fad8d15afdc092787f09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cguarany</media:title>
		</media:content>

		<media:content url="http://cguarany.files.wordpress.com/2010/04/rocky.jpg" medium="image">
			<media:title type="html">rocky</media:title>
		</media:content>
	</item>
		<item>
		<title>Exercise 13: Shopping cart specifications</title>
		<link>http://cguarany.wordpress.com/2010/04/17/exercise-13-shopping-cart-specifications/</link>
		<comments>http://cguarany.wordpress.com/2010/04/17/exercise-13-shopping-cart-specifications/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 15:47:43 +0000</pubDate>
		<dc:creator>cguarany</dc:creator>
				<category><![CDATA[Exercises]]></category>

		<guid isPermaLink="false">http://cguarany.wordpress.com/?p=271</guid>
		<description><![CDATA[Develop the class diagram for the following shopping cart specifications: &#8220;A shoppingCart object is associated with only one creditCard and customer and to items in itemToBuy object. Persistent customer information such as name, billing address, delivery address, email address and credit rating is stored in the customer object. The credit card object is associated with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cguarany.wordpress.com&amp;blog=12303349&amp;post=271&amp;subd=cguarany&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Develop the <strong>class diagram </strong>for the following <em>shopping cart</em> specifications:</p>
<p>&#8220;A <strong>shoppingCart </strong>object is associated with only one <strong>creditCard </strong>and <strong>customer </strong>and to items in <strong>itemToBuy </strong>object. Persistent customer information such as name, billing address, delivery address, email address and credit rating is stored in the customer object. The credit card object is associated with a <strong>frequentShopper</strong> discount object, if the credit rating for the customer is good. The customer can make or cancel orders as well as add and delete items to the shopping cart product. The credit card object contains the secure method for checking that the charge is authentic.&#8221;</p>
<div id="attachment_294" class="wp-caption alignnone" style="width: 471px"><a href="http://cguarany.files.wordpress.com/2010/04/itc565.png"><img class="size-full wp-image-294" title="ShoppingCartClassDiagram" src="http://cguarany.files.wordpress.com/2010/04/itc565.png?w=461&#038;h=681" alt="Shopping Cart Class Diagram" width="461" height="681" /></a><p class="wp-caption-text">Shopping Cart Class Diagram</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cguarany.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cguarany.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cguarany.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cguarany.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cguarany.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cguarany.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cguarany.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cguarany.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cguarany.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cguarany.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cguarany.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cguarany.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cguarany.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cguarany.wordpress.com/271/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cguarany.wordpress.com&amp;blog=12303349&amp;post=271&amp;subd=cguarany&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cguarany.wordpress.com/2010/04/17/exercise-13-shopping-cart-specifications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>43.513492 -79.882802</georss:point>
		<geo:lat>43.513492</geo:lat>
		<geo:long>-79.882802</geo:long>
		<media:content url="http://1.gravatar.com/avatar/f4293906ad91fad8d15afdc092787f09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cguarany</media:title>
		</media:content>

		<media:content url="http://cguarany.files.wordpress.com/2010/04/itc565.png" medium="image">
			<media:title type="html">ShoppingCartClassDiagram</media:title>
		</media:content>
	</item>
	</channel>
</rss>
