<?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>goran mitev</title>
	<atom:link href="http://goranmitev.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://goranmitev.com</link>
	<description>Freelance PHP/Ajax Web Developer and Wordpress Expert</description>
	<lastBuildDate>Tue, 03 Aug 2010 22:03:36 +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>No sound in Pidgin in openSuse 11.2</title>
		<link>http://goranmitev.com/2010/08/03/no-sound-in-pidgin-in-opensuse-11-2/</link>
		<comments>http://goranmitev.com/2010/08/03/no-sound-in-pidgin-in-opensuse-11-2/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 21:12:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[pidgin]]></category>

		<guid isPermaLink="false">http://goranmitev.com/?p=144</guid>
		<description><![CDATA[If none of the options available produce sound in Pidgin, choose command and enter aplay %s.]]></description>
			<content:encoded><![CDATA[<p>If none of the options available produce sound in Pidgin, choose <strong>command </strong>and enter <strong>aplay %s.</strong></p>
<p><strong><br />
</strong></p>
<p style="text-align: center;"><strong><img class="size-full wp-image-147 aligncenter" title="snapshot1" src="http://goranmitev.com/wp-content/uploads/2010/08/snapshot1.png" alt="" width="591" height="472" /><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://goranmitev.com/2010/08/03/no-sound-in-pidgin-in-opensuse-11-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Oauth Connect PHP Class</title>
		<link>http://goranmitev.com/2010/07/13/twitter-oauth-connect-php-class/</link>
		<comments>http://goranmitev.com/2010/07/13/twitter-oauth-connect-php-class/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 16:39:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[projects]]></category>
		<category><![CDATA[oauth]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://goranmitev.com/?p=124</guid>
		<description><![CDATA[As I found many of the available PHP libraries too complicated, I decided to write small and only one PHP class for connecting with the Twitter API via Oauth. I used several ideas from the already available classes and libraries, and I came up with this one. See the demo and download it if you [...]]]></description>
			<content:encoded><![CDATA[<p>As I found many of the available PHP libraries too complicated, I decided to write small and only one PHP class for connecting with the Twitter API via Oauth. I used several ideas from the already available classes and libraries, and I came up with this one. See the demo and download it if you want.<span id="more-124"></span></p>
<h3>Download</h3>
<p><a href="http://goranmitev.com/downloads/twitteroauthconnect.tar.gz">Download here</a> version 1.0. It&#8217;s <strong>.tar.gz</strong> archive including 5 files.</p>
<h3>Demo</h3>
<p>See the demo pages I&#8217;ve setup <a href="http://goranmitev.com/demos/twitteroauthconnect/">here</a>. The access tokens are saved in session and not stored permanently.</p>
<h3>How to use it?</h3>
<p>In order to use this class you need to register an application on Twitter. You can do that <a href="http://dev.twitter.com/" target="_blank">here</a>. After you register your app, you will need to download the <a href="http://goranmitev.com/downloads/twitteroauthconnect.tar.gz">archive file</a> and extract it and upload the files to your web server.</p>
<h3>Configuring</h3>
<p>Open the file TwitterOauthConnect.php and change the details describing you app, that is the Consumer Key, Consumer Secret, and the callback url to point to the callback.php file. Use the rest of the files from the archive to configure your installation by your needs.</p>
<h3>Licence</h3>
<p>No license. Use it freely and if you find it useful consider linking to this website.</p>
<h3>Contributing</h3>
<p>Right now the comments are the only option. Maybe in the future I will consider any public free source control hosting.</p>
]]></content:encoded>
			<wfw:commentRss>http://goranmitev.com/2010/07/13/twitter-oauth-connect-php-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Facebook chat to Pidgin</title>
		<link>http://goranmitev.com/2010/06/06/add-facebook-chat-to-pidgin/</link>
		<comments>http://goranmitev.com/2010/06/06/add-facebook-chat-to-pidgin/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 18:51:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://goranmitev.com/?p=101</guid>
		<description><![CDATA[Want to keep in touch with your Facebook friends through Pidgin?  Here I’ll show you how to easily add Facebook chat to this popular multi-protocol chat client. 1. First, make sure you have a username for your Facebook account, it&#8217;s http://facebook.com/your.username 2. Open Pidgin, go to Accounts-&#62;Manage Accounts and click Add. 3. From the Protocol [...]]]></description>
			<content:encoded><![CDATA[<p>Want to keep in touch with your Facebook friends through Pidgin?  Here I’ll show you how to easily add Facebook chat to this popular multi-protocol chat client.</p>
<p>1. First, make sure you have a username for your Facebook account, it&#8217;s http://facebook.com/<strong>your.username</strong></p>
<p>2. Open Pidgin, go to Accounts-&gt;Manage Accounts and click Add.</p>
<p>3. From the Protocol list select XMPP</p>
<p>4. For the username field enter your Facebook username (without the &#8220;http://facebook.com/&#8221;)</p>
<p>5. For the domain field enter chat.facebook.com</p>
<p>6. Leave the Resource field empty</p>
<p>7. Enter your facebook password<span id="more-101"></span></p>
<p><img class="size-full wp-image-103 alignnone" title="pidgin1" src="http://goranmitev.com/wp-content/uploads/2010/06/pidgin1.jpeg" alt="" width="367" height="524" /></p>
<p>8. Go to Advanced tab, and uncheck the “Require SSL/TLS” box.  Also, make sure the Connect port is 5222.</p>
<p><img class="size-full wp-image-102 alignnone" title="pidgin2" src="http://goranmitev.com/wp-content/uploads/2010/06/pidgin2.jpeg" alt="" width="363" height="523" /></p>
<p>9. Click Add, and your Facebook account is added to Pidgin.</p>
]]></content:encoded>
			<wfw:commentRss>http://goranmitev.com/2010/06/06/add-facebook-chat-to-pidgin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Five reasons why you should run Linux</title>
		<link>http://goranmitev.com/2010/02/21/five-reasons-why-you-should-run-linux/</link>
		<comments>http://goranmitev.com/2010/02/21/five-reasons-why-you-should-run-linux/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 08:42:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://goranmitev.com/?p=44</guid>
		<description><![CDATA[There are many reasons why people choose to use Linux. The most of them are computer engineers, computer enthusiasts, programmers etc. Lately with some newer distributions of Linux like Ubuntu, OpenSuse and others, and making them more user friendly and usable, the people choose not to use Windows anymore. Here are some of the reasons [...]]]></description>
			<content:encoded><![CDATA[<p>There are many reasons why people choose to use Linux. The most of them are computer engineers, computer enthusiasts, programmers etc. Lately with some newer distributions of Linux like Ubuntu, OpenSuse and others, and making them more user friendly and usable, the people choose not to use Windows anymore. Here are some of the reasons why you should run Linux.<span id="more-44"></span></p>
<h3>1. Security</h3>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">The most obvious and important reason your parents should run Linux is the security the Linux operating system provides. While many of us tech-savvy computer users have little to no problems surfing the web and staying connected 24/7 without running into viruses and spyware, it’s almost inevitable for a non-savvy Internet user [read: majority of moms and dads] to stumble across a virus or malware on a website or in an e-mail. Linux is well known for the safety and security of browsing the web without the worry of the popular viruses that plague a good portion of the Internet. The main reason being that virus and malware developers stick to Windows due to its popularity and worldwide reach.</div>
<p>The most obvious and important reason you should run Linux is the security the Linux operating system provides. There are no viruses for Linux, and there are no anti virus programs for Linux. The main reason being that virus and malware developers stick to Windows due to its popularity and worldwide reach.</p>
<h3>2. Cost</h3>
<p>All Linux distributions are free open source software. And, that&#8217;s not all, the majority of the software is also free of charge. There are replacements for all popular programs on Windows (some of them better, some of them worst).</p>
<h3>3. Stability</h3>
<p>Unlike Windows, Linux is known for its stability. Its best suited for servers and other large computers. But it runs on small and handheld devices as well as on servers.</p>
<h3>4. Works well on older hardware</h3>
<p>Computers with older hardware have no or little problem running Linux. There is a great support for hardware and devices. The Linux kernel is constantly upgraded to support new devices, and drivers are always upgraded to give better support for existing devices.</p>
<h3>5. Administration</h3>
<p>You can have as little as no administration, which involves only clicking on install button to install new updates. It works out of the box. And on the other hand you have a full set of administration tools you can use to do whatever you want.</p>
<p><strong>Next: Five reasons why you should run Windows</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://goranmitev.com/2010/02/21/five-reasons-why-you-should-run-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>5 jQuery Performance Tips</title>
		<link>http://goranmitev.com/2010/02/13/5-jquery-performance-tips/</link>
		<comments>http://goranmitev.com/2010/02/13/5-jquery-performance-tips/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 14:29:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.goranmitev.com/?p=12</guid>
		<description><![CDATA[In the world of Web 2.0 applications, speed is one of the most important things to take in mind. Every such web application often uses a large amount of JavaScript code which is run in the users&#8217; browser. Of course using a JavaScript library is essential to speed up the development of these applications, but [...]]]></description>
			<content:encoded><![CDATA[<p>In the world of Web 2.0 applications, speed is one of the most important things to take in mind. Every such web application often uses a large amount of JavaScript code which is run in the users&#8217; browser. Of course using a JavaScript library is essential to speed up the development of these applications, but using it the wrong way exponentially decreases the execution speed of the code, so the application becomes very slow and unusable.</p>
<p>I&#8217;ve put together 5 performance tips for the most used JavaScript library, jQuery.<span id="more-12"></span></p>
<h3>1. Always get elements by #id</h3>
<p>This is the fastest selector in jQuery for finding the required element.</p>
<p>Always use it before tag selectors and class selectors. Ordered by speed:</p>
<ol>
<li>$(&#8220;#some-id&#8221;)</li>
<li>$(&#8220;div&#8221;)</li>
<li>$(&#8220;#some-id div&#8221;)</li>
<li>$(&#8220;#some-id div.some-class&#8221;)</li>
<li>$(&#8220;div.some-class&#8221;)</li>
<li>$(&#8220;.some-class&#8221;)</li>
</ol>
<h3>2. Minimize selection operations</h3>
<p>When using a loop, avoid selecting an element or elements in every iteration.</p>
<pre name="code" class="js">for (var i=0; i&lt;$("#table tr").length; i++){
 ...some code here...
}
</pre>
<p>Cache the selection like this:</p>
<pre name="code" class="js">var len = $("#table tr").length;
for (var i=0; i&lt;len; i++){
 ...some code here...
}</pre>
<h3>3. Insert one instead of many DOM elements</h3>
<p>Wrap all your code into one element and insert it in the DOM tree with the .html() method.</p>
<p>Instead of:</p>
<pre name="code" class="js">var html = '
 &lt;p&gt;One&lt;/p&gt;
 &lt;p&gt;Two&lt;/p&gt;
 &lt;div&gt;Three&lt;/div&gt;
';
$('#someid').html(html);</pre>
<p>Wrap the code in a div or other element, and then use the .html() method.</p>
<pre name="code" class="js">var html = '
&lt;div&gt;
 &lt;p&gt;One&lt;/p&gt;
 &lt;p&gt;Two&lt;/p&gt;
 &lt;div&gt;Three&lt;/div&gt;
&lt;/div&gt;
';
$('#someid').html(html);</pre>
<h3><strong>4. Give your selectors a context</strong></h3>
<p>As I said before, the fastest way to select elements is by #id, so, if you must use classes to select elements, give them a context.</p>
<p>Instead of:</p>
<pre name="code" class="js">$('.someclass').css('background-color' '#FFFFFF');</pre>
<p>Use this:</p>
<pre name="code" class="js">$('.someclass',#someclass-container).css('background-color' '#FFFFFF');</pre>
<h3><strong>5. Use jQuery chaining capabilities </strong></h3>
<p>One of the coolest things in jQuery is the possibility to chain your method calls. Example:</p>
<pre name="code" class="js">$('#someid').addClass('error').css('color','red').fadeOut('slow');</pre>
]]></content:encoded>
			<wfw:commentRss>http://goranmitev.com/2010/02/13/5-jquery-performance-tips/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS shorthands</title>
		<link>http://goranmitev.com/2009/12/08/css-shorthands/</link>
		<comments>http://goranmitev.com/2009/12/08/css-shorthands/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 09:16:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://goranmitev.ispraznise.com/?p=7</guid>
		<description><![CDATA[There is no official documentation about CSS shorthands but they are there and some of you know them, some of you not. I tried to make a list of CSS shorthands, that may be of use by anyone. background A typical shorthand: background: #FFFFFF url(image.jpg) no-repeat scroll top left; Available background properties: background-color transparent hexadecimal [...]]]></description>
			<content:encoded><![CDATA[<p>There is no official documentation about CSS shorthands but they are there and some of you know them, some of you not.   I tried to make a list of CSS shorthands, that may be of use by anyone.</p>
<p><span id="more-7"></span></p>
<h3>background</h3>
<h4>A typical shorthand:</h4>
<pre>background: #FFFFFF url(image.jpg) no-repeat scroll top left;</pre>
<h4>Available background properties:</h4>
<ul>
<li> background-color
<ul>
<li>transparent</li>
<li>hexadecimal from #000000 to #FFFFFF</li>
<li> predefined colors like: blue, red, green, etc. (with letters)</li>
<li>rgb(X,X,X)  where X is a number from 0 to 255</li>
</ul>
</li>
<li> background-image
<ul>
<li>none</li>
<li>url(URI)  where URI can be relative or absolute path to your image</li>
</ul>
</li>
<li> background-repeat
<ul>
<li>no-repeat</li>
<li>repeat-x</li>
<li>repeat-y</li>
<li>repeat (includes both: repeat-x and repeat-y)</li>
</ul>
</li>
<li> background-attachment
<ul>
<li>scroll</li>
<li>fixed</li>
</ul>
</li>
<li> background-position
<ul>
<li>top left</li>
<li>top right</li>
<li>top center</li>
<li>bottom left</li>
<li>bottom right</li>
<li>bottom center</li>
<li>center left</li>
<li>center right</li>
<li>center center</li>
<li>0 0</li>
</ul>
</li>
</ul>
<h4>Defaults to:</h4>
<pre>background: transparent none no-repeat scroll 0 0;</pre>
<p>That means if you left out any of the properties, the others will have these values.</p>
<h3>font</h3>
<h4>A typical shorthand:</h4>
<pre>font: normal normal bold 1em/1.2em georgia,"times new roman",serif;</pre>
<h4>Available font properties:</h4>
<ul>
<li> font-style
<ul>
<li>normal</li>
<li>italic</li>
<li> inherit</li>
<li>oblique</li>
</ul>
</li>
<li> font-variant
<ul>
<li>inherit</li>
<li>normal</li>
<li>small-caps</li>
</ul>
</li>
<li> font-weight
<ul>
<li>normal</li>
<li>bold</li>
<li>bolder</li>
<li>lighter</li>
<li>inherit</li>
</ul>
</li>
<li>font-size
<ul>
<li>xx-small</li>
<li>x-small</li>
<li>small</li>
<li>medium</li>
<li>large</li>
<li>larger</li>
<li>x-large</li>
<li>xx-large</li>
<li>number+unit</li>
</ul>
</li>
<li>line-height
<ul>
<li>normal</li>
<li>number+unit</li>
</ul>
</li>
<li>font-family
<ul>
<li>(list of fonts)</li>
</ul>
</li>
</ul>
<h3>margin and padding</h3>
<p>The margin and the padding are the easiest and the rules go clockwise:</p>
<p>margin: (top) (right) (bottom) (left);</p>
<h4 style="font-size: 1.17em;">A typical shorthands (examples):</h4>
<p>This adds 10px margin on all sides of the element:</p>
<pre>margin: 10px 10px 10px 10px;</pre>
<p>This also, adds 10px margin on all sides of the element</p>
<pre>margin: 10px;</pre>
<p>This adds 10px margin to top and bottom and a 20px margin to left and right:</p>
<pre>margin: 10px 20px;</pre>
<p>Also any combination of number and measurement unit is possible.</p>
<p>The same rules apply for padding as well.</p>
<h3>border</h3>
<h4 style="font-size: 1.17em;">A typical shorthand:</h4>
<pre>border: 1px solid blue;</pre>
<h4 style="font-size: 1.17em;">Available border properties:</h4>
<ul>
<li>border-width: number+unit;</li>
<li>border-style:
<ul>
<li>solid;</li>
<li>dotted;</li>
<li>dashed;</li>
<li>hidden</li>
<li>none</li>
<li>double</li>
<li>groove etc.</li>
</ul>
</li>
<li>border-color:
<ul>
<li>none</li>
<li>hexadecimal from #000000 to #FFFFFF</li>
<li>predefined colors like: blue, red, green, etc. (with letters)</li>
<li>rgb(X,X,X)  where X is a number from 0 to 255</li>
</ul>
</li>
</ul>
<h3>list-style</h3>
<h4 style="font-size: 1.17em;">A typical shorthand:</h4>
<pre style="font: normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;">list-style: disc outside url(image.gif);</pre>
<h4 style="font-size: 1.17em;">Available list-style properties:</h4>
<ul>
<li>list-style-type
<ul>
<li>disc</li>
<li>square</li>
<li>circle</li>
<li>decimal</li>
<li>georgian</li>
<li>etc</li>
</ul>
</li>
<li>list-style-position
<ul>
<li>inside</li>
<li>outside</li>
</ul>
</li>
<li>list-style-image:
<ul>
<li>none</li>
<li>url</li>
</ul>
</li>
</ul>
<h4 style="font-size: 1.17em;">Defaults to:</h4>
<pre style="font: normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;">list-style: disc outside none;</pre>
<p>There are other shorthand out there, but are less used. Any comments are welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://goranmitev.com/2009/12/08/css-shorthands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extend phpMyAdmin Session Timeout Value</title>
		<link>http://goranmitev.com/2009/12/08/extend-phpmyadmin-session-timeout-value/</link>
		<comments>http://goranmitev.com/2009/12/08/extend-phpmyadmin-session-timeout-value/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 09:15:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://goranmitev.ispraznise.com/?p=5</guid>
		<description><![CDATA[Locate your phpmyadmin installation folder. Then open config.inc.php file and enter this line: $cfg['LoginCookieValidity'] = 3600 * 3; This line of code extends your phpmyadmin session for 3 hours. Make sure your config.inc.php file is writable, to do this change. Then you can make it unwritable again.]]></description>
			<content:encoded><![CDATA[<p>Locate your phpmyadmin installation folder. Then open config.inc.php file and enter this line:</p>
<pre name="code" class="php">$cfg['LoginCookieValidity'] = 3600 * 3;</pre>
<p>This line of code extends your phpmyadmin session for 3 hours.</p>
<p>Make sure your config.inc.php file is writable, to do this change. Then you can make it unwritable again.</p>
]]></content:encoded>
			<wfw:commentRss>http://goranmitev.com/2009/12/08/extend-phpmyadmin-session-timeout-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delete a table row with jQuery</title>
		<link>http://goranmitev.com/2009/12/08/delete-a-row-from-table-with-jquery/</link>
		<comments>http://goranmitev.com/2009/12/08/delete-a-row-from-table-with-jquery/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 09:14:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://goranmitev.ispraznise.com/?p=3</guid>
		<description><![CDATA[I will explain, shortly, how to delete a table row with jQuery Ajax post method. We will need some basic HTML example structure like the following: &#60;table&#62; &#60;tr&#62; &#60;td class='one'&#62;Text&#60;/td&#62;  &#60;td class='two'&#62;Some more text&#60;/td&#62;  &#60;td class='action'&#62;&#60;a style='cursor:pointer'&#62;delete&#60;/a&#62;&#60;/td&#62;  &#60;/tr&#62;  &#60;tr&#62;  &#60;td class='one'&#62;Text 2&#60;/td&#62;  &#60;td class='two'&#62;Some more text 2&#60;/td&#62;  &#60;td class='action'&#62;&#60;a style='cursor:pointer'&#62;delete&#60;/a&#62;&#60;/td&#62;  &#60;/tr&#62; &#60;/table&#62; And you want [...]]]></description>
			<content:encoded><![CDATA[<p>I will explain, shortly, how to delete a table row with jQuery Ajax post method. We will need some basic HTML example structure like the following:</p>
<pre name="code" class="html">
&lt;table&gt;
    &lt;tr&gt;
&lt;td class='one'&gt;Text&lt;/td&gt;
        &lt;td class='two'&gt;Some more text&lt;/td&gt;
        &lt;td class='action'&gt;&lt;a style='cursor:pointer'&gt;delete&lt;/a&gt;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
        &lt;td class='one'&gt;Text 2&lt;/td&gt;
        &lt;td class='two'&gt;Some more text 2&lt;/td&gt;
        &lt;td class='action'&gt;&lt;a style='cursor:pointer'&gt;delete&lt;/a&gt;&lt;/td&gt;
   &lt;/tr&gt;
&lt;/table&gt;
</pre>
<p>And you want to create a click event that deletes a row from a table, and in the same time sends a post or get request to a server that updates the database, deletes the row, you can do this with jQuery like this:</p>
<p><span id="more-3"></span></p>
<pre name="code" class="js">$(document).ready(function(){
    $('.action').click(function(){
       &lt;span style=&quot;color: #339966;&quot;&gt;//on click, mark the row for deleting by adding a class
       // 'deleting' to the tr element&lt;/span&gt;
       $(this).parent().addClass('deleting');

      &lt;span style=&quot;color: #339966;&quot;&gt; //make a post to the server, php script for example,
       // that deletes the row from a database&lt;/span&gt;
       $.post('deleteRow.php',{
             rowId: 2  &lt;span style=&quot;color: #339966;&quot;&gt;//send the row id for example&lt;/span&gt;
         },function(data){
             &lt;span style=&quot;color: #339966;&quot;&gt;//when the server is done with the deletion of the row
             // from the database, remove the element from the DOM tree&lt;/span&gt;
             $('.deleting').remove();
         })
      })
})
</pre>
<p>And that&#8217;s it. Any comments are welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://goranmitev.com/2009/12/08/delete-a-row-from-table-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
