<?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>ajaxtime.com &#187; JavaScript</title>
	<atom:link href="http://www.ajaxtime.com/tag/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ajaxtime.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 13 Apr 2010 14:41:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Pro JavaScript Techniques</title>
		<link>http://www.ajaxtime.com/pro-javascript-techniques.html</link>
		<comments>http://www.ajaxtime.com/pro-javascript-techniques.html#comments</comments>
		<pubDate>Thu, 16 Apr 2009 12:27:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.ajaxtime.com/?p=121</guid>
		<description><![CDATA[Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites.]]></description>
			<content:encoded><![CDATA[<p>Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book does not waste any time covering things you already know, like basic syntax and structures.</p>
<p>Expert web developer and author John Resig concentrates on fundamental, vital topics – what modern JavaScripting is (and isn&#8217;t), the current state of browser support, and pitfalls to be wary of.</p>
<p>The book is organized into four sections: Modern JavaScript development – using JavaScript the object-oriented way, creating reusable code, plus testing and debugging DOM scripting – updating content and styles, plus events, and effect and event libraries Ajax – how Ajax works, overcoming problems, and using libraries to speed up development of Ajax applications The future of JavaScript – looking at cutting edge topics like JSON, HTML 5, and more.</p>
<p>All concepts are backed up by real-world examples and case studies, and John provides numerous reusable functions and classes to save you time in your development. There are also up-to-date reference appendixes for the DOM, events, browser support (including IE7), and frameworks – so you can look up specific details quickly and easily.</p>
<p>This has been the bulk of my work during the past eight months. I set out to write this book targeted at other programmers who were interested in JavaScript programming. I attempt to treat JavaScript like the interesting, and feature-full, programming language that it is.</p>
<p>Additionally, I attempted to provide a number of real-world case studies, covering topics such as: Blogs, Wikis, Image Galleries, and Form Validation. I&#8217;m working to provide working examples of all the case studies, along with all the code described in the book, here on the web site. Additionally, I&#8217;ll be updating this site with interesting tips and tricks that I encounter, related to JavaScript.</p>
<p>Please let me know if you have any questions concerning the book, its contents, this web site, or JavaScript in general &#8211; I&#8217;m here to help.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ajaxtime.com/pro-javascript-techniques.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Class Examples</title>
		<link>http://www.ajaxtime.com/class-examples.html</link>
		<comments>http://www.ajaxtime.com/class-examples.html#comments</comments>
		<pubDate>Fri, 10 Apr 2009 05:43:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.ajaxtime.com/?p=5</guid>
		<description><![CDATA[The first example will return an own class that has some public fields to be used on the client-side JavaScript.

]]></description>
			<content:encoded><![CDATA[<p>The first example will return an own class that has some public fields to be used on the client-side JavaScript.</p>
<p>public class MyClass<br />
{<br />
public string FirstName = &#8220;&#8221;;<br />
public string FamilyName = &#8220;&#8221;;<br />
public int Age = 0;<br />
}</p>
<p>Click here to return an instance of the above class.</p>
<p>It is also working if you inherit from a class and add your own properties to the new class.</p>
<p>public class MyInheritedClass : MyClass<br />
{<br />
public double SizeInMeters = 0.0;<br />
public Guid ID = Guid.Empty;<br />
}</p>
<p>Click here to get an MyInheritedClass object.</p>
<p>Michael&#8217;s Blog<br />
Passing a own class back to the server</p>
<p>Next we want to pass the MyClass object back to the server. The first call will get an MyClass object from the server like we have done above. Then we want to modify the .FirstName property on the client, submit the object to the server, modify the .FamilyName there and see the results.</p>
<p>function doTest3() {<br />
// synchronous call to the server-side method to get an MyClass object<br />
var p = AJAXDemo.Examples.Classes.Demo.GetMyClass().value;</p>
<p>p.FirstName = &#8220;CLIENT-SIDE CHANGE&#8221;; // change one property<br />
AJAXDemo.Examples.Classes.Demo.PutMyClass(p, doTest3_callback);<br />
p = null;<br />
}</p>
<p>[AjaxMethod]<br />
public MyClass PutMyClass(MyClass c)<br />
{<br />
c.FamilyName = &#8220;SERVER-SIDE CHANGE&#8221;; // change one property<br />
return c;<br />
}</p>
<p>Click here to run the test!<br />
Create converters for your classes</p>
<p>One new feature is the use of converters to serialize a .NET object or deserialize a JSON string. In this example I am using a custom IJavaScriptConverter. This converter will return a new class on the client-side JavaScript that may have more properties or methods that are not returned using the built-in custom object converter (which will only return public fields and properties).</p>
<p>function doTest4() {<br />
var p = AJAXDemo.Examples.Classes.Demo.GetPerson().value; // synchronous call to the server-side method</p>
<p>// access the properties of the Person object here<br />
alert(p.FirstName);</p>
<p>// Now, we want to save it, we call the save method of the instance<br />
// and get a boolean if succeded.<br />
var b = p.save();<br />
}</p>
<p>Click here to get an Person instance and save the object using a method from the instance.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ajaxtime.com/class-examples.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
