<?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>TECH SOFTWARE SOLUTIONS</title>
	<atom:link href="http://tech-softwaresolutions.com/feed" rel="self" type="application/rss+xml" />
	<link>http://tech-softwaresolutions.com</link>
	<description>Software Solutions</description>
	<lastBuildDate>Sat, 19 Nov 2011 09:14:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>MySql Tutorial</title>
		<link>http://tech-softwaresolutions.com/mysql-tutorial</link>
		<comments>http://tech-softwaresolutions.com/mysql-tutorial#comments</comments>
		<pubDate>Sat, 19 Nov 2011 09:11:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tech-softwaresolutions.com/?p=50</guid>
		<description><![CDATA[The MySQL Configuration File: my.cnf This file, entitled my.cnf, stores default startup options for both the server and for clients. Correct configuration of this file can go a long way towards optimizing MySQL, as various memory buffer settings and other valuable options can be set here. Interestingly, the scope of this file can be set according [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The MySQL Configuration File: my.cnf</strong></p>
<p>This file, entitled <em>my.cnf</em>, stores default startup options for both the server and for clients. Correct configuration of this file can go a long way towards optimizing MySQL, as various memory buffer settings and other valuable options can be set here.</p>
<p>Interestingly, the scope of this file can be set according to its location. The settings will be considered global to all MySQL servers if stored in <em>/etc/my.cnf</em>. It will be global to a specific server if located in the directory where the MySQL databases are stored (<em>/usr/local/mysql/data</em> for a binary installation, or <em>/usr/local/var</em> for a source installation). Finally, its scope could be limited to a specific user if located in the home directory of the MySQL user (<em>~/.my.cnf</em>). Keep in mind that even if MySQL does locate a my.cnf file in /etc/my.cnf (global to all MySQL servers on that machine), it will <em>continue</em> its search for a server-specific file, and then a user-specific file. You can think of the final configuration settings as being the result of the /etc/my.cnf, mysql-data-dir/my.cnf, and ~/.my.cnf files.</p>
<h1>MySQL Table Types</h1>
<p>MySQL supports various of table types or storage engines to allow you to optimize your database. The table types are available in MySQL are:</p>
<ul>
<li>ISAM</li>
<li>MyISAM</li>
<li>InnoDB</li>
<li>BerkeleyDB (BDB)</li>
<li>MERGE</li>
<li>HEAP</li>
</ul>
<p>The most important feature to make all the table types above distinction is transaction-safe or not. Only InnoDB and BDB tables are transaction safe and only MyISAM tables support full-text indexing and searching feature. MyISAM is also the default table type when you create table without declaring which storage engine to use. Here are some major features of each table types:</p>
<p>ISAM</p>
<p>ISAM had been deprecated and removed from version 5.x. All of it functionality entire replace by MyISAM. ISAM table has a hard size 4GB and is not portable.</p>
<p>MyISAM</p>
<p>MyISAM table type is default when you create table. MyISAM table work very fast but not transaction-safe. The size of MyISAM table depends on the operating system and the data file are portable from system to system. With MyISAM table type, you can have 64 keys per table and maximum key length of 1024 bytes.</p>
<p>InnoDB</p>
<p>Different from MyISAM table type, InnoDB table are transaction safe and supports row-level locking. Foreign keys are supported in InnoDB tables. The data file of InnoDB table can be stored in more than one file so the size of table depends on the disk space. Like the MyISAM table type, data file of InnoDB is portable from system to system. The disadvantage of InnoDB in comparison with MyISAM is it take more disk space.</p>
<p>BDB</p>
<p>BDB is similar to InnoDB in transaction safe. It supports page level locking but data file are not portable.</p>
<p>MERGE</p>
<p>Merge table type is added to treat multiple MyISAM tables as a single table so it remove the size limitation from MyISAM tables.</p>
<p>HEAP</p>
<p>Heap table is stored in memory so it is the fastest one. Because of storage mechanism, the data will be lost when the power failure and sometime it can cause the server run out of memory. Heap tables do not support columns with AUTO_INCREMENT, BLOB and TEXT characteristics.</p>
<h1>MySQL Data Types</h1>
<p>Numeric Data Types</p>
<p>You can find all SQL standard numeric types in MySQL including exact number data type and approximate numeric data types including integer, fixed-point and floating point. In addtion, MySQL also supports BIT data type for storing bit field values. Numeric types can be signed or unsigned except BIT type. The following table shows you the summary of numeric types in MySQL:</p>
<table border="1" cellspacing="0" cellpadding="0">
<thead>
<tr>
<td><strong>Numeric    Types</strong></td>
<td><strong>Description</strong></td>
</tr>
</thead>
<tbody>
<tr>
<td>TINYINT</td>
<td>A very small integer</td>
</tr>
<tr>
<td>SMALLINT</td>
<td>A small integer</td>
</tr>
<tr>
<td>MEDIUMINT</td>
<td>A medium-sized integer</td>
</tr>
<tr>
<td>INT</td>
<td>A standard integer</td>
</tr>
<tr>
<td>BIGINT</td>
<td>A large integer</td>
</tr>
<tr>
<td>DECIMAL</td>
<td>A fixed-point number</td>
</tr>
<tr>
<td>FLOAT</td>
<td>A single-precision floating-point   number</td>
</tr>
<tr>
<td>DOUBLE</td>
<td>A double-precision floating-point   number</td>
</tr>
<tr>
<td>BIT</td>
<td>A bit field</td>
</tr>
</tbody>
</table>
<p>String Data Types</p>
<p>In MySQL, string can hold anything from plain text to binary data such as images and files. String can be compared and searched based on pattern matching by using LIKE clause or regular expression. The table below shows you the string data types in MySQL:</p>
<table border="1" cellspacing="0" cellpadding="0">
<thead>
<tr>
<td><strong>String    Types</strong></td>
<td><strong>Description</strong></td>
</tr>
</thead>
<tbody>
<tr>
<td>CHAR</td>
<td>A fixed-length non-binary   (character) string</td>
</tr>
<tr>
<td>VARCHAR</td>
<td>A variable-length non-binary   string</td>
</tr>
<tr>
<td>BINARY</td>
<td>A fixed-length binary string</td>
</tr>
<tr>
<td>VARBINARY</td>
<td>A variable-length binary string</td>
</tr>
<tr>
<td>TINYBLOB</td>
<td>A very small BLOB (binary large   object)</td>
</tr>
<tr>
<td>BLOB</td>
<td>A small BLOB</td>
</tr>
<tr>
<td>MEDIUMBLOB</td>
<td>A medium-sized BLOB</td>
</tr>
<tr>
<td>LONGBLOB</td>
<td>A large BLOB</td>
</tr>
<tr>
<td>TINYTEXT</td>
<td>A very small non-binary string</td>
</tr>
<tr>
<td>TEXT</td>
<td>A small non-binary string</td>
</tr>
<tr>
<td>MEDIUMTEXT</td>
<td>A medium-sized non-binary string</td>
</tr>
<tr>
<td>LONGTEXT</td>
<td>A large non-binary string</td>
</tr>
<tr>
<td>ENUM</td>
<td>An enumeration; each column value   may be assigned one enumeration member</td>
</tr>
<tr>
<td>SET</td>
<td>A set; each column value may be   assigned zero or more set members</td>
</tr>
</tbody>
</table>
<p>Date and Time Data Types</p>
<p>MySQL provides types for date and time and combination of date and time. In addition, MySQL also provide timestamp data type for tracking last change on a record. If you just want to store the year without date and month, you can use YEAR data type. Here is the table which showing MySQL date and type data types:</p>
<table border="1" cellspacing="0" cellpadding="0">
<thead>
<tr>
<td><strong>Date    and Time Types</strong></td>
<td><strong>Description</strong></td>
</tr>
</thead>
<tbody>
<tr>
<td width="104">DATE</td>
<td width="171">A date value in &#8216;CCYY-MM-DD&#8217;   format</td>
</tr>
<tr>
<td>TIME</td>
<td>A time value in &#8216;hh:mm:ss&#8217; format</td>
</tr>
<tr>
<td>DATETIME</td>
<td>A date and time value in   &#8216;CCYY-MM-DD hh:mm:ss&#8217; format</td>
</tr>
<tr>
<td>TIMESTAMP</td>
<td>A timestamp value in &#8216;CCYY-MM-DD   hh:mm:ss&#8217; format</td>
</tr>
<tr>
<td>YEAR</td>
<td>A year value in CCYY or YY format</td>
</tr>
</tbody>
</table>
<p>Spatial Data Types</p>
<p>MySQL support many spatial data types as below table which contains various kind of geometrical and geographical values.</p>
<table border="1" cellspacing="0" cellpadding="0">
<thead>
<tr>
<td><strong>Spatial    Data Types</strong></td>
<td><strong>Description</strong></td>
</tr>
</thead>
<tbody>
<tr>
<td>GEOMETRY</td>
<td>A spatial value of any type</td>
</tr>
<tr>
<td>POINT</td>
<td>A point (a pair of X Y   coordinates)</td>
</tr>
<tr>
<td>LINESTRING</td>
<td>A curve (one or more POINT values)</td>
</tr>
<tr>
<td>POLYGON</td>
<td>A polygon</td>
</tr>
<tr>
<td>GEOMETRYCOLLECTION</td>
<td>A collection of GEOMETRY values</td>
</tr>
<tr>
<td>MULTILINESTRING</td>
<td>A collection of LINESTRING values</td>
</tr>
<tr>
<td>MULTIPOINT</td>
<td>A collection of POINT values</td>
</tr>
<tr>
<td>MULTIPOLYGON</td>
<td>A collection of POLYGON values</td>
</tr>
</tbody>
</table>
<p>Creating Tables</p>
<p>To create table we use the <strong>CREATE TABLE</strong> statement. The typical form of SQL CREATE TABLE statement is as follows:</p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>1</td>
<td colspan="2">CREATE TABLE [IF NOT EXISTS]   table_name(</td>
</tr>
<tr>
<td>2</td>
<td>column_list</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>3</td>
<td>)</td>
</tr>
</tbody>
</table>
<ul>
<li>MySQL supports IF NOT EXISTS after CREATE TABLE statement to prevent you from error of creating table which already exists on the database server.</li>
<li><em>table_name</em> is the name of table you would like to create. After that, you can define a set of columns which is usually in this form: column_name data_type(size) [NOT] NULL.</li>
<li>You can specify the storage engine type you prefer to use for the table. MySQL supports various storage engines such as InnoDB, MyISAM&#8230; If you don&#8217;t explicit declare storage engine type, MySQL will use MyISAM by default.</li>
</ul>
<p>In our <strong>classicmodels</strong> sample database, to create <strong><em>employees </em></strong>table, we can use the CREATE TABLE statement as follows:</p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>01</td>
<td>CREATE TABLE employees   (</td>
</tr>
<tr>
<td>02</td>
<td colspan="2">employeeNumber into(11) NOT NULL,</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>03</td>
<td>lastName varchar(50) NOT NULL,</td>
</tr>
<tr>
<td>04</td>
<td>firstName varchar(50) NOT NULL,</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>05</td>
<td>extension varchar(10) NOT NULL,</td>
</tr>
<tr>
<td>06</td>
<td>email varchar(100) NOT NULL,</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>07</td>
<td>officeCode varchar(10) NOT NULL,</td>
</tr>
<tr>
<td>08</td>
<td>reportsTo int(11) default NULL,</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>09</td>
<td colspan="2">jobTitle varchar(50) NOT NULL,</td>
</tr>
<tr>
<td>10</td>
<td>PRIMARY KEY  (employeeNumber)</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>11</td>
<td>);</td>
</tr>
</tbody>
</table>
<p>First, you specify table name <em>employees</em> after CREATE TABLE statement.</p>
<p>Then you list the columns of the table with their attributes such as data type, size, NOT NULL.</p>
<p>And finally you specify the primary key of the table, in this case the primary key is <em>employeeNumber</em>.</p>
<p>If the table has more than one primary key, you can seperate them by a comma. For example, the <em>payments</em> table has two primary keys <em>customerNumber </em>and <em>checkNumber</em>. You can create <strong><em>payments </em></strong>table by executing following query:</p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>1</td>
<td>CREATE TABLE payments   (</td>
</tr>
<tr>
<td>2</td>
<td colspan="2">customerNumber int(11) NOT NULL,</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>3</td>
<td>checkNumber varchar(50) NOT NULL,</td>
</tr>
<tr>
<td>4</td>
<td>paymentDate   datetime NOT NULL,</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>5</td>
<td colspan="2">amount double NOT NULL,</td>
</tr>
<tr>
<td>6</td>
<td>PRIMARY KEY  (customerNumber,checkNumber)</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>7</td>
<td>);</td>
</tr>
</tbody>
</table>
<p>Note taht by default MySQL uses MyISAM storage engine for the table it created.</p>
<p>Showing and Describing Tables in a Database</p>
<p>In order to show all tables in a database, you use SHOW TABLES statment. By executing theSHOW TABLES statement, MySQL will returns all tables&#8217; name of the current selected database you&#8217;re working with.</p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>1</td>
<td>SHOW TABLES</td>
</tr>
</tbody>
</table>
<p>Here is the output of <strong><em>classicmodels </em></strong>database:</p>
<p>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+</p>
<p>| Tables_in_classicmodels |</p>
<p>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+</p>
<p>| customers               |</p>
<p>| employees               |</p>
<p>| offices                 |</p>
<p>| orderdetails            |</p>
<p>| orders                  |</p>
<p>| payments                |</p>
<p>| productlines            |</p>
<p>| products                |</p>
<p>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+</p>
<p>8 rows in set (0.00 sec)</p>
<p>In some cases, you need to see the table&#8217;s metadata, you can use DESCRIBE statement as follows:</p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>1</td>
<td>DESCRIBE table_name;</td>
</tr>
</tbody>
</table>
<p>For instance, we can describe employees table like below query:</p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>1</td>
<td>DESCRIBE employees;</td>
</tr>
</tbody>
</table>
<p>The output return from the database server:</p>
<p>+&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;+&#8212;&#8211;+&#8212;&#8212;&#8212;+&#8212;&#8212;-+</p>
<p>| Field          | Type         | Null | Key | Default | Extra |</p>
<p>+&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;+&#8212;&#8211;+&#8212;&#8212;&#8212;+&#8212;&#8212;-+</p>
<p>| employeeNumber | int(11)      | NO   | PRI | NULL    |       |</p>
<p>| lastName       | varchar(50)  | NO   |     | NULL    |       |</p>
<p>| firstName      | varchar(50)  | NO   |     | NULL    |       |</p>
<p>| extension      | varchar(10)  | NO   |     | NULL    |       |</p>
<p>| email          | varchar(100) | NO   |     | NULL    |       |</p>
<p>| officeCode     | varchar(10)  | NO   |     | NULL    |       |</p>
<p>| reportsTo      | int(11)      | YES  |     | NULL    |       |</p>
<p>| jobTitle       | varchar(50)  | NO   |     | NULL    |       |</p>
<p>+&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;+&#8212;&#8211;+&#8212;&#8212;&#8212;+&#8212;&#8212;-+</p>
<p>8 rows in set (0.02 sec)</p>
<p><strong> </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://tech-softwaresolutions.com/mysql-tutorial/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jquery Tutorial</title>
		<link>http://tech-softwaresolutions.com/jquery-tutorial</link>
		<comments>http://tech-softwaresolutions.com/jquery-tutorial#comments</comments>
		<pubDate>Sat, 19 Nov 2011 05:15:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tech-softwaresolutions.com/?p=45</guid>
		<description><![CDATA[jQuery is a JavaScript Library The jQuery library contains the following features: • HTML element selections • HTML element manipulation • CSS manipulation • HTML event functions • JavaScript Effects and animations • HTML DOM traversal and modification • AJAX • Utilities jQuery Syntax The jQuery syntax is tailor made for selecting HTML elements and [...]]]></description>
			<content:encoded><![CDATA[<p>jQuery is a JavaScript Library<br />
<strong>The jQuery library contains the following features:</strong><br />
•	HTML element selections<br />
•	HTML element manipulation<br />
•	CSS manipulation<br />
•	HTML event functions<br />
•	JavaScript Effects and animations<br />
•	HTML DOM traversal and modification<br />
•	AJAX<br />
•	Utilities<br />
<strong>jQuery Syntax</strong><br />
The jQuery syntax is tailor made for selecting HTML elements and perform some action on the element(s).<br />
Basic syntax is: $(selector).action()<br />
•	A dollar sign to define jQuery<br />
•	A (selector) to &#8220;query (or find)&#8221; HTML elements<br />
•	A jQuery action() to be performed on the element(s)<br />
<strong>Examples:</strong><br />
$(this).hide() &#8211; hides current element<br />
$(&#8220;p&#8221;).hide() &#8211; hides all paragraphs<br />
$(&#8220;p.test&#8221;).hide() &#8211; hides all paragraphs with class=&#8221;test&#8221;<br />
$(&#8220;#test&#8221;).hide() &#8211; hides the element with id=&#8221;test&#8221;<br />
The Document Ready Function<br />
You might have noticed that all jQuery methods, in our examples, are inside a document.ready() function:<br />
$(document).ready(function(){</p>
<p>// jQuery functions go here&#8230;</p>
<p>});<br />
This is to prevent any jQuery code from running before the document is finished loading (is ready).<br />
Here are some examples of actions that can fail if functions are run before the document is fully loaded:<br />
•	Trying to hide an element that doesn&#8217;t exist<br />
•	Trying to get the size of an image that is not loaded</p>
<p>jQuery Element Selectors<br />
jQuery uses CSS selectors to select HTML elements.<br />
$(&#8220;p&#8221;) selects all</p>
<p>elements.<br />
$(&#8220;p.intro&#8221;) selects all</p>
<p>elements with class=&#8221;intro&#8221;.<br />
$(&#8220;p#demo&#8221;) selects all</p>
<p>elements with id=&#8221;demo&#8221;.<br />
________________________________________<br />
jQuery Attribute Selectors<br />
jQuery uses XPath expressions to select elements with given attributes.<br />
$(&#8220;[href]&#8220;) select all elements with an href attribute.<br />
$(&#8220;[href='#']&#8220;) select all elements with an href value equal to &#8220;#&#8221;.<br />
$(&#8220;[href!='#']&#8220;) select all elements with an href attribute NOT equal to &#8220;#&#8221;.<br />
$(&#8220;[href$='.jpg']&#8220;) select all elements with an href attribute that ends with &#8220;.jpg&#8221;.<br />
________________________________________<br />
<strong>jQuery CSS Selectors</strong><br />
jQuery CSS selectors can be used to change CSS properties for HTML elements.<br />
The following example changes the background-color of all p elements to yellow:<br />
Example<br />
$(&#8220;p&#8221;).css(&#8220;background-color&#8221;,&#8221;yellow&#8221;);</p>
<p>Some More Examples<br />
Syntax	Description<br />
$(this)	Current HTML element<br />
$(&#8220;p&#8221;)	All</p>
<p>elements<br />
$(&#8220;p.intro&#8221;)	All</p>
<p>elements with class=&#8221;intro&#8221;<br />
$(&#8220;p#intro&#8221;)	All</p>
<p>elements with id=&#8221;intro&#8221;<br />
$(&#8220;p#intro:first&#8221;)	The first</p>
<p>element with id=&#8221;intro&#8221;<br />
$(&#8220;.intro&#8221;)	All elements with class=&#8221;intro&#8221;<br />
$(&#8220;#intro&#8221;)	The first element with id=&#8221;intro&#8221;<br />
$(&#8220;ul li:first&#8221;)	The first</p>
<p><strong>element of each</strong></p>
<div>$(&#8220;[href$='.jpg']&#8220;)	All elements with an href attribute that ends with &#8220;.jpg&#8221;<br />
$(&#8220;div#intro .head&#8221;)	All elements with class=&#8221;head&#8221; inside a element with id=&#8221;intro&#8221;</p>
<p>jQuery Name Conflicts<br />
jQuery uses the $ sign as a shortcut for jQuery.<br />
Some other JavaScript libraries also use the dollar sign for their functions.<br />
The jQuery noConflict() method specifies a custom name (like jq), instead of using the dollar sign.</p>
<p><strong>jQuery Events</strong><br />
Here are some examples of event methods in jQuery:<br />
Event Method	Description<br />
$(document).ready(function)  	Binds a function to the ready event of a document<br />
(when the document is finished loading)<br />
$(selector).click(function)	Triggers, or binds a function to the click event of selected elements<br />
$(selector).dblclick(function)	Triggers, or binds a function to the double click event of selected elements<br />
$(selector).focus(function)	Triggers, or binds a function to the focus event of selected elements<br />
$(selector).mouseover(function)	Triggers, or binds a function to the mouseover event of selected elements</p>
<p><strong>jQuery Effects</strong><br />
Here are some examples of effect functions in jQuery:<br />
Function	Description<br />
$(selector).hide()	Hide selected elements<br />
$(selector).show()	Show selected elements<br />
$(selector).toggle()	Toggle (between hide and show) selected elements<br />
$(selector).slideDown()	Slide-down (show) selected elements<br />
$(selector).slideUp()	Slide-up (hide) selected elements<br />
$(selector).slideToggle()	Toggle slide-up and slide-down of selected elements<br />
$(selector).fadeIn()	Fade in selected elements<br />
$(selector).fadeOut()	Fade out selected elements<br />
$(selector).fadeTo()	Fade out selected elements to a given opacity<br />
$(selector).animate()	Run a custom animation on selected elements</p>
<p><strong>jQuery HTML Manipulation</strong></p>
<p>jQuery contains powerful methods (functions) for changing and manipulating HTML elements and attributes.<br />
________________________________________<br />
Changing HTML Content<br />
$(selector).html(content)<br />
The html() method changes the contents (innerHTML) of matching HTML elements.<br />
Example<br />
$(&#8220;p&#8221;).html(&#8220;W3Schools&#8221;);</p>
<p>jQuery HTML Manipulation Methods From This Page:<br />
Function	Description<br />
$(selector).html(content)	Changes the (inner) HTML of selected elements<br />
$(selector).append(content)	Appends content to the (inner) HTML of selected elements<br />
$(selector).after(content)	Adds HTML after selected elements</p>
<p>jQuery CSS Methods From this Page:<br />
CSS Properties	Description<br />
$(selector).css(name)	Get the style property value of the first matched element<br />
$(selector).css(name,value)	Set the value of one style property for matched elements<br />
$(selector).css({properties})	Set multiple style properties for matched elements<br />
$(selector).height(value)	Set the height of matched elements<br />
$(selector).width(value)	Set the width of matched elements</p>
<p><strong>jQuery Selectors</strong><br />
Use our excellent jQuery Selector Tester to experiment with the different selectors.<br />
Selector	Example	Selects<br />
*<br />
$(&#8220;*&#8221;)	All elements<br />
#id<br />
$(&#8220;#lastname&#8221;)	The element with id=lastname<br />
.class<br />
$(&#8220;.intro&#8221;)	All elements with class=&#8221;intro&#8221;<br />
element<br />
$(&#8220;p&#8221;)	All p elements<br />
.class.class	$(&#8220;.intro.demo&#8221;)	All elements with the classes &#8220;intro&#8221; and &#8220;demo&#8221;</p>
<p>:first<br />
$(&#8220;p:first&#8221;)	The first p element<br />
:last<br />
$(&#8220;p:last&#8221;)	The last p element<br />
:even<br />
$(&#8220;tr:even&#8221;)	All even tr elements<br />
 <img src='http://tech-softwaresolutions.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> dd<br />
$(&#8220;tr:odd&#8221;)	All odd tr elements</p>
<p>:eq(index)<br />
$(&#8220;ul li:eq(3)&#8221;)	The fourth element in a list (index starts at 0)<br />
:gt(no)<br />
$(&#8220;ul li:gt(3)&#8221;)	List elements with an index greater than 3<br />
:lt(no)<br />
$(&#8220;ul li:lt(3)&#8221;)	List elements with an index less than 3<br />
:not(selector)<br />
$(&#8220;input:not(:empty)&#8221;)	All input elements that are not empty</p>
<p>:header<br />
$(&#8220;:header&#8221;)	All header elements h1, h2 &#8230;<br />
:animated<br />
$(&#8220;:animated&#8221;)	All animated elements</p>
<p>:contains(text)<br />
$(&#8220;:contains(&#8216;W3Schools&#8217;)&#8221;)	All elements which contains the text<br />
:empty<br />
$(&#8220;:empty&#8221;)	All elements with no child (elements) nodes<br />
:hidden	$(&#8220;p:hidden&#8221;)	All hidden p elements<br />
:visible<br />
$(&#8220;table:visible&#8221;)	All visible tables</p>
<p>s1,s2,s3	$(&#8220;th,td,.intro&#8221;)	All elements with matching selectors</p>
<p>[attribute]<br />
$(&#8220;[href]&#8220;)	All elements with a href attribute<br />
[attribute=value]<br />
$(&#8220;[href='default.htm']&#8220;)	All elements with a href attribute value equal to &#8220;default.htm&#8221;<br />
[attribute!=value]<br />
$(&#8220;[href!='default.htm']&#8220;)	All elements with a href attribute value not equal to &#8220;default.htm&#8221;<br />
[attribute$=value]<br />
$(&#8220;[href$='.jpg']&#8220;)	All elements with a href attribute value ending with &#8220;.jpg&#8221;</p>
<p>:input<br />
$(&#8220;:input&#8221;)	All input elements<br />
:text<br />
$(&#8220;:text&#8221;)	All input elements with type=&#8221;text&#8221;<br />
:password<br />
$(&#8220;:password&#8221;)	All input elements with type=&#8221;password&#8221;<br />
:radio<br />
$(&#8220;:radio&#8221;)	All input elements with type=&#8221;radio&#8221;<br />
:checkbox<br />
$(&#8220;:checkbox&#8221;)	All input elements with type=&#8221;checkbox&#8221;<br />
:submit<br />
$(&#8220;:submit&#8221;)	All input elements with type=&#8221;submit&#8221;<br />
:reset<br />
$(&#8220;:reset&#8221;)	All input elements with type=&#8221;reset&#8221;<br />
:button<br />
$(&#8220;:button&#8221;)	All input elements with type=&#8221;button&#8221;<br />
:image<br />
$(&#8220;:image&#8221;)	All input elements with type=&#8221;image&#8221;<br />
:file<br />
$(&#8220;:file&#8221;)	All input elements with type=&#8221;file&#8221;</p>
<p>:enabled<br />
$(&#8220;:enabled&#8221;)	All enabled input elements<br />
:disabled<br />
$(&#8220;:disabled&#8221;)	All disabled input elements<br />
:selected<br />
$(&#8220;:selected&#8221;)	All selected input elements<br />
:checked<br />
$(&#8220;:checked&#8221;)	All checked input elements</p>
<p><strong>jQuery Event Methods</strong><br />
Event methods trigger, or bind a function to an event for all matching elements.<br />
Trigger example:<br />
$(&#8220;button&#8221;).click() &#8211; triggers the click event for a button element.<br />
Binding example:<br />
$(&#8220;button&#8221;).click(function(){$(&#8220;img&#8221;).hide()}) &#8211; binds a function to the click event.<br />
The following table lists all the methods used to handle events.<br />
Method	Description<br />
bind()<br />
Add one or more event handlers to matching elements<br />
blur()<br />
Triggers, or binds a function to the blur event of selected elements<br />
change()<br />
Triggers, or binds a function to the change event of selected elements<br />
click()<br />
Triggers, or binds a function to the click event of selected elements<br />
dblclick()<br />
Triggers, or binds a function to the dblclick event of selected elements<br />
delegate()<br />
Add one or more event handlers to current, or future, specified child elements of the matching elements<br />
die()<br />
Remove all event handlers added with the live() function<br />
error()<br />
Triggers, or binds a function to the error event of selected elements<br />
event.currentTarget	The current DOM element within the event bubbling phase<br />
event.data	Contains the optional data passed to jQuery.fn.bind when the current executing handler was bound<br />
event.isDefaultPrevented()<br />
Returns whether event.preventDefault() was called for the event object<br />
event.isImmediatePropagationStopped()	Returns whether event.stopImmediatePropagation() was called for the event object<br />
event.isPropagationStopped()	Returns whether event.stopPropagation() was called for the event object<br />
event.pageX<br />
The mouse position relative to the left edge of the document<br />
event.pageY<br />
The mouse position relative to the top edge of the document<br />
event.preventDefault()<br />
Prevents the default action of the event<br />
event.relatedTarget	The other DOM element involved in the event, if any<br />
event.result<br />
This attribute contains the last value returned by an event handler that was triggered by this event, unless the value was undefined<br />
event.stopImmediatePropagation()	Prevents other event handlers from being called<br />
event.stopPropagation()	Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event<br />
event.target<br />
The DOM element that initiated the event<br />
event.timeStamp<br />
This attribute returns the number of milliseconds since January 1, 1970, when the event is triggered<br />
event.type<br />
Describes the nature of the event<br />
event.which<br />
Which key or button was pressed for a key or button event<br />
focus()<br />
Triggers, or binds a function to the focus event of selected elements<br />
focusin()<br />
Binds a function to the focusin event of selected elements<br />
focusout()<br />
Binds a function to the focusout event of selected elements<br />
hover()<br />
Binds one or two functions to the hover event of selected elements<br />
keydown()<br />
Triggers, or binds a function to the keydown event of selected elements<br />
keypress()<br />
Triggers, or binds a function to the keypress event of selected elements<br />
keyup()<br />
Triggers, or binds a function to the keyup event of selected elements<br />
live()<br />
Add one or more event handlers to current, or future, matching elements<br />
load()<br />
Triggers, or binds a function to the load event of selected elements<br />
mousedown()<br />
Triggers, or binds a function to the mouse down event of selected elements<br />
mouseenter()<br />
Triggers, or binds a function to the mouse enter event of selected elements<br />
mouseleave()<br />
Triggers, or binds a function to the mouse leave event of selected elements<br />
mousemove()<br />
Triggers, or binds a function to the mouse move event of selected elements<br />
mouseout()<br />
Triggers, or binds a function to the mouse out event of selected elements<br />
mouseover()<br />
Triggers, or binds a function to the mouse over event of selected elements<br />
mouseup()<br />
Triggers, or binds a function to the mouse up event of selected elements<br />
one()<br />
Add one or more event handlers to matching elements. This handler can only be triggered once per element<br />
ready()<br />
Binds a function to the ready event of a document<br />
(when an HTML document is ready to use)<br />
resize()<br />
Triggers, or binds a function to the resize event of selected elements<br />
scroll()<br />
Triggers, or binds a function to the scroll event of selected elements<br />
select()<br />
Triggers, or binds a function to the select event of selected elements<br />
submit()<br />
Triggers, or binds a function to the submit event of selected elements<br />
toggle()<br />
Binds two or more functions to the toggle between for the click event for selected elements<br />
trigger()<br />
Triggers all events bound to the selected elements<br />
triggerHandler()<br />
Triggers all functions bound to a specified event for the selected elements<br />
unbind()<br />
Remove an added event handler from selected elements<br />
undelegate()<br />
Remove an event handler to selected elements, now or in the future<br />
unload()<br />
Triggers, or binds a function to the unload event of selected elements</p>
<p><strong>jQuery Effect Methods</strong><br />
The following table lists all the methods used to create animation effects.<br />
Method	Description<br />
animate()<br />
Performs a custom animation (of a set of CSS properties) for selected elements<br />
clearQueue()<br />
Removes all queued functions for the selected element<br />
delay()	Sets a delay for all queued functions for the selected element<br />
dequeue()	Runs the next queued functions for the selected element<br />
fadeIn()<br />
Gradually changes the opacity, for selected elements, from hidden to visible<br />
fadeOut()<br />
Gradually changes the opacity, for selected elements, from visible to hidden<br />
fadeTo()<br />
Gradually changes the opacity, for selected elements, to a specified opacity<br />
fadeToggle()<br />
hide()<br />
Hides selected elements<br />
queue()	Shows the queued functions for the selected element<br />
show()<br />
Shows hidden selected elements<br />
slideDown()<br />
Gradually changes the height, for selected elements, from hidden to visible<br />
slideToggle()<br />
Toggles between slideUp() and slideDown() for selected elements<br />
slideUp()<br />
Gradually changes the height, for selected elements, from visible to hidden<br />
stop()<br />
Stops a running animation on selected elements<br />
toggle()<br />
Toggles between hide() and show(), or custom functions, for selected elements</p>
<p><strong>jQuery HTML Methods</strong><br />
The following table lists all the methods used to manipulate the DOM.<br />
The methods below work for both HTML and XML documents. Exception: the html() method.<br />
<strong>Method	Description</strong><br />
addClass()<br />
Adds one or more classes (for CSS) to selected elements<br />
after()<br />
Inserts content after selected elements<br />
append()<br />
Inserts content at the end of (but still inside) selected elements<br />
appendTo()<br />
Inserts content at the end of (but still inside) selected elements<br />
attr()<br />
Sets or returns an attribute and value of selected elements<br />
before()<br />
Inserts content before selected elements<br />
clone()<br />
Makes a copy of selected elements<br />
detach()<br />
Removes (but keeps a copy of) selected elements<br />
empty()<br />
Removes all child elements and content from selected elements<br />
hasClass()<br />
Checks if any of the selected elements have a specified class (for CSS)<br />
html()<br />
Sets or returns the content of selected elements<br />
insertAfter()<br />
Inserts HTML markup or elements after selected elements<br />
insertBefore()<br />
Inserts HTML markup or elements before selected elements<br />
prepend()<br />
Inserts content at the beginning of (but still inside) selected elements<br />
prependTo()<br />
Inserts content at the beginning of (but still inside) selected elements<br />
remove()<br />
Removes selected elements<br />
removeAttr()<br />
Removes an attribute from selected elements<br />
removeClass()<br />
Removes one or more classes (for CSS) from selected elements<br />
replaceAll()<br />
Replaces selected elements with new content<br />
replaceWith()<br />
Replaces selected elements with new content<br />
text()<br />
Sets or returns the text content of selected elements<br />
toggleClass()<br />
Toggles between adding/removing one or more classes (for CSS) from selected elements<br />
unwrap()<br />
Removes the parent element of the selected elements<br />
val()<br />
Sets or returns the value attribute of the selected elements (form elements)<br />
wrap()<br />
Wraps specified HTML element(s) around each selected element<br />
wrapAll()<br />
Wraps specified HTML element(s) around all selected elements<br />
wrapInner()<br />
Wraps specified HTML element(s) around the content of each selected element</p>
<p><strong>jQuery CSS Methods</strong><br />
The following table lists all the methods used to manipulate CSS properties.<br />
Method	Description<br />
addClass()<br />
Adds one or more classes to selected elements<br />
css()<br />
Sets or returns one or more style properties for selected elements<br />
hasClass()<br />
Checks if any of the selected elements have a specified class<br />
height()<br />
Sets or returns the height of selected elements<br />
offset()<br />
Sets or returns the position (relative to the document) for selected elements<br />
offsetParent()<br />
Returns the first parent element that is positioned<br />
position()<br />
Returns the position (relative to the parent element) of the first selected element<br />
removeClass()<br />
Removes one or more classes from selected elements<br />
scrollLeft()<br />
Sets or returns the horizontal position of the scrollbar for the selected elements<br />
scrollTop()<br />
Sets or returns the vertical position of the scrollbar for the selected elements<br />
toggleClass()<br />
Toggles between adding/removing one or more classes from selected elements<br />
width()<br />
Sets or returns the width of selected elements</p>
<p><strong>jQuery AJAX Methods</strong><br />
AJAX is the art of exchanging data with a server, and update parts of a web page &#8211; without reloading the whole page.<br />
The following table lists all the jQuery AJAX methods:<br />
Method	Description<br />
$.ajax()<br />
Performs an AJAX request<br />
ajaxComplete()<br />
Specifies a function to run when the AJAX request completes<br />
ajaxError()<br />
Specifies a function to run when the AJAX request completes with an error<br />
ajaxSend()<br />
Specifies a function to run before the AJAX request is sent<br />
$.ajaxSetup()<br />
Sets the default values for future AJAX requests<br />
ajaxStart()<br />
Specifies a function to run when the first AJAX request begins<br />
ajaxStop()<br />
Specifies a function to run when all AJAX requests have completed<br />
ajaxSuccess()<br />
Specifies a function to run an AJAX request completes successfully<br />
$.get()<br />
Loads data from a server using an AJAX HTTP GET request<br />
$.getJSON()<br />
Loads JSON-encoded data from a server using a HTTP GET request<br />
$.getScript()<br />
Loads (and executes) a JavaScript from the a server using an AJAX HTTP GET request<br />
load()<br />
Loads data from a server and puts the returned HTML into the selected element<br />
$.param()<br />
Creates a serialized representation of an array or object (can be used as URL query string for AJAX requests)<br />
$.post()<br />
Loads data from a server using an AJAX HTTP POST request<br />
serialize()<br />
Encodes a set of form elements as a string for submission<br />
serializeArray()<br />
Encodes a set of form elements as an array of names and values</p>
<p><strong>jQuery Misc Methods</strong><br />
<strong>Method	Description</strong><br />
data() : Attaches data to, or gets data from, selected elements<br />
each() : Run a function for each element matched by the jQuery selector<br />
get() : Get the DOM elements matched by the selector<br />
index() : Search for a given element from among the matched elements<br />
$.noConflict() : Release jQuery&#8217;s control of the $ variable<br />
$.param() : Creates a serialized representation of an array or object (can be used as URL query string for AJAX requests)<br />
removeData() : Removes a previously-stored piece of data<br />
size() :Return the number of DOM elements matched by the jQuery selector<br />
toArray() : Retrieve all the DOM elements contained in the jQuery set, as an array</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://tech-softwaresolutions.com/jquery-tutorial/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TSS Company blog</title>
		<link>http://tech-softwaresolutions.com/ts</link>
		<comments>http://tech-softwaresolutions.com/ts#comments</comments>
		<pubDate>Sun, 04 Jul 2010 19:48:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tech-softwaresolutions.com/?p=1</guid>
		<description><![CDATA[We are happy to introducing TSS company blog. In this blog we are post technical related posts. Thanks, TSS Team]]></description>
			<content:encoded><![CDATA[<p>We are happy to introducing TSS company blog. In this blog we are post technical related posts.</p>
<p>Thanks,<br />
TSS Team</p>
]]></content:encoded>
			<wfw:commentRss>http://tech-softwaresolutions.com/ts/feed</wfw:commentRss>
		<slash:comments>163</slash:comments>
		</item>
	</channel>
</rss>

