<?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>Coskun SUNALI &#124; .net framework, c#, asp.net, atlas, visual studio, iis and everything else &#187; jQuery</title>
	<atom:link href="http://sunali.com/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://sunali.com</link>
	<description>Coşkun SUNALI</description>
	<lastBuildDate>Mon, 22 Nov 2010 13:42:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Introduction to jQuery and jQuery Selectors</title>
		<link>http://sunali.com/2010/02/03/introduction-to-jquery-and-jquery-selectors/</link>
		<comments>http://sunali.com/2010/02/03/introduction-to-jquery-and-jquery-selectors/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 14:27:30 +0000</pubDate>
		<dc:creator>Coskun SUNALI</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://sunali.com/?p=425</guid>
		<description><![CDATA[Please note that jQuery is dual licensed under the MIT and GPL licenses. Short History and Current Status The initial idea of developing a Javascript library that uses Pseudo-CSS Selectors to bind Javascript functions to HTML elements and to manipulate DOM elements using Javascript belongs to Ben Nolan with a library called Behaviour. John Resig, [...]]]></description>
			<content:encoded><![CDATA[<p><em>Please note that jQuery is dual licensed under the MIT and GPL licenses. </em></p>
<h2>Short History and Current Status</h2>
<p>The initial idea of developing a Javascript library that uses <a href="http://www.w3.org/TR/REC-CSS2/selector.html" target="_blank">Pseudo-CSS Selectors</a> to  bind Javascript functions to HTML elements and to manipulate DOM elements using  Javascript belongs to <a href="http://bennolan.com/" target="_blank">Ben Nolan</a> with a  library called Behaviour.</p>
<p>John Resig, a developer who was unhappy with Behaviour&#8217;s features and syntax,  <a href="http://ejohn.org/blog/selectors-in-javascript/" target="_blank">blogged about his  compliments about the library</a> in August 2005. He did not provide any working  code or demo, however, the idea of him was obviously so cool that most of us are  using a library called jQuery that was mentioned within that blog post first.</p>
<p>First stable version of jQuery was released on 26 August 2006 and it is  version 1.4.1 as of today and can be downloaded from <a href="http://www.jquery.com/" target="_blank">www.jquery.com</a>.</p>
<h2>Definition of Parts</h2>
<p>jQuery consists of two main parts. One of them is being referred as jQuery  Core and the other one being jQuery UI.</p>
<p><a href="http://jquery.com/" target="_blank">jQuery Core</a> is the part that implements the  selectors feature and is responsible for handling/binding events, DOM  manipulation and Ajax.</p>
<p><a href="http://jqueryui.com/" target="_blank">jQuery UI</a>, on the other hand, handles  animations, provides support for effects, themes, widgets, etc. jQuery UI is  developed on top of jQuery Core.</p>
<p>You do not necessarily work with jQuery UI to take advantage of using jQuery  for development, however, you will find yourself doing that after a while since  some of the plug-ins that you may want to use might be requiring jQuery UI  library.</p>
<h2>Advantages of Using jQuery</h2>
<p>Being one of the essentials of web development for many web application  and/or HTML developers, jQuery simplifies most of the tasks that you would like  to achieve using Javascript with the huge plug-in database and what is more, it  takes important problems like cross-browser issues away from your coding  pleasure.</p>
<p>We can list the advantages of using jQuery as follows. Please remember that  there can be a lot more that I forget to mention.</p>
<ul>
<li>jQuery is cross-browser. Both jQuery Core and jQuery UI supports IE 6.0+, FF  2+, Safari 3.0+, Opera 9.0+ and Chrome. (Please do not forget that  3<sup>rd</sup> party plug-ins that the community fellows or individuals develop  might support some of these browsers and some not.)</li>
<li>jQuery supports what you are used to use and upcoming standards. CSS 3,  Json, etc.</li>
<li>jQuery is extensible. Objects in jQuery can be extended with your own  implementations. Yes, in an object oriented way.</li>
<li>jQuery is independent. What programming language you use does not matter.  Since jQuery is a Javascript library, all it needs is a browser to run.  Microsoft supports jQuery by providing jQuery IntelliSense in Visual Studio,  even providing the &#8220;.js&#8221; files within the ASP.NET Web Application project  template in Visual Studio 2010. A lot of PHP developers use jQuery as well. Both  ASP.NET and PHP developers support the community by developing jQuery plug-ins  to be used by other developers.</li>
<li>jQuery is open source. You know what you are working with and you can dig  into the code if you need to debug some stuff.</li>
<li>jQuery has a lot of plug-ins. As we, all developers , say &#8220;No need to  reinvent the wheel&#8221;. Indeed, there really is not any reason to do that. Just  pick up the plug-ins you want to use from jQuery Plug-ins Repository at <a href="http://plugins.jquery.com/" target="_blank">http://plugins.jquery.com/</a> and start using  them.</li>
<li>jQuery is lightweight. The regular (uncompressed) size of the jQuery.js file  is 157 kilobytes for version 1.4.1. You may want to use the regular version in  case you want to debug what is going on deep in the library. Once you are ready  to go live, just start using the Minified (Gzipped) version of jQuery which is  only 23 kilobytes in size for version 1.4.1.</li>
</ul>
<h2>Who Uses jQuery So Far?</h2>
<ul>
<li>Microsoft</li>
<li>Google</li>
<li>Facebook</li>
<li>Digg</li>
<li>Netflix</li>
<li>Mozilla</li>
<li>WordPress</li>
<li>Drupal</li>
</ul>
<p>And a lot more.</p>
<h2>What Are Selectors?</h2>
<p>Selectors are the identifiers that you can use to access HTML elements in the  DOM. There are several options to achieve that. You can access an element using  its tag name, using its ID, using the CSS selectors it has been assigned or  combining any of these with attribute selectors. For instance selecting all  &#8220;input&#8221; tags that has a type of &#8220;submit&#8221;.</p>
<p>Some basic selectors can be seen below.</p>
<p><strong>$(&#8220;*&#8221;)</strong></p>
<p>This is an &#8220;All Selector&#8221; and will select all elements within the DOM. It is  known to be extremely slow when your page contains too many HTML elements within  the DOM.</p>
<p><strong>$(&#8220;#myElement&#8221;)</strong></p>
<p>This is an &#8220;ID Selector&#8221; and will select the HTML element that has an ID  attribute of &#8220;myElement&#8221;. Please see the &#8220;#&#8221; prepended to the ID.</p>
<p><strong>$(&#8220;#myElement &gt; *&#8221;)</strong></p>
<p>This is a &#8220;Child Selector&#8221; and will select all the children elements of  &#8220;myElement&#8221; element. However, the selected elements will be only the first level  children elements of the parent element. To achieve that and select any children  of children elements as well, you may simply remove the &#8220;&gt;&#8221; char and make it  as $(&#8220;#myElement *&#8221;).</p>
<p><strong>$(&#8220;.black&#8221;)</strong></p>
<p>This is a &#8220;Class Selector&#8221; and will select any type of element that has a  &#8220;black&#8221; CSS class assigned. E.g.: <em>&lt;input type=&#8221;text&#8221; class=&#8221;black&#8221; /&gt;</em> or <em>&lt;div class=&#8221;black&#8221;&gt;&lt;/div&gt;</em>.</p>
<p><strong>$(&#8220;div&#8221;)</strong></p>
<p>This is an &#8220;Element Selector&#8221; and will select all &#8220;div&#8221; elements. &#8220;div&#8221; is an  example here and can be img, input, a, table or any other tag name.</p>
<p><strong>$(&#8220;div.black&#8221;)</strong></p>
<p>This is again an &#8220;Element Selector&#8221; but together with a &#8220;Class Selector&#8221; and  will select the &#8220;div&#8221; element that has a &#8220;black&#8221; CSS class assigned. E.g.:  <em>&lt;div class=&#8221;black&#8221;&gt;&lt;/div&gt;</em>.</p>
<p><strong>$(&#8220;#myElement div.black&#8221;)</strong></p>
<p>This selector will select all &#8220;black&#8221; CSS class assigned &#8220;div&#8221; elements that  is placed under &#8220;myElement&#8221; element.</p>
<p><strong>$(&#8220;:submit&#8221;)</strong></p>
<p>This is a type selector and will select any input element that has a type of  &#8220;submit&#8221;. E.g.: <em>&lt;input type=&#8221;submit&#8221; /&gt;</em>. There are many other  selectors similar to this one. :reset, :radio, :text, :checkbox, :checked are to  be listed for instance.</p>
<p><strong>$(&#8220;div[attributeName='value']&#8220;)</strong></p>
<p>This is an &#8220;Attribute Equals Selector&#8221; and will select any &#8220;div&#8221; element that  has an attribute of &#8220;attributeName&#8221; and a value of &#8220;value&#8221; within the attribute.  There are other attribute selectors like Attribute Contains, Ends With, Not  Equal, Starts With selectors.</p>
<p>For a complete list of jQuery selectors, please refer to <a href="http://api.jquery.com/category/selectors/" target="_blank">http://api.jquery.com/category/selectors/</a>.</p>
<p>Please do not forget to download the sample Web Site project from <a href="http://sunali.com/files/2010/02/IntroductionToJQueryAndjQuerySelectors_SampleCode.zip">here</a>.  The website was created using Visual Studio 2010 Beta 2.</p>
]]></content:encoded>
			<wfw:commentRss>http://sunali.com/2010/02/03/introduction-to-jquery-and-jquery-selectors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery and ASP.NET</title>
		<link>http://sunali.com/2008/10/07/jquery-and-aspnet/</link>
		<comments>http://sunali.com/2008/10/07/jquery-and-aspnet/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 07:23:24 +0000</pubDate>
		<dc:creator>Coskun SUNALI</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://sunali.com/?p=195</guid>
		<description><![CDATA[A great news, Microsoft will be shipping jQuery with Visual Studio soon. The first shipment will be to support jQuery intellisense in Visual Studio as a free download. For details please click here.]]></description>
			<content:encoded><![CDATA[<p>A great news, Microsoft will be shipping jQuery with Visual Studio soon. The first shipment will be to support jQuery intellisense in Visual Studio as a free download.</p>
<p><a href="http://weblogs.asp.net/scottgu/archive/2008/09/28/jquery-and-microsoft.aspx" target="_blank">For details please click here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sunali.com/2008/10/07/jquery-and-aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

