<?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>Web Development India</title>
	<atom:link href="http://www.phpasks.com/blogs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpasks.com/blogs</link>
	<description>Web site design and development, PHP, Ajax, ASP.NET</description>
	<lastBuildDate>Fri, 28 Dec 2012 18:21:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Get the Last Day of a Month using PHP</title>
		<link>http://www.phpasks.com/blogs/2011/04/get-the-last-day-of-a-month-using-php/</link>
		<comments>http://www.phpasks.com/blogs/2011/04/get-the-last-day-of-a-month-using-php/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 10:34:27 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Tutorial]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1328</guid>
		<description><![CDATA[Picked this cool little PHP function to calculate and return the last day of a month for any year off the always informative lutrov interactive website the other day, and posted it here for future reference]]></description>
				<content:encoded><![CDATA[<p>Picked this cool little PHP function to calculate and return the last day of a month for any year off the always informative lutrov interactive website the other day, and posted it here for future reference </p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2011/04/get-the-last-day-of-a-month-using-php/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>PHP: Calculate the Number of Working Days in a Month</title>
		<link>http://www.phpasks.com/blogs/2011/04/php-calculate-the-number-of-working-days-in-a-month/</link>
		<comments>http://www.phpasks.com/blogs/2011/04/php-calculate-the-number-of-working-days-in-a-month/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 08:21:07 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Tutorial]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1326</guid>
		<description><![CDATA[TweetHow to calculate the number of working days in a month, in other words discount Saturdays and Sundays from a month]]></description>
				<content:encoded><![CDATA[            <a href="http://twitter.com/share" class="twitter-share-button" data-count="" data-text="PHP: Calculate the Number of Working Days in a Month" data-via="" data-url="http://www.phpasks.com/blogs/2011/04/php-calculate-the-number-of-working-days-in-a-month/" >Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><p>How to calculate the number of working days in a month, in other words discount Saturdays and Sundays from a month</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2011/04/php-calculate-the-number-of-working-days-in-a-month/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
		<item>
		<title>Pagination with jQuery, MySQL and PHP</title>
		<link>http://www.phpasks.com/blogs/2011/02/pagination-with-jquery-mysql-and-php/</link>
		<comments>http://www.phpasks.com/blogs/2011/02/pagination-with-jquery-mysql-and-php/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 10:43:39 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Pagging]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1320</guid>
		<description><![CDATA[Demo I received lot of requests from my readers that asked to me how to implement Pagination with jQuery, PHP and MySQL. so I had developed a simple tutorial. It&#8217;s looks big but very simple script. The tutorial contains three PHP files and two js files includes jQuery plugin. -config.php (Database Configuration) -pagination.php -pagination_data.php -jquery.js [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://phpasks.com/pagging/pagination.php">Demo</a></p>
<p>I received lot of requests from my readers that asked to me how to implement Pagination with jQuery, PHP and MySQL. so I had developed a simple tutorial. It&#8217;s looks big but very simple script.</p>
<div id="attachment_1319" class="wp-caption alignleft" style="width: 460px"><img class="size-full wp-image-1319" title="pagination" src="http://www.phpasks.com/blogs/wp-content/uploads/2011/02/pagination.png" alt="pagination" width="450" height="114" /><p class="wp-caption-text">pagination</p></div>
<p>The tutorial contains three PHP files and two js files includes jQuery  plugin.</p>
<p>-config.php (Database  Configuration)</p>
<p>-pagination.php</p>
<p>-pagination_data.php</p>
<p>-jquery.js</p>
<p>-jquery_pagination.js</p>
<p><strong>Database Table</strong></p>
<div>CREATE TABLE <strong>messages</strong></p>
<p>(</p>
<p><span style="color: #cc0000;">msg_id</span> INT <span style="color: blue;">PRIMARY  KEY</span> <span style="color: #a64d79;">AUTO_INCREMENT</span>,</p>
<p><span style="color: #cc0000;">message</span> TEXT</p>
<p>);</p></div>
<p><strong>jquery_pagination.js</strong></p>
<p>Contains javascript this script works like a data  controller.</p>
<div>$(<strong><span style="color: #a64d79;">document</span></strong>).ready(<strong>function</strong>()</p>
<p>{</p>
<div style="color: orange;">//Display Loading Image</div>
<p><strong>function</strong><span style="color: #cc0000;"> Display_Load</span>()</p>
<p>{</p>
<p>$(<span style="color: blue;">&#8220;#loading&#8221;</span>).<strong><span style="color: #a64d79;">fadeIn</span></strong>(<span style="color: #cc0000;">900</span>,<span style="color: #cc0000;">0</span>);</p>
<p>$(<span style="color: blue;">&#8220;#loading&#8221;</span>).<strong>html</strong>(<span style="color: blue;">&#8220;&lt;img src=&#8221;bigLoader.gif&#8221; /&gt;&#8221;</span>);</p>
<p>}</p>
<div style="color: orange;">//Hide Loading Image</div>
<p><strong>function</strong> <span style="color: #cc0000;">Hide_Load</span>()</p>
<p>{</p>
<p>$(<span style="color: blue;">&#8220;#loading&#8221;</span>).<strong>fadeOut</strong>(<span style="color: blue;">&#8216;slow&#8217;</span>);</p>
<p>};</p>
<div style="color: orange;">//Default Starting Page Results</div>
<p>$(<span style="color: blue;">&#8220;#pagination li:first&#8221;</span>)</p>
<p>.<strong>css</strong>({<span style="color: blue;">&#8216;color&#8217; </span>: <span style="color: blue;">&#8216;#FF0084&#8242;</span>}).<strong>css</strong>({<span style="color: blue;">&#8216;border&#8217;</span> : <span style="color: blue;">&#8216;none&#8217;</span>});</p>
<p><span style="color: #cc0000;">Display_Load</span>();</p>
<p>$(<span style="color: blue;">&#8220;#content&#8221;</span>).<strong>load</strong>(<span style="color: blue;">&#8220;pagination_data.php?page=1&#8243;</span>, <span style="color: #cc0000;">Hide_Load</span>());</p>
<div style="color: orange;">//Pagination Click</div>
<p>$(<span style="color: blue;">&#8220;#pagination li&#8221;</span>).<strong>click</strong>(<strong>function</strong>(){</p>
<p><span style="color: #cc0000;">Display_Load</span>();</p>
<div style="color: orange;">//CSS Styles</div>
<p>$(<span style="color: blue;">&#8220;#pagination li&#8221;</span>)</p>
<p>.<strong>css</strong>({<span style="color: blue;">&#8216;border&#8217; </span>:<span style="color: blue;"> &#8216;solid #dddddd 1px&#8217;</span>})</p>
<p>.<strong>css</strong>({<span style="color: blue;">&#8216;color&#8217;</span> : <span style="color: blue;">&#8216;#0063DC&#8217;</span>});</p>
<p>$(<strong>this</strong>)</p>
<p>.<strong>css</strong>({<span style="color: blue;">&#8216;color&#8217; </span>:<span style="color: blue;"> &#8216;#FF0084&#8242;</span>})</p>
<p>.<strong>css</strong>({<span style="color: blue;">&#8216;border&#8217;</span> : <span style="color: blue;">&#8216;none&#8217;</span>});</p>
<div style="color: orange;">//Loading Data</div>
<p><strong>var</strong> pageNum =<span style="color: #073763;"> </span><strong>this</strong>.id;</p>
<p>$(<span style="color: blue;">&#8220;#content&#8221;</span>).<strong><span style="color: #a64d79;">load</span></strong>(<span style="color: blue;">&#8220;pagination_data.php?page=&#8221; </span>+ pageNum, <span style="color: #cc0000;">Hide_Load</span>());</p>
<p>});</p>
<p>});</p></div>
<p><strong>config.php</strong></p>
<p>You have to change hostname, username, password and  databasename.</p>
<div>
<div style="color: #cc0000;"><strong>&lt;?php</strong></div>
<p>$mysql_hostname = <span style="color: #cc0000;">&#8220;localhost&#8221;</span>;</p>
<p>$mysql_user = <span style="color: #cc0000;">&#8220;username&#8221;</span>;</p>
<p>$mysql_password = <span style="color: #cc0000;">&#8220;password&#8221;</span>;</p>
<p>$mysql_database = <span style="color: #cc0000;">&#8220;database&#8221;</span>;</p>
<p>$bd = <span style="color: blue;">mysql_connect</span>($mysql_hostname, $mysql_user,  $mysql_password)</p>
<p>or <span style="color: blue;">die</span>(<span style="color: #cc0000;">&#8220;Opps some thing went wrong&#8221;</span>);</p>
<p><span style="color: blue;">mysql_select_db</span>($mysql_database, $bd)</p>
<p>or <span style="color: blue;">die</span>(<span style="color: #cc0000;">&#8220;Opps some thing  went wrong&#8221;</span>);</p>
<div style="color: #cc0000;"><strong>?&gt;</strong></div>
</div>
<p><strong>pagination.php</strong></p>
<p>User interface page.</p>
<div>
<div style="color: #cc0000;"><strong>&lt;?php</strong></div>
<p><span style="color: #38761d;">include</span>(<span style="color: #cc0000;">&#8216;config.php&#8217;</span>);</p>
<p>$per_page = <span style="color: #cc0000;">9</span>;</p>
<p><span style="color: orange;">//Calculating no of page</span>s</p>
<p>$sql = <span style="color: orange;">&#8220;select * from messages&#8221;</span>;</p>
<p>$result = <span style="color: blue;">mysql_query</span>($sql);</p>
<p>$count = <span style="color: blue;">mysql_num_rows</span>($result);</p>
<p>$pages =<span style="color: blue;"> ceil</span>($count/$per_page)</p>
<div style="color: #cc0000;"><strong>?&gt;</strong></div>
<p><span style="color: #990000;">&lt;script</span> type=&#8221;<span style="color: #0b5394;">text/javascript</span>&#8221; src=&#8221;<span style="color: #0b5394;">http://ajax.googleapis.com/ajax/</p>
<p>libs/jquery/1.3.0/jquery.min.js</span>&#8220;<span style="color: #990000;">&gt;</span><span style="color: #990000;">&lt;/script&gt;</span></p>
<p><span style="color: #990000;">&lt;script</span> type=&#8221;<span style="color: #0b5394;">text/javascript</span>&#8221; src=&#8221;<span style="color: #0b5394;">jquery_pagination.js</span>&#8220;<span style="color: #990000;">&gt;</span><span style="color: #990000;">&lt;/script&gt;</span></p>
<div style="color: #073763;"><strong>&lt;div id=&#8221;</strong><span style="color: blue;">loading</span><strong>&#8221; &gt;&lt;/div&gt;</strong></div>
<div style="color: #073763;"><strong>&lt;div id=&#8221;</strong><span style="color: blue;">content</span><strong>&#8221; &gt;&lt;/div&gt;</strong></div>
<div style="color: #a64d79;"><strong>&lt;ul id=&#8221;<span style="color: blue;">pagination</span>&#8220;&gt;</strong></div>
<div style="color: #cc0000;"><strong>&lt;?php</strong></div>
<div style="color: orange;">//Pagination Numbers</div>
<p><span style="color: #38761d;">for</span>($i<span style="color: blue;">=</span><span style="color: #cc0000;">1</span>; $i<span style="color: blue;">&lt;=</span>$pages;  $i<span style="color: blue;">++</span>)</p>
<p>{</p>
<p><span style="color: blue;">echo</span><span style="color: #cc0000;"> &#8216;&lt;li  id=&#8221;&#8216;</span><strong><span style="color: blue;">.</span></strong>$i<strong>.</strong><span style="color: #cc0000;">&#8216;&#8221;&gt;&#8217;</span><strong>.</strong>$i<strong>.</strong><span style="color: #cc0000;">&#8216;&lt;/li&gt;&#8217;</span>;</p>
<p>}</p>
<div style="color: #cc0000;"><strong>?&gt;</strong></div>
<div style="color: #a64d79;"><strong>&lt;/ul&gt;</strong></div>
</div>
<p><strong>pagination_data.php</strong></p>
<p>Simple php script display data from the messages  table.</p>
<div>
<div style="color: #cc0000;"><strong>&lt;?php</strong></div>
<p><span style="color: #38761d;">include</span>(<span style="color: #cc0000;">&#8216;config.php&#8217;</span>);</p>
<p>$per_page = <span style="color: #cc0000;">9</span>;</p>
<p>if(<span style="color: #0b5394;">$_GET</span>)</p>
<p>{</p>
<p>$page=<span style="color: #0b5394;">$_GET</span>[<span style="color: #cc0000;">'page'</span>];</p>
<p>}</p>
<p>$start = ($page-<span style="color: #cc0000;">1</span>)<span style="color: blue;">*</span>$per_page;</p>
<p>$sql =<span style="color: #cc0000;"> &#8220;select * from messages order by msg_id limit  $start,$per_page&#8221;</span>;</p>
<p>$result = <span style="color: blue;">mysql_query</span>($sql);</p>
<div style="color: #cc0000;"><strong>?&gt;</strong></div>
<p>&lt;table width=&#8221;800px&#8221;&gt;</p>
<div style="color: #cc0000;"><strong>&lt;?php</strong></div>
<p>while($row = <span style="color: blue;">mysql_fetch_array</span>($result))</p>
<p>{</p>
<p>$msg_id=$row[<span style="color: #cc0000;">'msg_id'</span>];</p>
<p>$message=$row[<span style="color: #cc0000;">'message'</span>];</p>
<div style="color: #cc0000;"><strong>?&gt;</strong></div>
<p>&lt;tr&gt;</p>
<p>&lt;td&gt;<strong><span style="color: #cc0000;">&lt;?php</span></strong> <span style="color: blue;">echo</span> $msg_id; <strong><span style="color: #cc0000;">?&gt;</span></strong>&lt;/td&gt;</p>
<p>&lt;td&gt;<strong>&lt;?php</strong> <span style="color: blue;">echo</span> $message; <strong><span style="color: #cc0000;">?&gt;</span></strong>&lt;/td&gt;</p>
<p>&lt;/tr&gt;</p>
<div style="color: #cc0000;"><strong>&lt;?php</strong></div>
<p>}</p>
<div style="color: #cc0000;"><strong>?&gt;</strong></div>
<p>&lt;/table&gt;</p></div>
<p><strong>CSS Code</strong></p>
<p>CSS code for page numbers.</p>
<div>
<div style="color: #a64d79;"><strong>#loading </strong></div>
<p>{</p>
<p>width: 100%;</p>
<p>position: absolute;</p>
<p>}</p>
<div style="color: #a64d79;"><strong>li</strong></div>
<p>{</p>
<p>list-style: none;</p>
<p>float:  left;</p>
<p>margin-right: 16px;</p>
<p>padding:5px;</p>
<p>border:solid 1px  #dddddd;</p>
<p>color:#0063DC;</p>
<p>}</p>
<div style="color: #a64d79;"><strong>li:hover</strong></div>
<p>{</p>
<p>color:#FF0084;</p>
<p>cursor: pointer;</p>
<p>}</p>
<p>Live : <a href="http://phpasks.com/pagging/pagination.php">Demo</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2011/02/pagination-with-jquery-mysql-and-php/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Google Ranking Checker Class in PHP</title>
		<link>http://www.phpasks.com/blogs/2010/12/google-ranking-checker-class-in-php/</link>
		<comments>http://www.phpasks.com/blogs/2010/12/google-ranking-checker-class-in-php/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 12:45:44 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Rank Checking]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1316</guid>
		<description><![CDATA[The only goal for an SEO is a good or very good google ranking. To ensure this you have to monitor your rankings and compare it to the positions of your competitors. With the Google AJAX Search API and my little PHP Class you can easy build a Google Ranking Checker]]></description>
				<content:encoded><![CDATA[<p>The only goal for an SEO is a good or very good google ranking. To ensure this you have to monitor your rankings and compare it to the positions of your competitors. With the Google <a href="http://code.google.com/apis/ajaxsearch/signup.html">AJAX Search API</a> and my little PHP Class you can easy build a Google Ranking Checker </p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/12/google-ranking-checker-class-in-php/feed/</wfw:commentRss>
		<slash:comments>2109</slash:comments>
		</item>
		<item>
		<title>PHP backlink checker script</title>
		<link>http://www.phpasks.com/blogs/2010/11/php-backlink-checker-script/</link>
		<comments>http://www.phpasks.com/blogs/2010/11/php-backlink-checker-script/#comments</comments>
		<pubDate>Sat, 27 Nov 2010 07:11:17 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1312</guid>
		<description><![CDATA[This is probably the simplest script that anyone knowing (or even learning) PHP can create in about 15seconds. But I will still post it here just in case anyone is a total noob at PHP. Purpose of this script: To check a certain given backlink on hundreds of webpages provided you know the URL of [...]]]></description>
				<content:encoded><![CDATA[<p style="font-size: 13px; line-height: 1.4em; color: #63565f;">This is probably the simplest script that anyone knowing (or even learning) PHP can create in about 15seconds. But I will still post it here just in case anyone is a total noob at PHP.</p>
<p style="font-size: 13px; line-height: 1.4em; color: #63565f;"><strong>Purpose of this script</strong>: To check a certain given backlink on hundreds of webpages provided you know the URL of every webpage.</p>
<pre style="width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-size: 12px; line-height: 1.333; white-space: pre; font-family: monospace; margin: 0px;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>



<span style="color: #000088;">$source</span> <span style="color: #339933;">=</span> <span style="color: #990000;">file_get_contents</span><span style="color: #009900;">(</span><span style="color: #0000ff;">"source.txt"</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>

<span style="color: #000088;">$needle</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">"www.IamtryingtocheckThisPage"</span><span style="color: #339933;">;</span>   <span style="color: #666666; font-style: italic;">//without http as I have imploded the http later in the script</span>

<span style="color: #000088;">$new</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">(</span><span style="color: #0000ff;">"<span style="color: #000099; font-weight: bold;">n</span>"</span><span style="color: #339933;">,</span><span style="color: #000088;">$source</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>



<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">(</span><span style="color: #000088;">$new</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$check</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span>

<span style="color: #000088;">$a</span> <span style="color: #339933;">=</span> <span style="color: #990000;">file_get_contents</span><span style="color: #009900;">(</span><span style="color: #0000ff;">"http://"</span><span style="color: #339933;">.</span><span style="color: #990000;">trim</span><span style="color: #009900;">(</span><span style="color: #000088;">$check</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>



<span style="color: #b1b100;">if</span> <span style="color: #009900;">(</span><span style="color: #990000;">strpos</span><span style="color: #009900;">(</span><span style="color: #000088;">$a</span><span style="color: #339933;">,</span><span style="color: #000088;">$needle</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span>

<span style="color: #000088;">$found</span><span style="color: #009900;">[</span><span style="color: #009900;">]</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$check</span><span style="color: #339933;">;</span>

	 <span style="color: #009900;">}</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">{</span>

	 <span style="color: #000088;">$notfound</span><span style="color: #009900;">[</span><span style="color: #009900;">]</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$check</span><span style="color: #339933;">;</span>

			<span style="color: #009900;">}</span>

						<span style="color: #009900;">}</span>



<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">"Matches that were found: <span style="color: #000099; font-weight: bold;">n</span> "</span><span style="color: #339933;">.</span><span style="color: #990000;">implode</span><span style="color: #009900;">(</span><span style="color: #0000ff;">"<span style="color: #000099; font-weight: bold;">n</span>"</span><span style="color: #339933;">,</span><span style="color: #000088;">$found</span><span style="color: #009900;">)</span><span style="color: #339933;">.</span><span style="color: #0000ff;">"<span style="color: #000099; font-weight: bold;">n</span>"</span><span style="color: #339933;">;</span>

<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">"Matches that were not found <span style="color: #000099; font-weight: bold;">n</span>"</span><span style="color: #339933;">.</span> <span style="color: #990000;">implode</span><span style="color: #009900;">(</span><span style="color: #0000ff;">"<span style="color: #000099; font-weight: bold;">n</span>"</span><span style="color: #339933;">,</span><span style="color: #000088;">$notfound</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>

<span style="color: #000000; font-weight: bold;">?&gt;</span></pre>
<pre style="width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-size: 12px; line-height: 1.333; white-space: pre; font-family: monospace; margin: 0px;"><strong>

</strong></pre>
<pre style="width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-size: 12px; line-height: 1.333; white-space: pre; font-family: monospace; margin: 0px;"><strong>or Other way</strong></pre>
<pre style="width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-size: 12px; line-height: 1.333; white-space: pre; font-family: monospace; margin: 0px;"><strong>&lt;?php

function check_back_link($remote_url, $your_link) {

    $match_pattern = preg_quote(rtrim($your_link, "/"), "/");

    $found = false;

    if ($handle = @fopen($remote_url, "r")) {

        while (!feof($handle)) {

            $part = fread($handle, 1024);

            if (preg_match("/&lt;a(.*)href=["']".$match_pattern.

"(/?)["'](.*)&gt;(.*)&lt;/a&gt;/", $part)) {

                $found = true;

                break;

            }

        }

        fclose($handle);

    }

    return $found;

}

// example:

//if (check_back_link("http://www.abc.com", "http://www.xyz.com")) echo "link exists";

?&gt;</strong></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/11/php-backlink-checker-script/feed/</wfw:commentRss>
		<slash:comments>78</slash:comments>
		</item>
		<item>
		<title>Simple Symfony Login Form Example</title>
		<link>http://www.phpasks.com/blogs/2010/10/simple-symfony-login-form-example/</link>
		<comments>http://www.phpasks.com/blogs/2010/10/simple-symfony-login-form-example/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 05:13:52 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[Symfony MVC]]></category>
		<category><![CDATA[Symfony login page]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1309</guid>
		<description><![CDATA[There are times when I just need a simple login form that checks for a certain username and password combination in order to lockdown a backend administration interface. The new sfForm sub-framework in Symfony 1.1/1.2 makes it really easy to reuse a Form class for this. If you]]></description>
				<content:encoded><![CDATA[<p>There are times when I just need a simple login form that checks for a certain username and password combination in order to lockdown a backend administration interface. The new sfForm sub-framework in Symfony 1.1/1.2 makes it really easy to reuse a Form class for this. If you</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/10/simple-symfony-login-form-example/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Create Table Structure for Storing Multi Level Category Data</title>
		<link>http://www.phpasks.com/blogs/2010/07/create-table-structure-for-storing-multi-level-category-data/</link>
		<comments>http://www.phpasks.com/blogs/2010/07/create-table-structure-for-storing-multi-level-category-data/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 06:39:01 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Nth Level Category]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1305</guid>
		<description><![CDATA[Somebody asking about how to create table structure to store multilevel category data. Here is the scenario. For example you will create an online article system and each article will have specified category. So how about the table structure to handle this? First you create the table for store the category, let]]></description>
				<content:encoded><![CDATA[<p><!-- by Sony AK --><img class="alignleft size-full wp-image-1306" title="tree-150x150" src="http://www.phpasks.com/blogs/wp-content/uploads/2010/07/tree-150x150.jpg" alt="tree-150x150" width="150" height="150" />Somebody asking about how to create table structure to store multilevel category data. Here is the scenario. For example you will create an online article system and each article will have specified category. So how about the table structure to handle this?</p>
<p>First you create the table for store the category, let</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/07/create-table-structure-for-storing-multi-level-category-data/feed/</wfw:commentRss>
		<slash:comments>440</slash:comments>
		</item>
		<item>
		<title>Magento: Displaying Categories and Current Subcategories</title>
		<link>http://www.phpasks.com/blogs/2010/06/magento-displaying-categories-and-current-subcategories/</link>
		<comments>http://www.phpasks.com/blogs/2010/06/magento-displaying-categories-and-current-subcategories/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 05:40:40 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[Magento Developer]]></category>
		<category><![CDATA[Magento Development]]></category>
		<category><![CDATA[Magento Categories]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1300</guid>
		<description><![CDATA[I started]]></description>
				<content:encoded><![CDATA[<p>I started </p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/06/magento-displaying-categories-and-current-subcategories/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Special Offer Product Listing</title>
		<link>http://www.phpasks.com/blogs/2010/05/magento-special-offer-product-listing/</link>
		<comments>http://www.phpasks.com/blogs/2010/05/magento-special-offer-product-listing/#comments</comments>
		<pubDate>Fri, 28 May 2010 10:46:05 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[Magento Developer]]></category>
		<category><![CDATA[Magento Development]]></category>
		<category><![CDATA[Special Offer Magento]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1294</guid>
		<description><![CDATA[One of my recent articles was on the subject of sorting]]></description>
				<content:encoded><![CDATA[<p>One of my recent articles was on the subject of sorting </p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/05/magento-special-offer-product-listing/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; How to show new products in category list</title>
		<link>http://www.phpasks.com/blogs/2010/05/magento-how-to-show-new-products-in-category-list/</link>
		<comments>http://www.phpasks.com/blogs/2010/05/magento-how-to-show-new-products-in-category-list/#comments</comments>
		<pubDate>Fri, 28 May 2010 10:33:49 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[Magento Developer]]></category>
		<category><![CDATA[Magento Development]]></category>
		<category><![CDATA[New Product Magento]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1290</guid>
		<description><![CDATA[Guy Labb]]></description>
				<content:encoded><![CDATA[<p>Guy Labb</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/05/magento-how-to-show-new-products-in-category-list/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Magento</title>
		<link>http://www.phpasks.com/blogs/2010/05/magento-%e2%80%93-display-new-products-on-the-home-page/</link>
		<comments>http://www.phpasks.com/blogs/2010/05/magento-%e2%80%93-display-new-products-on-the-home-page/#comments</comments>
		<pubDate>Thu, 27 May 2010 12:31:46 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[Magento Developer]]></category>
		<category><![CDATA[Magento Development]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1288</guid>
		<description><![CDATA[If you]]></description>
				<content:encoded><![CDATA[<p>If you</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/05/magento-%e2%80%93-display-new-products-on-the-home-page/feed/</wfw:commentRss>
		<slash:comments>9494</slash:comments>
		</item>
		<item>
		<title>Magento Paggination problem in magento 1.4.1 part 2</title>
		<link>http://www.phpasks.com/blogs/2010/05/magento-paggination-problem-in-magento-1-4-1-part-2/</link>
		<comments>http://www.phpasks.com/blogs/2010/05/magento-paggination-problem-in-magento-1-4-1-part-2/#comments</comments>
		<pubDate>Thu, 27 May 2010 06:14:15 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[Magento Developer]]></category>
		<category><![CDATA[Magento Development]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1284</guid>
		<description><![CDATA[I have to say that the stable version of magento 1.4.1 is not that stable!! &#8212; Magento &#8211; Please release the CE version with checking the unimplemented methods in the core code. &#8212; Magento &#8211; I have found and solve the problem of toolbars display error for the new magento 1.4.1 first of all, for [...]]]></description>
				<content:encoded><![CDATA[<p>I have to say that the stable version of magento 1.4.1 is not that stable!! &#8212; Magento &#8211;</p>
<p>Please release the CE version with checking the unimplemented methods in the core code. &#8212; Magento &#8211;</p>
<p>I have found and solve the problem of toolbars display error for the new magento 1.4.1</p>
<p>first of all, for more developers (Magento) if you want to see the errors prints in the frontend without checking errors using a reference number</p>
<p>which means you can just rename the local.xml.sample to local.xml to make all the error message print in the frondend.</p>
<p>Now you may have the errors for the toolbar pager as most of CE user will have their custom theme and the 1.3.2 and older all follow the same theme structure but in 1.4.0+ they change the toolbar class</p>
<div><code> <span style="color: #0000bb;">Mage_Catalog_Block_Product_List_Toolbar </span><span style="color: #007700;">extends </span><span style="color: #0000bb;">Mage_Core_Block_Template</span></code></div>
<div>which used to be</div>
<div>
<div><code> <span style="color: #007700;">class </span><span style="color: #0000bb;">Mage_Catalog_Block_Product_List_Toolbar </span><span style="color: #007700;">extends </span><span style="color: #0000bb;">Mage_Page_Block_Html_Pager</span></code></div>
<div>but now they add a mothed to show the pager which listing the pages in Mage_Catalog_Block_Product_List_Toolbar the toolbar.phtml there is code</div>
<div><code>&lt;?php</p>
<p>/**</p>
<p>* Magento</p>
<p>*</p>
<p>* NOTICE OF LICENSE</p>
<p>*</p>
<p>* This source file is subject to the Academic Free License (AFL 3.0)</p>
<p>* that is bundled with this package in the file LICENSE_AFL.txt.</p>
<p>* It is also available through the world-wide-web at this URL:</p>
<p>* http://opensource.org/licenses/afl-3.0.php</p>
<p>* If you did not receive a copy of the license and are unable to</p>
<p>* obtain it through the world-wide-web, please send an email</p>
<p>* to license@magentocommerce.com so we can send you a copy immediately.</p>
<p>*</p>
<p>* DISCLAIMER</p>
<p>*</p>
<p>* Do not edit or add to this file if you wish to upgrade Magento to newer</p>
<p>* versions in the future. If you wish to customize Magento for your</p>
<p>* needs please refer to http://www.magentocommerce.com for more information.</p>
<p>*</p>
<p>* @category</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/05/magento-paggination-problem-in-magento-1-4-1-part-2/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Magento Paggination problem in magento 1.4.1</title>
		<link>http://www.phpasks.com/blogs/2010/05/magento-paggination-problem-in-magento-1-4-1/</link>
		<comments>http://www.phpasks.com/blogs/2010/05/magento-paggination-problem-in-magento-1-4-1/#comments</comments>
		<pubDate>Thu, 27 May 2010 06:10:45 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[Magento Developer]]></category>
		<category><![CDATA[Magento Development]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1280</guid>
		<description><![CDATA[I have to say that the stable version of magento 1.4.1 is not that stable!! Please release the CE version with checking the unimplemented methods in the core code. I have found and solve the problem of toolbars display error for the new magento 1.4.1 first of all, for more developers if you want to [...]]]></description>
				<content:encoded><![CDATA[<p>I have to say that the stable version of magento 1.4.1 is not that stable!!</p>
<p>Please release the CE version with checking the unimplemented methods in the core code.</p>
<p>I have found and solve the problem of toolbars display error for the new magento 1.4.1</p>
<p>first of all, for more developers if you want to see the errors prints in the frontend without checking errors using a reference number</p>
<p>do the following in the SSH or use your ftp.</p>
<div><code> <span style="color: #0000bb;">cd</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/05/magento-paggination-problem-in-magento-1-4-1/feed/</wfw:commentRss>
		<slash:comments>63</slash:comments>
		</item>
		<item>
		<title>Display Promotion &amp; Random Products in Magento</title>
		<link>http://www.phpasks.com/blogs/2010/05/display-promotion-random-products-in-magento/</link>
		<comments>http://www.phpasks.com/blogs/2010/05/display-promotion-random-products-in-magento/#comments</comments>
		<pubDate>Wed, 26 May 2010 06:43:25 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[Magento Developer]]></category>
		<category><![CDATA[Magento Development]]></category>
		<category><![CDATA[Magneto Promotion Products]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1275</guid>
		<description><![CDATA[There are two unused product list blocks in Magento which can be very useful if you push a few buttons, edit few layouts .. 1. Promotion Block located in appcodecoreMageCatalogBlockProductListPromotion.php This is basically built in featured product functionality. It reacts to]]></description>
				<content:encoded><![CDATA[<p>There are two unused product list blocks in Magento which can be very useful if you push a few buttons, edit few layouts ..</p>
<p><span id="more-2785"> </span></p>
<p><strong>1. Promotion</strong></p>
<p>Block located in appcodecoreMageCatalogBlockProductListPromotion.php</p>
<p>This is basically built in featured product functionality. It reacts to </p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/05/display-promotion-random-products-in-magento/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to Import Products into Magento</title>
		<link>http://www.phpasks.com/blogs/2010/05/how-to-import-products-into-magento/</link>
		<comments>http://www.phpasks.com/blogs/2010/05/how-to-import-products-into-magento/#comments</comments>
		<pubDate>Wed, 26 May 2010 05:24:12 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[Magento Developer]]></category>
		<category><![CDATA[Magento Development]]></category>
		<category><![CDATA[Mambo Developer]]></category>
		<category><![CDATA[Import Products into Magento]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1272</guid>
		<description><![CDATA[There]]></description>
				<content:encoded><![CDATA[<p>There</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/05/how-to-import-products-into-magento/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>iPhone Dev The &#8220;Hello World!&#8221; app</title>
		<link>http://www.phpasks.com/blogs/2010/04/iphone-dev-the-hello-world-app/</link>
		<comments>http://www.phpasks.com/blogs/2010/04/iphone-dev-the-hello-world-app/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 04:58:30 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1267</guid>
		<description><![CDATA[In the last iPhone Dev 101 post, I told you a little about creating your first project using Xcode; however, in this post, I want to show you how to create your first application that will run in the iPhone simulator. In honor of staying with the classic way of teaching programming, we&#8217;ll create a [...]]]></description>
				<content:encoded><![CDATA[<p>In the <a href="http://www.tuaw.com/2009/03/31/iphone-dev-101-creating-xcode-projects-brief-xcode-ui-overview/">last iPhone Dev 101 post</a>, I told you a little about creating your first project using Xcode; however, in this post, I want to show you how to create your first application that will run in the iPhone simulator. In honor of staying with the classic way of teaching programming, we&#8217;ll create a &#8220;<a href="http://en.wikipedia.org/wiki/Hello_world_program">Hello World!</a>&#8221; application as our first one.</p>
<p><strong>Creating the new project</strong></p>
<p>If you have installed the iPhone SDK/Xcode, then you can launch Xcode by navigating to /Developer/Applications. Once there, you can double click on the Xcode application (you may also find it handy to just drag the icon to the dock if you will be using it a lot).</p>
<p>Once Xcode launches, click File &gt; New Project. Under the iPhone OS section on the left side of the resulting window, select &#8220;Application.&#8221; Select &#8220;View-based Application&#8221; from the templates that show up on the right side, and then click the &#8220;Choose&#8221; button. You will then be prompted to specify a project save name &#8212; this will also be the name of your resulting application, so choose your project name wisely.</p>
<p>You&#8217;re project has now been created, and the Xcode window that is displayed will contain all of your code, resources, etc. There isn&#8217;t much there now, but the application is fully functional at this point. You can click the &#8220;Build &amp; Go&#8221; button in the toolbar, and the application will be compiled and launched in the iPhone Simulator. Again, this is a fully functional application, but it doesn&#8217;t do anything useful at this point &#8212; the usefulness of the app is up to your coding, but Apple supplies you with the base code and dependencies.</p>
<div id="continued"><strong>Using .xib files</strong></p>
<p>XIB files are a &#8220;newer&#8221; format of Apple&#8217;s older NIB files. These files are where the user interface behind the Mac &amp; iPhone applications is saved/packaged. The history of the NIB file is quite interesting and stretches back to the days of <a href="http://www.tuaw.com/tag/NeXT/">NeXT</a> (you can read more about the <a href="http://en.wikipedia.org/wiki/Interface_Builder">history of Interface Builder here</a>). You edit the user interface in an application called Interface Builder, which saves to these file types. When you double click on one of the files in Xcode, Interface Builder (IB) will automatically launch. Let&#8217;s double click on the MainWindow.xib file.</p>
<p>Once it loads, IB will display a mockup of an iPhone OS view. This view can have objects (buttons, text, etc.) placed on it, and linked to in the code. For this project, however, let&#8217;s make sure the Library window is open: Click Tools &gt; Library (or press shift + command + L). In the Library, you will find all of the components that can make up <img id="vimage_3" src="http://www.blogcdn.com/www.tuaw.com/media/2009/04/iphone-101_-the-_hello-world%21_-app_editingtext.jpg" border="0" alt="" hspace="8" vspace="8" width="225" height="83" align="right" />an iPhone application. In the Library window, select &#8220;Objects,&#8221; and then click Library; In the search box type &#8220;text.&#8221; The search results will return two objects, but the one we want is the &#8220;Text View,&#8221; so drag that to the &#8220;Hello World View Controller&#8221; window, and the object will be &#8220;created.&#8221; If you double click where you just dragged the text view, then you will be able to edit the text that will be shown when the app launches. You can type what ever you wish, but we&#8217;ll use &#8220;Hello World!&#8221;</p>
<p>Once you have your text typed, select File &gt; Save, from within IB; the information will be saved in the .xib file. Now close IB &#8212; you should see the Xcode application still opened.</p>
<p><strong>Running your &#8220;Hello World!&#8221; iPhone app</strong></p>
<p>Select &#8220;Build and Go&#8221; from the toolbar in Xcode. It will save the current project, compile the source code (along with the .xib file), and run it inside of the iPhone simulator. If you get an error while compiling, make sure that the build settings are set to &#8220;Simulator &#8211; iPhone OS 2.2.1.&#8221; You change this by clicking on the Overview drop-down menu on the tool bar; You can also change this by going to the Project &gt; Set Active SDK menu.</p>
<div style="text-align: center;"><img id="vimage_2" src="http://www.blogcdn.com/www.tuaw.com/media/2009/04/iphone-101_-the-_hello-world%21_-app_xcode.jpg" border="1" alt="" hspace="8" vspace="8" width="425" height="309" /></div>
<p>Your application should launch in the simulator and display the text &#8220;Hello World!&#8221; So, congrats on your first iPhone application! Now you&#8217;re ready to start writing much cooler apps that take full advantage of the iPhone. If you don&#8217;t have Objective-C (or Cocoa) knowledge, I recommend that you <a href="http://www.tuaw.com/2009/03/25/iphone-dev-101-useful-cocoa-development-resources/">backtrack to the post about useful Cocoa resources</a>.</p>
<p>In the next iPhone Dev 101 post, I&#8217;ll talk about taking testing one step further by creating an Ad-hoc copy of your applications.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/04/iphone-dev-the-hello-world-app/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>First iPhone Application</title>
		<link>http://www.phpasks.com/blogs/2010/04/first-iphone-application/</link>
		<comments>http://www.phpasks.com/blogs/2010/04/first-iphone-application/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 05:21:03 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[iphone]]></category>
		<category><![CDATA[iPhone Development]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1256</guid>
		<description><![CDATA[Introduction In this tutorial I will give you a brief introduction on how to get started with your first iPhone application. To begin you will need the latest version of the iPhone SDK which you can download it from here. With the SDK you get some tools like Xcode, Interface Builder, iPhone simulator, and many [...]]]></description>
				<content:encoded><![CDATA[<p><span><span style="font-weight: bold; color: #000000; font-size: 130%;">Introduction</span></p>
<p>In this tutorial I will give you a brief introduction on how to get started with your first iPhone application. To begin you will need the latest version of the iPhone SDK which you can download it from here. With the SDK you get some tools like Xcode, Interface Builder, iPhone simulator, and many more. The first application is usually called &#8220;Hello World&#8221; but I have named my first app &#8220;Hello Universe&#8221; because a revolutionary device calls for a change of name.</span></p>
<p><span style="color: #000000; font-size: 130%;"><span style="font-weight: bold;">Purpose of the &#8220;Hello Universe&#8221; app</span></span></p>
<p>Using the app a user will be able to enter his/her full name and click a button to see a message appear. The message will say &#8220;John Doe says Hello Universe!!!&#8221;. This app will not only introduce you to some of the tools but will also show you how to use controls, respond to events and create new views. Excited, I am <img src='http://www.phpasks.com/blogs/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>This is how the app will look like</p>
<p><img class="aligncenter size-medium wp-image-1263" title="FinalApp" src="http://www.phpasks.com/blogs/wp-content/uploads/2010/04/FinalApp-155x300.jpg" alt="FinalApp" width="155" height="300" /></p>
<p><span style="color: #000000; font-size: 130%;"><span style="font-weight: bold;">Creating a new project</span></span></p>
<p>Launch Xcode and click on File -&gt; New Project -&gt; Select Application (under iPhone OS) -&gt; select Window-Based Application project template and click on choose.</p>
<p><img class="aligncenter size-medium wp-image-1262" title="NewProjectWindow" src="http://www.phpasks.com/blogs/wp-content/uploads/2010/04/NewProjectWindow-300x221.jpg" alt="NewProjectWindow" width="300" height="221" /></p>
<p>In the next screen you will be asked to save your project and give it a name. Xcode creates some files for us based on the name of the project, so you want to be careful with the name you provide. I have named my project &#8220;HelloUniverse&#8221;.</p>
<p>This is how the list of files look like in Xcode.</p>
<p><img class="aligncenter size-medium wp-image-1265" title="Files" src="http://www.phpasks.com/blogs/wp-content/uploads/2010/04/Files-230x300.jpg" alt="Files" width="230" height="300" /></p>
<p>All the class files are stored under the &#8220;Classes&#8221; folder, some special files are listed under &#8220;Other Sources&#8221;, all the view files and resources show up under &#8220;Resources&#8221;, and any library or frameworks we add to our project are listed under the &#8220;Frameworks&#8221; folder. It is important that we save all the images, files, databases, and views in the &#8220;Resources&#8221; folder because all the iPhone apps run in its own sand box; which means they can only access files placed under the resources folder.</p>
<p><span style="color: #000000; font-size: 130%;"><span style="font-weight: bold;">How the app is launched</span></span></p>
<p>Every C/C++/Java/C# programmer knows about the main method found in main.m file which is present under the &#8220;Other Sources&#8221; folder. You normally will never have to change this method and all we have to know is that this method is responsible in launching the app. The method applicationDidFinishLaunching method is called when the app is launched on the device or the simulator. The method is defined in &#8220;HelloUniverseAppDelegate.m&#8221; file which is found under the &#8220;Classes&#8221; folder.</p>
<p><span style="font-weight: bold; color: #000000; font-size: 130%;">Interface Builder</span></p>
<p>Using Interface Builder we can design our application by adding controls or creating additional views. The files that the Interface Builder creates gets saved with a .xib extension and are called nib files. Every project gets one nib file by called which is called &#8220;MainWindow.xib&#8221; which can be found under &#8220;Resources&#8221;. An iPhone application has only one window (MainWindow.xib) unlike a desktop application which is created with multiple windows; however, we can create multiple views which are added to the window. Double click on &#8220;MainWindow.xib&#8221; to launch the Interface Builder, which will open four windows and one of the window will look like this</p>
<p><img class="aligncenter size-medium wp-image-1261" title="MainWindow" src="http://www.phpasks.com/blogs/wp-content/uploads/2010/04/MainWindow-300x234.jpg" alt="MainWindow" width="300" height="234" /></p>
<p>The above picture shows the contents of the &#8220;MainWindow.xib&#8221; nib file. Every nib file has atleast two files; File&#8217;s Owner and First Responder which cannot be deleted. Every other objects apart from the first two, represents an instance of an object which gets created when the nib file loads. File&#8217;s Owner simply shows that it owns the object in the nib file. First Responder tells us which object are we currently interacting with; like the textbox, buttons&#8230; The third object which is special to the MainWindow.xib file is called &#8220;Hello Universe App Delegate&#8221; and this file represents &#8220;HelloUniverseAppDelegate&#8221; class. Last but not the least the view represents the object which we design in our apps.</p>
<p><span style="color: #000000; font-size: 130%;"><span style="font-weight: bold;">Creating a new view</span></span></p>
<p>If we had created this project using &#8220;View-Based Application&#8221; project template then there would have been no need of creating another view from scratch, but where is the fun in that. In Interface Builder create a new view by clicking File -&gt; New -&gt; Select Cocoa Touch -&gt; View and click on choose. Let&#8217;s save the view in the project folder by naming it &#8220;HelloUniverse&#8221; and once we do that IB (Interface Builder) will prompt us to add the view to the current project; click on &#8220;Add&#8221; and it will show up in Xcode. In Xcode and move your view to the Resources folder.</p>
<p><span style="color: #000000; font-size: 130%;"><span style="font-weight: bold;">Creating a view controller</span></span></p>
<p>We have a view now let&#8217;s create a view controller to manage the view. In Xcode create a new view controller by selecting classes and clicking File -&gt; New File -&gt; Select Cocoa Touch Classes under iPhone OS -&gt; select UIViewController -&gt; click on choose and name your file &#8220;HelloUniverseController&#8221; without changing the extension. The newly created class inherits from UIViewController which knows how to interact with a view. Now that we have our view and the controller class, there must be some way to connect these two files and we can do it by setting the class property of the File&#8217;s Owner. Double click &#8220;HelloUniverse.xib&#8221; file in Xcode to launch Interface Builder and select File&#8217;s Owner -&gt; select Tools -&gt; Identity Inspector and under &#8220;Class Identity&#8221; category, change the class to &#8220;HelloUniverseController&#8221;. This is how the Class Identity should look like</p>
<p><img class="aligncenter size-full wp-image-1259" title="ClassIdentity" src="http://www.phpasks.com/blogs/wp-content/uploads/2010/04/ClassIdentity.jpg" alt="ClassIdentity" width="286" height="112" /></p>
<p>Once that is done we need a way to control the view in the nib file from code and this is done by connecting the view instance variable to the view object in the nib. The connection is made using &#8220;outlets&#8221;. Select Tools -&gt; Connections Inspector create a connection from the view variable to the view in the nib file. Move your mouse over the empty circle to see it change to a plus symbol indicating that a connection can be created. Click on circle and drag your mouse to the view in the nib file and release. As you do this you will see a blue line being created from the circle to the mouse. Once a connection is created, the connections inspector for File&#8217;s Owner will look like this</p>
<p><img class="aligncenter size-full wp-image-1260" title="Connections" src="http://www.phpasks.com/blogs/wp-content/uploads/2010/04/Connections.jpg" alt="Connections" width="283" height="157" /></p>
<p><span style="color: #000000; font-size: 130%;"><span style="font-weight: bold;">Adding controls to the view</span></span></p>
<p>From the screen shot above we require two text boxes, one label, and a button (Round Rect Button). From the library drag and drop the controls to the view and align it as seen in the figure 1.0. After you have added the controls let&#8217;s change some of its properties, starting with the text boxes. Select the first text box and open Attributes Inspector by selecting Tools -&gt; Attributes Inspector. Under Placeholder enter &#8220;First name&#8221;, under &#8220;Text Input Traits&#8221; change Capitalize property to &#8220;Words&#8221; and change the Return key property to &#8220;Done&#8221;. Apply the same settings for the other text box but change the Placeholder to say &#8220;Last name&#8221;. Select the label and delete its text property, since we do not want the label to say anything until the button is clicked. Double-click the button to edit the title of the button and type in &#8220;Click Me&#8221;. Save and quit Interface Builder as we have successfully designed our view.</p>
<p><span style="color: #000000; font-size: 130%;"><span style="font-weight: bold;">Connecting instance variables to the objects in the view</span></span></p>
<p>We still need some way to interact with the controls on the view, in code and this is where outlets help us out. IBOutlet is a special keyword if used with an instance variable, will make the variable appear in Interface Builder. Since IBOutlet makes the variable appear in Interface Builder, using IBAction as a return type for a method will have the opposite effect. Using IBAction we can handle an event triggered by any control placed on the view. Let&#8217;s see how this works; open HelloUniverseController.h file in Xcode and type in the following code</p>
<div>
<div><code>//HelloUniverseController.h</p>
<p>@interface HelloUniverseController : UIViewController {</code></p>
<p>IBOutlet UITextField *txtFirstName;</p>
<p>IBOutlet UITextField *txtLastName;</p>
<p>IBOutlet UILabel *lblMessage;</p>
<p>}</p>
<p>- (IBAction) btnClickMe_Clicked:(id)sender;</p>
<p>@end</p>
<p>//HelloUniverseController.m</p>
<p>- (void)dealloc {</p>
<p>[txtFirstName release];</p>
<p>[txtLastName release];</p>
<p>[lblMessage release];</p>
<p>[super dealloc];</p>
<p>}</p></div>
</div>
<p>All the variables above are marked with IBOutlet and Interface Builder will make these available to itself so proper connections can be made. We also have a method whose return type is IBAction (void); Interface Builder will also make this method available to itself so we can choose which event will call this method. The method also takes a parameter called &#8220;sender&#8221; which is the object which triggered the event. The variables are released in the dealloc method as shown above. Let&#8217;s connect these instance variables to the controls on the view (HelloUniverse) as described earlier. Open Interface Builder by double-clicking HelloUniverse.xib file and select File&#8217;s Owner, open Connections Inspector to see all the variables present under Outlets and to create connections.</p>
<p><img class="aligncenter size-full wp-image-1260" title="Connections" src="http://www.phpasks.com/blogs/wp-content/uploads/2010/04/Connections.jpg" alt="Connections" width="283" height="157" /></p>
<p>Let&#8217;s hook up the button click event to the &#8220;btnClickMe_Clicked&#8221; method. Select the button and under the Events list it seems that we do not have a button click event; however, we do have a &#8220;Touch Up Inside&#8221; event which is raised when the button is touched and released symbolizing a click. With the button selected click the circle next to &#8220;Touch Up Inside&#8221; and drag your mouse over to File&#8217;s Owner and release to have the method name show; simply click on the method name to create a connection.</p>
<p><img id="BLOGGER_PHOTO_ID_5303977413041756882" style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 101px;" src="http://1.bp.blogspot.com/_ixq8Dp4ESMo/SZuDWwEMmtI/AAAAAAAAAGo/01lAJvpLCHM/s320/Screen.jpg" border="0" alt="" /></p>
<p><span style="color: #000000; font-size: 130%;"><span style="font-weight: bold;">Handling events</span></span></p>
<p>Let&#8217;s write some code in btnClickMe_Clicked event to read the first and last name and display a message in the label. This is how the code looks like</p>
<div>
<div><code>//HelloUniverseController.m</p>
<p>- (IBAction) btnClickMe_Clicked:(id)sender {</code></p>
<p>NSString *FirstName = txtFirstName.text;</p>
<p>NSString *LastName = txtLastName.text;</p>
<p>NSString *Message = nil;</p>
<p>if([FirstName length] == 0 &amp;&amp; [LastName length] == 0)</p>
<p>Message = [[NSString alloc] initWithFormat:@&#8221;Anonymous says Hello Universe!!!&#8221;];</p>
<p>else if ([FirstName length] &gt; 0 &amp;&amp; [LastName length] ==0)</p>
<p>Message = [[NSString alloc] initWithFormat:@&#8221;%@ says Hello Universe&#8221;, FirstName];</p>
<p>else if ([FirstName length] == 0 &amp;&amp; [LastName length] == 0)</p>
<p>Message = [[NSString alloc] initWithFormat:@&#8221;%@ says Hello Universe&#8221;, LastName];</p>
<p>else</p>
<p>Message = [[NSString alloc] initWithFormat:@&#8221;%@ %@ says Hello Universe&#8221;, FirstName, LastName];</p>
<p>lblMessage.text = Message;</p>
<p>//Release the object</p>
<p>[Message release];</p>
<p>}</p></div>
</div>
<p>The method does few simple things, it finds out the first and last names and figures out what message to display in the label. We also create a temporary variable called &#8220;Message&#8221; to hold the message which will be displayed in the label. The variable is allocated and initialized by alloc and initWithFormat messages respectively. The variable is released in the end because when working with the iPhone we are responsible of cleaning up the memory. The easiest way to remember when to release objects is; if you create it then you own the object and hence you are responsible of releasing it.</p>
<p>If you click on Build and Go, the view will not be visible because we have not yet added it to the window. Let&#8217;s see how we can do that</p>
<p><span style="color: #000000; font-size: 130%;"><span style="font-weight: bold;">Adding view to the window</span></span></p>
<p>Now we cannot drag the view and add it to the window, so we need another way to add the view as a sub view to the window. We already know that &#8220;HelloUniverseController&#8221; is the view controller of the view &#8220;HelloUniverse&#8221; and &#8220;HelloUniverseAppDelegate&#8221; is the application delegate where the window is made visible in applicationDidFinishLaunching method. It is in that method we will add the view as a sub view to the window. Before we do that, the application delegate (HelloUniverseAppDelegate) needs to know about our view controller. Add the following lines to HelloUniverseAppDelegate.h file to change the file like this</p>
<div>
<div><code>//HelloUniverseAppDelegate.h</p>
<p>@class HelloUniverseController;</code></p>
<p>@interface HelloUniverseAppDelegate : NSObject &lt;UIApplicationDelegate&gt; {</p>
<p>UIWindow *window;</p>
<p>HelloUniverseController *hvController;</p>
<p>}</p>
<p>@property (nonatomic, retain) IBOutlet UIWindow *window;</p>
<p>@property (nonatomic, retain) HelloUniverseController *hvController;</p>
<p>@end</p></div>
</div>
<p>From the above code we first add a forward class declaration of &#8220;HelloUniverseController&#8221; because we do not want any circular dependency when we import the header file of &#8220;HelloUniverseController&#8221; in HelloUniverseAppDelegate.m. A variable and a property of type HelloUniverseController is also declared. The property as you can see is declared with a couple of attributes called &#8220;retain&#8221; and &#8220;nonatomic&#8221;. The retain attribute will increase the reference count of the instance variable by one and nonatomic is used because our program is not multi-threaded.</p>
<p>A lot of first time users miss to synthesize the property we declared, so let&#8217;s do that now at the top of the HelloUniverseAppDelegate.m file and the code looks like this</p>
<div>
<div><code></p>
<p>//HelloUniverseAppDelegate.m</p>
<p>@implementation HelloUniverseAppDelegate</code></p>
<p>@synthesize window, hvController;</p>
<p>&#8230;</p></div>
</div>
<p>The view is added as a subview to the window in applicationDidFinishLaunching method and this is how the code looks like</p>
<div>
<div><code>//HelloUniverseAppDelegate.m</p>
<p>- (void)applicationDidFinishLaunching:(UIApplication *)application {</code></p>
<p>HelloUniverseController *hvc = [[HelloUniverseController alloc]</p>
<p>initWithNibName:@&#8221;HelloUniverse&#8221; bundle:[NSBundle mainBundle]];</p>
<p>self.hvController = hvc;</p>
<p>[hvc release];</p>
<p>[window addSubview:[self.hvController view]];</p>
<p>// Override point for customization after application launch</p>
<p>[window makeKeyAndVisible];</p>
<p>}</p></div>
</div>
<p>The second line shows that we imported the header file of &#8220;HelloUniverseController&#8221; and we also synthesized the property hvController. In the &#8220;olden&#8221; days in order to create a property we had to create getter and setter methods which would be something like getHVController and setHVController. The synthesize keyword automatically generates these methods for us. In applicationDidFinishLaunching method we allocate and initialize a temporary variable, assign it to our property, release it, and the view associated with the view controller is added as a sub view to the window. The key thing to remember here is that the view message is passed to the &#8220;hvController&#8221; which returns the view and is added as sub view to the window. A valid view is returned because we created a connection from the view instance variable to the view in the nib file. The property is finally released in the dealloc method as shown below</p>
<div>
<div><code>//HelloUniverseAppDelegate.m</p>
<p>- (void)dealloc {</p>
<p>[hvController release];</p>
<p>[window release];</p>
<p>[super dealloc];</p>
<p>}</code></div>
</div>
<p>We have always allocated and initialized variables in one single line as seen below, this is usually the accepted way but the same code can be written in a different way as seen below</p>
<div>
<div><code>HelloUniverseController *hvc = [HelloUniverseController alloc];</p>
<p>hvc = [hvc initWithNibName:@"HelloUniverse" bundle:[NSBundle mainBundle]];</code></div>
</div>
<p>Build and go to test your application.</p>
<p><span style="color: #000000; font-size: 130%;"><span style="font-weight: bold;">Hiding the keyboard</span></span></p>
<p>Wait a minute clicking the &#8220;Done&#8221; button doesn&#8217;t do anything. Ideally we would like to hide the keyboard when the &#8220;Done&#8221; button is clicked no matter which text box we are currently editing. To hide the keyboard we need to do two things; set the delegate of the keyboard to File&#8217;s Owner and implement a method called textFieldShouldReturn in HelloUniverseController.m file. To set the delegate, open Interface Builder by double clicking HelloUniverse.xib, select the first text box and click on Tools -&gt; Connections Inspector. Click and drag your mouse by selecting the empty circle next to delegate under &#8220;Outlets&#8221; and release your mouse over to File&#8217;s Owner. Assign the delegate for the next text box in the same manner.</p>
<p>The method textFieldShouldReturn gets called when the &#8220;Done&#8221; button is clicked and this is how the code looks like</p>
<div>
<div><code>//HelloUniverseController.m</p>
<p>- (BOOL)textFieldShouldReturn:(UITextField *)theTextField {</code></p>
<p>[theTextField resignFirstResponder];</p>
<p>return YES;</p>
<p>}</p></div>
</div>
<p>The method gets a parameter called sender, which is the object that triggered the event. We will use the same object to which we send the resignResponder message, which will hide the keyboard on the textbox. The boolean &#8220;Yes&#8221; is returned to tell the sender that the first responder is resigned.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/04/first-iphone-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Development Process</title>
		<link>http://www.phpasks.com/blogs/2010/03/development-process/</link>
		<comments>http://www.phpasks.com/blogs/2010/03/development-process/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 11:02:53 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1254</guid>
		<description><![CDATA[Design &#8211; Develop &#8211; Implement &#8211; Support PHPAsKS offers a full-service experience to clients and partners &#8211; that is PHPAsKS approach to software and application development. Here at PHPAsKS, we understand that an idea needs to be protected and its value kept intact. After all, what would we develop if there were no ideas! So [...]]]></description>
				<content:encoded><![CDATA[<p><strong>Design &#8211; Develop &#8211; Implement &#8211; Support</strong></p>
<p>PHPAsKS offers a full-service experience to clients and partners &#8211; that is PHPAsKS approach to software and application development.</p>
<p>Here at PHPAsKS, we understand that an idea needs to be protected and its value kept intact. After all, what would we develop if there were no ideas! So even before we talk to you about your requirements, we ensure that an NDA (Non-Disclosure Agreement) is put in place to protect your asset from day one.</p>
<p>Once your asset is secured, our experienced product managers will work with you first to identify the key goals and requirements of your app. These will be further developed into a &#8220;implementable&#8221; idea, taking into consideration your guidelines and key performance indicators.</p>
<p>The idea is then refined and prototyped to hand over to our designers &#8211; we ensure that any brand identity and values are retained throughout the design process, and your aesthetic requirements are met to the fullest extent.</p>
<p>Once the design is finalised, our team of programmers and technical experts take over and convert that prototype into a fully functioning application.</p>
<p>But we don&#8217;t just stop there. Once the product is tested, signed-off and deployed, we also provide you with statistical data and analytics on usage, downloads and other reporting. We think that the post-deployment process is as important as the creation of the app itself.</p>
<p>Whether it</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/03/development-process/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>iPhone app development</title>
		<link>http://www.phpasks.com/blogs/2010/03/iphone-app-development/</link>
		<comments>http://www.phpasks.com/blogs/2010/03/iphone-app-development/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 11:00:34 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[iphone]]></category>
		<category><![CDATA[iPhone Development]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1252</guid>
		<description><![CDATA[Looking for an iPhone developer to handle your application development? At PHPAsKS, our iPhone developers specialise in all aspects of the iPhone development platform, spanning all mobile versions and operating systems. Our iPhone development methodology and lifecycle processes are best suited to a quality driven approach, and all apps are optimised and tested before being [...]]]></description>
				<content:encoded><![CDATA[<p><strong>Looking for an iPhone developer to handle your application development?</strong></p>
<p>At PHPAsKS, our iPhone developers specialise in all aspects of the iPhone development platform, spanning all mobile versions and operating systems.</p>
<p>Our iPhone development methodology and lifecycle processes are best suited to a quality driven approach, and all apps are optimised and tested before being deployed.</p>
<p>The PHPAsKS team of iPhone developers have years of experience developing on the Mac OS X platform, and are now utilising their skills on high quality and interative iPhone development.</p>
<p>If you are looking to hire an iPhone developer (or team of developers) for your project, PHPASKS can handle the entire development lifecycle for you from concept to execution, delivery and support.</p>
<p><strong>Interested?</p>
<p></strong>Find out more about our iPhone development services using the details on the right.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/03/iphone-app-development/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to check and uncheck a checkbox with jQuery</title>
		<link>http://www.phpasks.com/blogs/2010/03/how-to-check-and-uncheck-a-checkbox-with-jquery/</link>
		<comments>http://www.phpasks.com/blogs/2010/03/how-to-check-and-uncheck-a-checkbox-with-jquery/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 13:30:38 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1249</guid>
		<description><![CDATA[jQuery is a Javascript framework which can simplify coding Javascript for a website and removes a lot of cross browser compatibility issues. Yesterday I looked at how to get and set form element values with jQuery but didn&#8217;t deal with checkboxes. Today&#8217;s post looks at how to tell if an HTML form checkbox is checked [...]]]></description>
				<content:encoded><![CDATA[<p>jQuery is a Javascript framework which can simplify coding Javascript for a website and removes a lot of cross browser compatibility issues. Yesterday I looked at how to get and set form element values with jQuery but didn&#8217;t deal with checkboxes. Today&#8217;s post looks at how to tell if an HTML form checkbox is checked or not checked with jQuery and then how to change it to be un/checked.</p>
<p>Our example form looks like this:</p>
<pre>&lt;input type="checkbox" name="foo" value="bar" /&gt;

&lt;input type="button" onclick="show_checked()" value="Show" /&gt;

&lt;input type="button" onclick="set_checked(true)" value="On" /&gt;

&lt;input type="button" onclick="set_checked(false)" value="Off" /&gt;</pre>
<p>There&#8217;s checkbox with name &#8220;foo&#8221; and then three buttons. The first calls a functionto show us if the checkbox is checked or not, and the second two change it from being checked to not being checked.</p>
<p>There are several ways to get to work out if a checkbox is checked or not with jQuery, and here a couple of alternatives. Each will return true if it&#8217;s checked or false if it&#8217;s not.</p>
<pre>$('input[name=foo]').is(':checked')

$('input[name=foo]').attr('checked')</pre>
<p>We can change the status of the checkbox using the attr() function like so, to check the box:</p>
<pre>$('input[name=foo]').attr('checked', true);</pre>
<p>and like so to uncheck the box:</p>
<pre>$('input[name=foo]').attr('checked', false);</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/03/how-to-check-and-uncheck-a-checkbox-with-jquery/feed/</wfw:commentRss>
		<slash:comments>649</slash:comments>
		</item>
		<item>
		<title>jQuery get select option value</title>
		<link>http://www.phpasks.com/blogs/2010/03/jquery-get-select-option-value/</link>
		<comments>http://www.phpasks.com/blogs/2010/03/jquery-get-select-option-value/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 13:26:20 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1245</guid>
		<description><![CDATA[Asif Khalyani asked me a simple question today, but it is worth noting because I have asked the same before, &#8220;How do you get the current value from a select list?&#8221; t&#8217;s looking for an element with id list which has a property value equal to 2. What you want is the option child of [...]]]></description>
				<content:encoded><![CDATA[<p><strong>Asif Khalyani</strong> asked me a simple question today, but it is worth noting because I have asked the same before, &#8220;How do you get the current value from a select list?&#8221;</p>
<p>t&#8217;s looking for an element with id list which has a property value equal to 2. What you want is the option child of the list.</p>
<p>$(&#8220;#list option[value='2']&#8220;).text()</p>
<p>But sometimes you may need to get the selected option&#8217;s text. This is not as straight forward. First, we get the selected option with <code>:selected</code> selector. Then once we have the option, we can get the text with the function, <code>text()</code>.</p>
<div>
<pre><code><span>$</span><span>(</span><span>"#list option:selected"</span><span>).</span><span>text</span><span>();

</span></code>$j("#txt_employee_name option:selected").val() // Get the Option ID

</pre>
<pre>

<h2>Getting a form value with jQuery</h2>

To get a form value with jQuery use the val() function. Let's say we have a form like this, using an id for each form element:

<pre>&lt;input name="foo" id="foo" type="text"&gt;



&lt;select name="foo" id="bar"&gt;

    &lt;option value="1"&gt;one&lt;/option&gt;

    &lt;option value="2"&gt;two&lt;/option&gt;

    &lt;option value="3"&gt;three&lt;/option&gt;

&lt;/select&gt;</pre>
<p>We can display an alert for the values of "foo" and "bar" as easily this:</p>
<pre>window.alert( $('#foo').val() );

window.alert( $('#bar').val() );</pre>
<p>If we're using the name only and not specifying an id, the jQuery to get the form values would be this:</p>
<pre>window.alert( $('[name=foo]').val() );

window.alert( $('[name=bar]').val() );</pre>
<p>If you have a group of radio buttons and want to get the selected button, the code is slightly different because they all have the same name. Using the above code examples will show the value for the first radio button on the form with that name. To find out the value of the checked one, do this instead:</p>
<p>HTML:</p>
<pre>&lt;input type="radio" name="baz" value="x"&gt;

&lt;input type="radio" name="baz" value="y"&gt;

&lt;input type="radio" name="baz" value="z"&gt;</pre>
<p>jQuery:</p>
<pre>window.alert($('input[name=baz]:checked').val());</pre>
<h2>Setting a form value with jQuery</h2>
<p>You can set the form values with jQuery using the same val() function but passing it a new value instead. Using the same example forms above, you'd do this for the text input and select box:</p>
<pre>$('#foo').val('this is some example text');

$('#bar').val('3');

OR

$('[name=foo]').val('this is some example text');

$('[name=bar]').val('3');</pre>
<p>Using the above for a radio button will change the actual value of the radio button rather than changing the one that is selected. To change the radio button that is selected you'd do this:</p>
<pre>$('input[name="baz"]')[0].checked = true;</pre>
<p>[0] would set the first one checked, [1] would set the second one checked and so on.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/03/jquery-get-select-option-value/feed/</wfw:commentRss>
		<slash:comments>1291</slash:comments>
		</item>
		<item>
		<title>Create Selext Box In jQuery</title>
		<link>http://www.phpasks.com/blogs/2010/03/create-selext-box-in-jquery/</link>
		<comments>http://www.phpasks.com/blogs/2010/03/create-selext-box-in-jquery/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 13:15:38 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1243</guid>
		<description><![CDATA[In jQuery, working with select box required some additional knowledge and interaction with jQuery. You may have some problem manipulating select box during your web development on jQuery. In this article we will discuss how you can solve this without any additional plugin to kill efficiency. Create Selext Box In jQuery Create a select box [...]]]></description>
				<content:encoded><![CDATA[<p>In jQuery, working with select box required some additional knowledge and interaction with jQuery. You may have some problem manipulating select box during your web development on jQuery. In this article we will discuss how you can solve this without any additional plugin to kill efficiency.</p>
<p><br clear="all" /> </p>
<h2>Create Selext Box In jQuery</h2>
<p>Create a select box is very simple and straight forward. Just write a string with the normal select tag and a select box is created in jQuery</p>
<div id="highlighter_845654">
<div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>1</code></td>
<td><code>jQuery(</code><code>'#some_element'</code><code>).append(</code><code>'&lt;select&gt;&lt;/select&gt;'</code><code>);</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<p>I bet everyone would have tried this and it work. However, manipulating might be a more challenging task.</p>
<h2>Add Option In Select Box With jQuery</h2>
<p>One easy way is to create a string with the whole element and create it straight away</p>
<div id="highlighter_554803">
<div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>01</code></td>
<td><code>//obj is the list of option values</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>02</code></td>
<td><code>function</code><code>(obj)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>03</code></td>
<td><code>{</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>04</code></td>
<td><code> </code><code>var</code> <code>create = </code><code>'&lt;select id="test"&gt;'</code><code>;</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>05</code></td>
<td><code> </code><code>for</code><code>(</code><code>var</code> <code>i = 0; i &lt; obj.length;i++)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>06</code></td>
<td><code> </code><code>{</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>07</code></td>
<td><code> </code><code>create += </code><code>'&lt;option value="'</code><code>+obj[i]+</code><code>'"&gt;'</code><code>+obj[i]+</code><code>'&lt;/option&gt;'</code><code>;</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>08</code></td>
<td><code> </code><code>}</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>09</code></td>
<td><code> </code><code>create += </code><code>'&lt;/select&gt;'</code><code>;</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>10</code></td>
<td><code> </code><code>jQuery(</code><code>'#some_element'</code><code>).append(create);</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>11</code></td>
<td><code>}</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<p>Another way to create a list of elements is to create its option and append it in using pure jQuery.</p>
<div id="highlighter_401061">
<div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>1</code></td>
<td><code>function</code><code>(id, obj)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>2</code></td>
<td><code>{</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>3</code></td>
<td><code> </code><code>jQuery(</code><code>'#some_element'</code><code>).append(</code><code>'&lt;select id="'</code><code>+id+</code><code>'"&gt;&lt;/select&gt;'</code><code>);</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>4</code></td>
<td><code> </code><code>jQuery.each(obj, </code><code>function</code><code>(val, text) {</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>5</code></td>
<td><code> </code><code>jQuery(</code><code>'#'</code><code>+id).append(</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>6</code></td>
<td><code> </code><code>jQuery(</code><code>'&lt;option&gt;&lt;/option'</code><code>).val(val).html(text)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>7</code></td>
<td><code> </code><code>);})</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>8</code></td>
<td><code>}</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<p>You may not be familiar what i wrote above. Hence, a more javascript approach is shown below.</p>
<div id="highlighter_780362">
<div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>1</code></td>
<td><code>function</code><code>(id, obj)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>2</code></td>
<td><code>{</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>3</code></td>
<td><code> </code><code>jQuery(</code><code>'#some_element'</code><code>).append(</code><code>'&lt;select id="'</code><code>+id+</code><code>'"&gt;&lt;/select&gt;'</code><code>);</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>4</code></td>
<td><code> </code><code>for</code><code>(</code><code>var</code> <code>i = 0; i &lt; obj.length;i++)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>5</code></td>
<td><code> </code><code>{</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>6</code></td>
<td><code> </code><code>jQuery(</code><code>'#'</code><code>+id).append(</code><code>'&lt;option value="'</code><code>+obj[i]+</code><code>'"&gt;'</code><code>+obj[i]+</code><code>'&lt;/option'</code><code>)</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>7</code></td>
<td><code> </code><code>}</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>8</code></td>
<td><code>}</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<h2>Get Select Box Value/Text In jQuery</h2>
<p>Sometimes we want to know what is the value of the selected option. This is how we do it.</p>
<div id="highlighter_453447">
<div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>1</code></td>
<td><code>//#selectbox is the id of the select box</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>2</code></td>
<td><code>jQuery(</code><code>'#selectbox: selected'</code><code>).val();</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<p>On the other hand, we can get the text of the option by doing this.</p>
<div id="highlighter_84065">
<div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>1</code></td>
<td><code>//#selectbox is the id of the select box</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>2</code></td>
<td><code>jQuery(</code><code>'#selectbox: selected'</code><code>).text();</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<p>What if you know the value of the options you want to get instead of the one selected?</p>
<div id="highlighter_322461">
<div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>1</code></td>
<td><code>//#selectbox is the id of the select box</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>2</code></td>
<td><code>$(</code><code>"#selectList option[value='thisistheone']"</code><code>).text();</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<p>How about the first element on the select box?</p>
<div id="highlighter_668831">
<div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>1</code></td>
<td><code>//#selectbox is the id of the select box</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>2</code></td>
<td><code>$(</code><code>"#selectList option:first"</code><code>).text()</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<p>How about the n element on the select box?</p>
<div id="highlighter_629912">
<div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>1</code></td>
<td><code>//#selectbox is the id of the select box</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>2</code></td>
<td><code>$(</code><code>"#selectList option:eq(3)"</code><code>).text()</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<p>How about getting all elements but the first and last one in a select box?</p>
<div id="highlighter_570195">
<div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>1</code></td>
<td><code>//#selectbox is the id of the select box</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>2</code></td>
<td><code>$(</code><code>"#selectList option:not(option:first, option:last)"</code><code>).each(</code><code>function</code><code>(){</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>3</code></td>
<td><code>$(this).text();</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>4</code></td>
<td><code>});</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<h2>Get Multiple Selected Value/Text In jQuery Select Box</h2>
<p>Now we want to try to retrieve multiple selected values, we can do it easily with the following code.</p>
<div id="highlighter_458962">
<div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>1</code></td>
<td><code>jQuery(</code><code>'#some_element:selected'</code><code>).each(</code><code>function</code><code>(){</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>2</code></td>
<td><code> </code><code>alert(jQuery(this).text());</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>3</code></td>
<td><code> </code><code>alert(jQuery(this).val());</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>4</code></td>
<td><code>});</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<p>How about storing these values?</p>
<div id="highlighter_216154">
<div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>1</code></td>
<td><code>var</code> <code>current = [];</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>2</code></td>
<td><code>jQuery(</code><code>'#some_element:selected'</code><code>).each(</code><code>function</code><code>(index, selectedObj){</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>3</code></td>
<td><code> </code><code>current[index] = $(selectedObj).text();</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>4</code></td>
<td><code>});</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<p>This way we eliminate the additional index needed to follow through the loop! How about shorten the cold a bit?</p>
<div id="highlighter_596299">
<div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>1</code></td>
<td><code>var</code> <code>foo = jQuery(</code><code>'#multiple :selected'</code><code>).map(</code><code>function</code><code>(){</code><code>return</code> <code>jQuery(this).val();}).get();</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<p>This way we eliminate the need to create an array.</p>
<h2>Remove Element In Select Box With jQuery</h2>
<p>So we can get and add element into the select box. How about remove them? Basically, you will need to use one of the get element method describe above before applying the remove instruction.</p>
<div id="highlighter_864279">
<div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>1</code></td>
<td><code>jQuery(</code><code>'#selectbox: selected'</code><code>).remove();</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<p>Here we will remove all elements except the first and last one.</p>
<div id="highlighter_158229">
<div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>1</code></td>
<td><code>//#selectbox is the id of the select box</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>2</code></td>
<td><code>$(</code><code>"#selectbox option:not(option:first, option:last)"</code><code>).remove();</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<h2>Select an option in the select box  with jQuery</h2>
<p>If you want to select an option in the select box, you can do this.</p>
<div id="highlighter_413039">
<div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>1</code></td>
<td><code>jQuery(</code><code>'#selectbox option'</code><code>).attr(</code><code>'selected'</code><code>, </code><code>'selected'</code><code>);</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<p>all option will be selected in this case.</p>
<h2>UnSelect an option in the select box with jQuery</h2>
<p>If you want to unselect an option in the select box, you can do this.</p>
<div id="highlighter_440446">
<div>
<div>
<table border="0">
<tbody>
<tr>
<td><code>1</code></td>
<td><code>jQuery(</code><code>'#selectbox option'</code><code>).attr(</code><code>'selected'</code><code>, false);</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<p>all option will be unselected n this case.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/03/create-selext-box-in-jquery/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Best methods to optimize JPEG images for websites</title>
		<link>http://www.phpasks.com/blogs/2010/03/best-methods-to-optimize-jpeg-images-for-websites/</link>
		<comments>http://www.phpasks.com/blogs/2010/03/best-methods-to-optimize-jpeg-images-for-websites/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 13:43:18 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1240</guid>
		<description><![CDATA[Best methods to optimize JPEG images for websites While Internet connections becoming faster and faster, it]]></description>
				<content:encoded><![CDATA[<p><!--header.php end--> <!--single.php--> <!--loop--> <!--post title--></p>
<h1 id="post-964"><a title="Permanent Link: Best methods to optimize JPEG images for websites" rel="bookmark" href="http://www.web-development-blog.com/archives/best-methods-to-optimize-jpeg-images-for-websites/">Best methods to optimize JPEG images for websites</a></h1>
<p><!--Post Meta-->While Internet connections becoming faster and faster, it</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/03/best-methods-to-optimize-jpeg-images-for-websites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>150 Ways to Ruin Your WordPress Site and Your Life</title>
		<link>http://www.phpasks.com/blogs/2010/03/150-ways-to-ruin-your-wordpress-site-and-your-life/</link>
		<comments>http://www.phpasks.com/blogs/2010/03/150-ways-to-ruin-your-wordpress-site-and-your-life/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 13:36:50 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[Wordpress Expert]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/2010/03/150-ways-to-ruin-your-wordpress-site-and-your-life/</guid>
		<description><![CDATA[Here are some obvious and not so obvious ways to ruin your WordPress website. Some of these will also destroy the relationships with your family and friends. In fact, I guarantee that if you follow these 150 simple steps, you will have a horrible WordPress website and very few friends. Earlier this week I published [...]]]></description>
				<content:encoded><![CDATA[<div><img title="150 Ways to Ruin Your WordPress Website" src="http://www.montanaprogrammer.com/wp-content/uploads/2010/03/wordpress4.jpg" alt="" width="200" height="150" /></div>
<p>Here are some obvious and not so obvious ways to <strong>ruin your WordPress website</strong>. Some of these will also destroy the relationships with your family and friends. In fact, I guarantee that if you follow these 150 simple steps, you will have a <strong>horrible WordPress website</strong> and very few friends.</p>
<p>Earlier this week I published a list of <a href="http://www.montanaprogrammer.com/wordpress/101-killer-wordpress-plugins/">the best 101 WordPress plugins</a>. Going a long with that huge list, I decided to come out with something similar</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/03/150-ways-to-ruin-your-wordpress-site-and-your-life/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Image over Contain Layer using jQuery</title>
		<link>http://www.phpasks.com/blogs/2010/03/image-over-contain-layer-using-jquery/</link>
		<comments>http://www.phpasks.com/blogs/2010/03/image-over-contain-layer-using-jquery/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 06:52:05 +0000</pubDate>
		<dc:creator>Asif Khalyani</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.phpasks.com/blogs/?p=1215</guid>
		<description><![CDATA[Image over Contain Layer using jQuery Demo Suffolk County Council Web design and build / CMS integration / E-Newsletters / SEO Visit the website Earthmoves Design Web design and build / CMS integration / Branding Visit the website Gwynedd Council Web design and build / Site management Visit the website Keep your site fresh and [...]]]></description>
				<content:encoded><![CDATA[<h3>Image over Contain Layer using jQuery</h3>
<h2>Demo</h2>
<link rel="stylesheet" href="http://www.phpasks.com/blogs/wp-content/uploads/2010/03/style.css" type="text/css" media="screen, projection"><script type="text/javascript" src="http://www.phpasks.com/blogs/wp-content/uploads/2010/03/jquery.js"></script>
<p><script type="text/javascript" src="http://www.phpasks.com/blogs/wp-content/uploads/2010/03/jquery_minified.js"></script>
<div class="container_16">
<div class="boxgrid caption"> <img src="http://www.phpasks.com/blogs/wp-content/uploads/2010/03/ssp.jpg" alt="Suffolk County Council" width="210" height="176"><!-- START of .boxgrid caption -->
<div style="top: 127px;" class="cover boxcaption">
<h3>Suffolk County Council</h3>
<p class="workdesc">Web design and build / CMS integration / E-Newsletters / SEO</p>
<p><a bitly="BITLY_PROCESSED" class="website" href="http://www.phpasks.com/contact-us.html" title="visit the Transforming Suffolk website">Visit the website</a></div>
<p><!-- end of .boxgrid caption --></div>
<p><!-- end of .cover boxcaption -->
<div class="boxgrid caption"> <img src="http://www.phpasks.com/blogs/wp-content/uploads/2010/03/emd.jpg" alt="Earthmoves Design" width="210" height="176">
<div class="cover boxcaption">
<h3>Earthmoves Design</h3>
<p class="workdesc">Web design and build / CMS integration / Branding</p>
<p><a bitly="BITLY_PROCESSED" class="website" href="http://www.phpasks.com/contact-us.html" title="visit the Earthmoves Design website">Visit the website</a> </div>
<p><!-- end of .boxgrid caption --></div>
<p><!-- end of .cover boxcaption --><br clear="all" />
<div class="boxgrid caption">
<div class="cover boxcaption">
<h3>Gwynedd Council</h3>
<p class="workdesc">Web design and build / Site management</p>
<p><a bitly="BITLY_PROCESSED" class="website" href="http://www.phpasks.com/contact-us.html" title="visit the Health Challenge Gwynedd website">Visit the website</a> </div>
<p><!-- end of .boxgrid caption --></div>
<p><!-- end of .cover boxcaption --><br clear="all" />
<div class="divider"><!-- end of .grid_4 -->
<div class="boxgrid captionfull"> <img src="http://www.phpasks.com/blogs/wp-content/uploads/2010/03/cms.jpg" alt="Manage your website with a content management system" width="210" height="176">
<div class="cover boxcaption">
<p class="workdesc2">Keep your site fresh and up to date with our easy to use, yet powerful content management system</p>
<p><a bitly="BITLY_PROCESSED" class="website" href="http://www.phpasks.com/contact-us.html" title="get a quote">Try a demo or get a quote</a></p>
</div>
<p><!-- end of .boxgrid caption --></div>
<p><!-- end of .cover boxcaption -->
<div class="boxgrid captionfull"> <img src="http://www.phpasks.com/blogs/wp-content/uploads/2010/03/ecom.jpg" alt="Sell online with our E-Commerce system" width="210" height="176">
<div class="cover boxcaption">
<p class="workdesc2">Give new and existing customers a secure, easy to use platform to purchase from you online</p>
<p><a bitly="BITLY_PROCESSED" class="website" href="http://www.phpasks.com/contact-us.html" title="get a quote">Try a demo or get a quote</a></p>
</div>
<p><!-- end of .boxgrid caption --></div>
<p><!-- end of .cover boxcaption --><br clear="all" />
<div class="boxgrid captionfull"> <img src="http://www.phpasks.com/blogs/wp-content/uploads/2010/03/email.jpg" alt="Send email campaigns with our E-Mail Newsletter system" width="210" height="176">
<div class="cover boxcaption">
<p class="workdesc2">Send branded, rich, targeted email campaigns and track results using our E-Mail campaign system</p>
<p><a bitly="BITLY_PROCESSED" class="website" href="http://www.phpasks.com/contact-us.html" title="get a quote">Try a demo or get a quote</a></p>
</div>
<p><!-- end of .boxgrid caption --></div>
<p><!-- end of .cover boxcaption --></div>
</div>
<p><br clear="all" /><br />
<h2>HTML Source Donwload</h2>
<pre>

&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;

&lt;html dir="ltr" xml:lang="en-gb" xmlns="http://www.w3.org/1999/xhtml" lang="en-gb"&gt;

&lt;head&gt;

&lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&gt;

&lt;title&gt;Web design and online marketing by Blend, Ipswich, Suffolk, UK&lt;/title&gt;

&lt;link rel="stylesheet" href="http://www.phpasks.com/blogs/wp-content/uploads/2010/03/style.css" type="text/css" media="screen, projection"&gt;

&lt;script type="text/javascript" src="http://www.phpasks.com/blogs/wp-content/uploads/2010/03/jquery.js"&gt;&lt;/script&gt;

&lt;script type="text/javascript" src="http://www.phpasks.com/blogs/wp-content/uploads/2010/03/jquery_minified.js"&gt;&lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;

&lt;div&gt;

&lt;div&gt; &lt;img src="http://www.phpasks.com/blogs/wp-content/uploads/2010/03/ssp.jpg" alt="Suffolk County Council" width="210" height="176"&gt;

&lt;!-- START of .boxgrid caption --&gt;

&lt;div style="top: 127px;"&gt;

&lt;h3&gt;Suffolk County Council&lt;/h3&gt;

&lt;p&gt;Web design and build / CMS integration / E-Newsletters / SEO&lt;/p&gt;

&lt;a bitly="BITLY_PROCESSED" href="http://www.phpasks.com/contact-us.html" title="visit the Transforming Suffolk website"&gt;Visit the website&lt;/a&gt;

&lt;/div&gt;

&lt;!-- end of .boxgrid caption --&gt;

&lt;/div&gt;

&lt;!-- end of .cover boxcaption --&gt;

&lt;div&gt; &lt;img src="http://www.phpasks.com/blogs/wp-content/uploads/2010/03/emd.jpg" alt="Earthmoves Design" width="210" height="176"&gt;

&lt;div&gt;

&lt;h3&gt;Earthmoves Design&lt;/h3&gt;

&lt;p&gt;Web design and build / CMS integration / Branding&lt;/p&gt;

&lt;a bitly="BITLY_PROCESSED" href="http://www.phpasks.com/contact-us.html" title="visit the Earthmoves Design website"&gt;Visit the website&lt;/a&gt; &lt;/div&gt;

&lt;!-- end of .boxgrid caption --&gt;

&lt;/div&gt;

&lt;!-- end of .cover boxcaption --&gt;

&lt;div&gt; &lt;img src="http://www.phpasks.com/blogs/wp-content/uploads/2010/03/ghia.jpg" alt="Gwynedd Council" width="210" height="176"&gt;

&lt;div&gt;

&lt;h3&gt;Gwynedd Council&lt;/h3&gt;

&lt;p&gt;Web design and build / Site management&lt;/p&gt;

&lt;a bitly="BITLY_PROCESSED" href="http://www.phpasks.com/contact-us.html" title="visit the Health Challenge Gwynedd website"&gt;Visit the website&lt;/a&gt; &lt;/div&gt;

&lt;!-- end of .boxgrid caption --&gt;

&lt;/div&gt;

&lt;!-- end of .cover boxcaption --&gt;

&lt;div&gt;

&lt;!-- end of .grid_4 --&gt;

&lt;div&gt; &lt;img src="http://www.phpasks.com/blogs/wp-content/uploads/2010/03/cms.jpg" alt="Manage your website with a content management system" width="210" height="176"&gt;

&lt;div&gt;

&lt;p&gt;Keep your site fresh and up to date with our easy to use, yet powerful content management system&lt;/p&gt;

&lt;p&gt;&lt;a bitly="BITLY_PROCESSED" href="http://www.phpasks.com/contact-us.html" title="get a quote"&gt;Try a demo or get a quote&lt;/a&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;!-- end of .boxgrid caption --&gt;

&lt;/div&gt;

&lt;!-- end of .cover boxcaption --&gt;

&lt;div&gt; &lt;img src="http://www.phpasks.com/blogs/wp-content/uploads/2010/03/ecom.jpg" alt="Sell online with our E-Commerce system" width="210" height="176"&gt;

&lt;div&gt;

&lt;p&gt;Give new and existing customers a secure, easy to use platform to purchase from you online&lt;/p&gt;

&lt;p&gt;&lt;a bitly="BITLY_PROCESSED" href="http://www.phpasks.com/contact-us.html" title="get a quote"&gt;Try a demo or get a quote&lt;/a&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;!-- end of .boxgrid caption --&gt;

&lt;/div&gt;

&lt;!-- end of .cover boxcaption --&gt;

&lt;div&gt; &lt;img src="http://www.phpasks.com/blogs/wp-content/uploads/2010/03/email.jpg" alt="Send email campaigns with our E-Mail Newsletter system" width="210" height="176"&gt;

&lt;div&gt;

&lt;p&gt;Send branded, rich, targeted email campaigns and track results using our E-Mail campaign system&lt;/p&gt;

&lt;p&gt;&lt;a bitly="BITLY_PROCESSED" href="http://www.phpasks.com/contact-us.html" title="get a quote"&gt;Try a demo or get a quote&lt;/a&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;!-- end of .boxgrid caption --&gt;

&lt;/div&gt;

&lt;!-- end of .cover boxcaption --&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;!--end of container_16 --&gt;

&lt;/body&gt;

&lt;/html&gt;

</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.phpasks.com/blogs/2010/03/image-over-contain-layer-using-jquery/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
	</channel>
</rss>
