<?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>php genious &#187; Javascript</title>
	<atom:link href="http://www.phpgenious.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpgenious.com</link>
	<description></description>
	<lastBuildDate>Tue, 27 Sep 2011 21:02:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Image Preview Script like Template Monster</title>
		<link>http://www.phpgenious.com/2010/04/image-preview-script-like-template-monster/</link>
		<comments>http://www.phpgenious.com/2010/04/image-preview-script-like-template-monster/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 06:50:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Image Preview]]></category>
		<category><![CDATA[Javascript image popup]]></category>
		<category><![CDATA[jquery image]]></category>
		<category><![CDATA[template monster like image preview]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=407</guid>
		<description><![CDATA[Hello Friends !! Since last few days, I am looking for Image Preview Script like template monster. I was doing lots of googling to fing this type of script. I [...]]]></description>
			<content:encoded><![CDATA[<p>Hello Friends !!</p>
<p>Since last few days, I am looking for Image Preview Script like template monster. I was doing lots of googling to fing this type of script.</p>
<p>I found one script from javascriptkit.com but its not browser compitible script. (Not working in Google Chrome and Safari). I was searching in goole to make this script compitible with all the browsers. But I wasn&#8217;t get any help. At that time, I decided to make such type of script.</p>
<p><span id="more-407"></span></p>
<p>After long research and modification, I got success to make such type of script which shows your image properly.I have made script which preview your image same like template monster .</p>
<p>Today I will provide you this script. <a href="http://www.phpgenious.com/test/mouseover-popup/example.html" target="_blank"><strong>Click here</strong></a> to see the Demo of this script.</p>
<p>For Download full source code, <strong>Click Below</strong> links or <a href="http://www.phpgenious.com/test/mouseover-popup.rar" target="_blank">Click Here</a><br />
<!--adsense#cronjob--></p>
<p>If you have any suggestion or any query regarding this script, then feel free to comment on this post.<br />
Thanks !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/04/image-preview-script-like-template-monster/feed/</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
		<item>
		<title>JavaScriptMVC 1.5 Released</title>
		<link>http://www.phpgenious.com/2009/02/javascriptmvc-15-released/</link>
		<comments>http://www.phpgenious.com/2009/02/javascriptmvc-15-released/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 12:47:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JavascriptMVC]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=169</guid>
		<description><![CDATA[Do you know MVC ? MVC is a framework named Model-View-Controller. A design pattern used in services architectures. MVC expresses the separation of a software architecture into three distinct elements. [...]]]></description>
			<content:encoded><![CDATA[<p>Do you know MVC ?</p>
<p>MVC is a framework named <strong>Model-View-Controller</strong>.</p>
<p>A design pattern used in services architectures. MVC expresses the separation of a software architecture into three distinct elements. The &#8216;Model&#8217; is how the underlying data is structured. The &#8216;View&#8217; is what is presented to the user or consumer. The &#8216;Controller&#8217; is the element that performs the processing.</p>
<p>For javascript users, <strong>JavaScriptMVC 1.5</strong> Released and <a href="http://javascriptmvc.com/blog/?p=124">version 1.5 is offically available for download</a>.<br />
<span id="more-169"></span></p>
<p><strong>New features include:</strong></p>
<ul>
<li><strong>Env.js/Shrinksafe based compression:</strong> A custom env to simulate the browser. As the browser encounters script tags, it adds them to a collection and then compresses them. This means instant file concat and compression from the command line with no extra work.</li>
<li><strong>Env.js Testing:</strong> Prior to 1.5, tests ran in the browser only. With Env, the same tests can be run from the command line. Great for projects where you need a quick way of checking if functionality works before check-in.</li>
<li><strong>Documentation:</strong>New JavaScript based documentation library split between JSDoc and NaturalDocs.</li>
<li><strong>Code Generators:</strong> Added code generators and made building custom ones easy too by using EJS.</li>
<li><strong>Scaffolding:</strong> Helps you develop iteratively by connecting to default Rest services and providing an easily expandable CRUD interface.</li>
<li><strong>Engines+Plugins:</strong> Added a command line plugin and dependency installer. So, if a developer wanted a jQuery plugin, he can install it from the command line, and it will also grab jQuery.</li>
<li><strong>Custom Event Delegation:</strong> Besides improving event delegation to cover all the cases that even live doesn&#8217;t do, they&#8217;ve expanded it to include custom events such as drag+drop, lasso, hoverenter, mousenter. Developers can have the benefits of event delegation with these complex events.</li>
<li><strong>Easy Update:</strong> JavaScriptMVC can update itself from the command line.</li>
</ul>
<p>JavaScriptMVC v1.5 is <a href="http://javascriptmvc.com/downloads.html">now available for download</a> and a new, updated &#8220;<a href="http://javascriptmvc.com/wiki/index.php?title=Getting_Started">Getting Started</a>&#8221; page is available to get you up to speed quickly.</p>
<p>Update: A more detailed writeup can be found here:  <a href="http://javascriptmvc.com/wiki/index.php?title=1.5">http://javascriptmvc.com/wiki/index.php?title=1.5</a></p>
<p>I hope you like my post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2009/02/javascriptmvc-15-released/feed/</wfw:commentRss>
		<slash:comments>35</slash:comments>
		</item>
		<item>
		<title>Username Availability Chacker in AJAX and PHP using jQuery</title>
		<link>http://www.phpgenious.com/2009/02/username-availability-chacker-in-ajax-and-php-using-jquery/</link>
		<comments>http://www.phpgenious.com/2009/02/username-availability-chacker-in-ajax-and-php-using-jquery/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 06:19:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=157</guid>
		<description><![CDATA[Hello Friend ! Yesterday when i was searching, i was found some new thing. In this post i will show yuo that how to make afancy Username availability checker using [...]]]></description>
			<content:encoded><![CDATA[<p>Hello Friend !</p>
<p>Yesterday when i was searching, i was found some new thing.</p>
<p>In this post i will show yuo that how to make afancy Username availability checker using AJAX and PHP wiyh jQuery.</p>
<p>If you are looking for such kind of effect for checking username availability then defenatelyÂ  this post helps you.</p>
<p>Now let&#8217;s see hoe to check username using AJAX and PHP with jQyery.</p>
<p>First of all, write this code in your html code:</p>
<div class="code">
<pre class="prettyprint" style="overflow: auto;"><span class="tag">&lt;div &gt;</span><span class="pln">
Â User Name : </span><span class="tag">&lt;input </span><span class="atn">name</span><span class="tag">=</span><span class="atv">"username"</span><span class="tag"> </span><span class="atn">type</span><span class="tag">=</span><span class="atv">"text"</span><span class="tag"> </span><span class="atn">id</span><span class="tag">=</span><span class="atv">"username"</span><span class="tag"> </span><span class="atn">value</span><span class="tag">=</span><span class="atv">""</span><span class="tag"> </span><span class="atn">maxlength</span><span class="tag">=</span><span class="atv">"15"</span><span class="tag"> </span><span class="atn">/</span><span class="tag">&gt;</span><span class="pln">
Â </span><span class="tag">&lt;span </span><span class="atn">id</span><span class="tag">=</span><span class="atv">"msgbox"</span><span class="tag"> </span><span class="atn">style</span><span class="tag">=</span><span class="embsrc"><span class="pun">"</span><span class="pln">display</span><span class="pun">:</span><span class="pln">none</span><span class="str">"</span></span><span class="tag">&gt;&lt;/span&gt;</span><span class="pln">
</span><span class="tag">&lt;/div&gt;</span></pre>
</div>
<p>In this code, &#8220;span&#8221; with id &#8220;msgbox&#8221; shows the username availability message from ajax.<br />
<span id="more-157"></span><br />
<strong>CSS Code :</strong></p>
<div class="code">.messagebox{<br />
position:absolute;<br />
width:100px;<br />
margin-left:30px;<br />
border:1px solid #c93;<br />
background:#ffc;<br />
padding:3px;<br />
}<br />
.messageboxok{<br />
position:absolute;<br />
width:auto;<br />
margin-left:30px;<br />
border:1px solid #349534;<br />
background:#C9FFCA;<br />
padding:3px;<br />
font-weight:bold;<br />
color:#008000;<br />
}<br />
.messageboxerror{<br />
position:absolute;<br />
width:auto;<br />
margin-left:30px;<br />
border:1px solid #CC0000;<br />
background:#F7CBCA;<br />
padding:3px;<br />
font-weight:bold;<br />
color:#CC0000;<br />
}</div>
<p>Iâ€™ve defined three different class for three type of different message class â€œmessageboxâ€ for â€œcheckingâ€¦.â€ message, â€œmessageboxokâ€ and â€œmessageboxerrorâ€ class for displaying username available and not available messages.</p>
<p><strong>Javascript code:</strong></p>
<p>First of all you have to download jQuery library and include like this :</p>
<div class="code">
<pre class="prettyprint" style="overflow: auto;"><span class="tag">&lt;script </span><span class="atn">src</span><span class="tag">=</span><span class="atv">"jquery.js"</span><span class="tag"> </span><span class="atn">type</span><span class="tag">=</span><span class="atv">"text/javascript"</span><span class="tag"> </span><span class="atn">language</span><span class="tag">=</span><span class="atv">"javascript"</span><span class="tag">&gt;&lt;/script&gt;</span></pre>
</div>
<p>And when the focus is moved from the textbox of username the following function is called which call â€œuser_availability.phpâ€ through ajax and display the appropriate message with fading effect.</p>
<div class="code">
<pre class="prettyprint" style="overflow: auto;"><span class="pln">$</span><span class="pun">(</span><span class="str">"#username"</span><span class="pun">).</span><span class="pln">blur</span><span class="pun">(</span><span class="kwd">function</span><span class="pun">()</span><span class="pln">
</span><span class="pun">{</span><span class="pln">
Â </span><span class="com">//remove all the class add the messagebox classes and start fading</span><span class="pln">
Â $</span><span class="pun">(</span><span class="str">"#msgbox"</span><span class="pun">).</span><span class="kwd">removeClass</span><span class="pun">().</span><span class="kwd">addClass</span><span class="pun">(</span><span class="str">'messagebox'</span><span class="pun">).</span><span class="pln">text</span><span class="pun">(</span><span class="str">'Checking...'</span><span class="pun">).</span><span class="pln">fadeIn</span><span class="pun">(</span><span class="str">"slow"</span><span class="pun">);</span><span class="pln">
Â </span><span class="com">//check the username exists or not from ajax</span><span class="pln">
Â $</span><span class="pun">.</span><span class="kwd">post</span><span class="pun">(</span><span class="str">"user_availability.php"</span><span class="pun">,{</span><span class="pln"> user_name</span><span class="pun">:</span><span class="pln">$</span><span class="pun">(</span><span class="kwd">this</span><span class="pun">).</span><span class="pln">val</span><span class="pun">()</span><span class="pln"> </span><span class="pun">}</span><span class="pln"> </span><span class="pun">,</span><span class="kwd">function</span><span class="pun">(</span><span class="pln">data</span><span class="pun">)</span><span class="pln">
Â </span><span class="pun">{</span><span class="pln">
Â  </span><span class="kwd">if</span><span class="pun">(</span><span class="pln">data</span><span class="pun">==</span><span class="str">'no'</span><span class="pun">)</span><span class="pln"> </span><span class="com">//if username not avaiable</span><span class="pln">
Â  </span><span class="pun">{</span><span class="pln">
Â  Â $</span><span class="pun">(</span><span class="str">"#msgbox"</span><span class="pun">).</span><span class="pln">fadeTo</span><span class="pun">(</span><span class="lit">200</span><span class="pun">,</span><span class="lit">0</span><span class="pun">.</span><span class="lit">1</span><span class="pun">,</span><span class="kwd">function</span><span class="pun">()</span><span class="pln"> </span><span class="com">//start fading the messagebox</span><span class="pln">
Â  Â </span><span class="pun">{</span><span class="pln">
Â  Â  </span><span class="com">//add message and change the class of the box and start fading</span><span class="pln">
Â  Â  $</span><span class="pun">(</span><span class="kwd">this</span><span class="pun">).</span><span class="pln">html</span><span class="pun">(</span><span class="str">'This User name Already exists'</span><span class="pun">).</span><span class="kwd">addClass</span><span class="pun">(</span><span class="str">'messageboxerror'</span><span class="pun">).</span><span class="pln">fadeTo</span><span class="pun">(</span><span class="lit">900</span><span class="pun">,</span><span class="lit">1</span><span class="pun">);</span><span class="pln">
Â  Â </span><span class="pun">});</span><span class="pln">
Â  </span><span class="pun">}</span><span class="pln">
Â  </span><span class="kwd">else</span><span class="pln">
Â  </span><span class="pun">{</span><span class="pln">
Â  Â $</span><span class="pun">(</span><span class="str">"#msgbox"</span><span class="pun">).</span><span class="pln">fadeTo</span><span class="pun">(</span><span class="lit">200</span><span class="pun">,</span><span class="lit">0</span><span class="pun">.</span><span class="lit">1</span><span class="pun">,</span><span class="kwd">function</span><span class="pun">()</span><span class="pln"> Â </span><span class="com">//start fading the messagebox</span><span class="pln">
Â  Â </span><span class="pun">{</span><span class="pln">
Â  Â  </span><span class="com">//add message and change the class of the box and start fading</span><span class="pln">
Â  Â  $</span><span class="pun">(</span><span class="kwd">this</span><span class="pun">).</span><span class="pln">html</span><span class="pun">(</span><span class="str">'Username available to register'</span><span class="pun">).</span><span class="kwd">addClass</span><span class="pun">(</span><span class="str">'messageboxok'</span><span class="pun">).</span><span class="pln">fadeTo</span><span class="pun">(</span><span class="lit">900</span><span class="pun">,</span><span class="lit">1</span><span class="pun">);</span><span class="pln">
Â  Â </span><span class="pun">});</span><span class="pln">
Â  </span><span class="pun">}</span><span class="pln">
Â </span><span class="pun">});</span><span class="pln">
</span><span class="pun">});</span></pre>
</div>
<p align="justify">As you can see in the first line, â€œallâ€ css class is removed from the div displaying the message and then â€œmessageboxâ€ class is added to that that element with adding the text â€œcheckingâ€ within the element and displaying with fading effect.</p>
<p align="justify">After that, ajax is used to call the PHP file, and when response is received through Ajax then jQuery is used to show the respective message-box with fading effects.</p>
<p align="justify"><strong>PHP Code :</strong></p>
<div class="code">
<pre class="prettyprint" style="overflow: auto;"><span class="com">//this varible contains the array of existing users</span><span class="pln">
$existing_users</span><span class="pun">=</span><span class="pln">array</span><span class="pun">('timir', 'ankur' ,'binoy','dhruv'</span><span class="pun">);</span><span class="pln">
</span><span class="com">//value got from the get metho</span><span class="pln">
$user_name</span><span class="pun">=</span><span class="pln">$_POST</span><span class="pun">[</span><span class="str">'user_name'</span><span class="pun">];</span><span class="pln">
</span><span class="com">//checking weather user exists or not in $existing_users array</span><span class="pln">
</span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">in_array</span><span class="pun">(</span><span class="pln">$user_name</span><span class="pun">,</span><span class="pln"> $existing_users</span><span class="pun">))</span><span class="pln">
</span><span class="pun">{</span><span class="pln">
Â </span><span class="com">//user name is not available</span><span class="pln">
Â </span><span class="kwd">echo</span><span class="pln"> </span><span class="str">"no"</span><span class="pun">;</span><span class="pln">
</span><span class="pun">}</span><span class="pln">
</span><span class="kwd">else</span><span class="pln">
</span><span class="pun">{</span><span class="pln">
Â  </span><span class="com">//username available i.e. user name doesn't exists in array</span><span class="pln">
Â  </span><span class="kwd">echo</span><span class="pln"> </span><span class="str">"yes"</span><span class="pun">;</span><span class="pln">
</span><span class="pun">}</span></pre>
</div>
<p>In the above PHP code, Iâ€™ve added four usernames in a array and then check weather that user exists or not in that array and print â€œyesâ€ or â€œnoâ€ accordingly. The response taken from ajax is used within JavaScript function to display the appropriate message.But, you can use database connection to check the the availability of username in your code.</p>
<p>First of all <a href="http://www.phpgenious.com/test/jquery.rar">DOWNLOAD</a> jQuery library.</p>
<p>If you want to see DEMO, <a href="http://www.phpgenious.com/test/">CLICK HERE</a></p>
<p>Please comment on this Post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2009/02/username-availability-chacker-in-ajax-and-php-using-jquery/feed/</wfw:commentRss>
		<slash:comments>49</slash:comments>
		</item>
		<item>
		<title>Check One Check All &#8211; Javascript</title>
		<link>http://www.phpgenious.com/2009/02/check-one-check-all-javascript/</link>
		<comments>http://www.phpgenious.com/2009/02/check-one-check-all-javascript/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 10:46:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=145</guid>
		<description><![CDATA[Hello Friends &#8230;.. You have seen in Yahoo,Gmail or in any Mail Service that they provide you to select all mail facility by check only one checkbox or click on [...]]]></description>
			<content:encoded><![CDATA[<p>Hello Friends &#8230;..</p>
<p>You have seen in Yahoo,Gmail or in any Mail Service that they provide you to select all mail facility by check only one checkbox or click on link as Select All/Deselect All.</p>
<p>When you click on that lick or check that checkbox , your all mails on that page will be selected.</p>
<p>You think that how it does ?</p>
<p>This is done by Javascript .</p>
<p>In this Post, iwill give you that javascript which is used for select all purpose.<br />
<span id="more-145"></span></p>
<p>Here I give you whole code of that javascript with HTML form. In this coad there is some PHP code also.</p>
<div class="code">
&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt;<br />
&lt;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=iso-8859-1&#8243; /&gt;<br />
&lt;title&gt;Untitled Document&lt;/title&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; language=&#8221;javascript&#8221;&gt;<br />
function checkAll()<br />
{<br />
var i;</p>
<p>for(i=0;i&lt;document.frm.elements.length; i++)<br />
{<br />
var elmÂ  = document.frm.elements[i];<br />
if(elm.type == &#8220;checkbox&#8221; &amp;&amp; elm.name != &#8220;chkCheckAll&#8221; )<br />
{<br />
elm.checked =document.frm.chkCheckAll.checked;<br />
}<br />
}<br />
}<br />
function check()<br />
{<br />
var i;<br />
var flag;<br />
flag=1;<br />
for(i=0;i&lt;document.frm.elements.length; i++)<br />
{<br />
var elmÂ  = document.frm.elements[i];<br />
if(elm.type == &#8220;checkbox&#8221; &amp;&amp; elm.name != &#8220;chkCheckAll&#8221; )<br />
{<br />
if(elm.checked==false)<br />
{<br />
flag=0;<br />
}<br />
}<br />
}<br />
if(flag==1)<br />
{<br />
document.frm.chkCheckAll.checked=true;<br />
}<br />
else<br />
{<br />
document.frm.chkCheckAll.checked=false;<br />
}<br />
}<br />
&lt;/script&gt;<br />
&lt;/head&gt;</p>
<p>&lt;body&gt;<br />
&lt;form id=&#8221;frm&#8221; name=&#8221;frm&#8221;&gt;<br />
&lt;table width=&#8221;90%&#8221; border=&#8221;0&#8243; align=&#8221;center&#8221; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243;&gt;</p>
<p>&lt;tr&gt;<br />
&lt;td align=&#8221;left&#8221; valign=&#8221;top&#8221;&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&#8221;left&#8221; valign=&#8221;top&#8221;&gt;&lt;table width=&#8221;100%&#8221; border=&#8221;0&#8243; cellspacing=&#8221;0&#8243; cellpadding=&#8221;0&#8243;&gt;</p>
<p>&lt;/table&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&#8221;left&#8221; valign=&#8221;top&#8221;&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&#8221;left&#8221; valign=&#8221;top&#8221; class=&#8221;tableBgWhite&#8221;&gt;&lt;table width=&#8221;100%&#8221; border=&#8221;0&#8243; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; class=&#8221;pagination&#8221;&gt;&lt;tr&gt;&lt;td align=&#8221;right&#8221; valign=&#8221;top&#8221;&gt;&lt;table width=&#8221;100%&#8221; border=&#8221;0&#8243; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; class=&#8221;pagination&#8221;&gt;</p>
<p>&lt;/table&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&#8221;left&#8221; valign=&#8221;top&#8221; class=&#8221;tableBgWhite&#8221;&gt;&lt;table width=&#8221;100%&#8221; border=&#8221;0&#8243; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; class=&#8221;tableListingBdr&#8221;&gt;<br />
&lt;tr&gt;<br />
&lt;th width=&#8221;4%&#8221; height=&#8221;20&#8243; align=&#8221;left&#8221; valign=&#8221;top&#8221;&gt;&lt;INPUT type=&#8221;checkbox&#8221; id=&#8221;chkCheckAll&#8221; name=&#8221;chkCheckAll&#8221; onClick=&#8221;javascript:checkAll();&#8221; align=&#8221;middle&#8221;&gt;Select All/Deselect All&lt;/th&gt;<br />
&lt;/tr&gt;</p>
<p>&lt;?php for ($i=0 ; $i &lt; 5 ; $i++)<br />
{<br />
?&gt;<br />
&lt;tr &gt;<br />
&lt;td align=&#8221;left&#8221; valign=&#8221;top&#8221;&gt;&lt;input id=&#8221;list&#8221; type=&#8221;checkbox&#8221; name=&#8221;check[]&#8221; value=&#8221;&lt;?php echo $i; ?&gt;&#8221; onClick=&#8221;Javascript:return check();&#8221; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;</p>
<p>&lt;?php }?&gt;<br />
&lt;/table&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=&#8221;right&#8221; valign=&#8221;top&#8221; class=&#8221;tableBgWhite&#8221;&gt;&lt;table width=&#8221;100%&#8221; border=&#8221;0&#8243; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; class=&#8221;pagination&#8221;&gt;</p>
<p>&lt;/table&gt;&lt;/td&gt;<br />
&lt;/tr&gt;</p>
<p>&lt;tr&gt;<br />
&lt;td align=&#8221;left&#8221; valign=&#8221;top&#8221;&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></div>
<p>Just copy this code ,Paste it and saved by <strong>example.php </strong>in your PHP directory.</p>
<p>Then Run this page. If you want to see Demo then <a href="http://www.phpgenious.com/test/check.php"><strong>Click Here</strong></a></p>
<p>If you have any query or question then please comment me. In next post I will give you code about delete those records which are selected by this checkbox. All these data deleted by one click.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2009/02/check-one-check-all-javascript/feed/</wfw:commentRss>
		<slash:comments>66</slash:comments>
		</item>
		<item>
		<title>Javascript Effects to Boost your Website</title>
		<link>http://www.phpgenious.com/2009/02/javascript-effects-to-boost-your-website/</link>
		<comments>http://www.phpgenious.com/2009/02/javascript-effects-to-boost-your-website/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 10:23:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[LightBox]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=80</guid>
		<description><![CDATA[Hello Friends, I found 27 javascript for image gallery ( Light box effects) which will be very useful in your site and also used in your PHP related projects. Hereâ€™s [...]]]></description>
			<content:encoded><![CDATA[<p>Hello Friends,</p>
<p>I found 27 javascript for image gallery ( Light box effects) which will be very useful in your site and also used in your PHP related projects.</p>
<p>Hereâ€™s a collection of 27 <strong>powerful </strong>â€“<strong> </strong>yet<strong> easy-to-implement</strong> â€” <em>JavaScript effects</em> to supplement your web pageâ€™s interface. These were picked using a â€œbang for your buckâ€ methodology; meaning that these effects were chosen specifically because they provide high-impact effects with very <em>little effort</em> in installing and using them.</p>
<p>I list down that all below.<span id="more-80"></span></p>
<p>(1) <a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox2</a></p>
<p>(2) <a href="http://serennz.sakura.ne.jp/toybox/lightbox/">Lightbox+</a></p>
<p>(3) <a href="http://particletree.com/features/lightbox-gone-wild/">LightBox Gone   Wild</a></p>
<p>(4) <a href="http://leandrovieira.com/projects/jquery/lightbox/">jQuery lightBox   plugin</a></p>
<p>(5) <a href="http://www.eight.nl/files/leightbox/">Leightbox</a></p>
<p>(6) <a href="http://www.nickstakenburg.com/projects/lightview/">Lightview</a></p>
<p>(7) <a href="http://stickmanlabs.com/lightwindow/">LightWindow</a></p>
<p>(8) <a href="http://www.doknowevil.net/litebox/">Litebox</a></p>
<p>(9) <a href="http://www.dolem.com/lytebox/">Lytebox</a></p>
<p>(10) <a href="http://reghellin.com/milkbox/">Milkbox</a></p>
<p>(11) <a href="http://thecodecentral.com/2007/08/17/yui-based-lightbox-revisit">YUI   based lightbox</a></p>
<p>(12) <a href="http://alexei.417.ro/node/4">TinyBox</a></p>
<p>(13) <a href="http://jquery.com/demo/thickbox/">Thickbox</a></p>
<p>(14) <a href="http://gueschla.com/labs/smoothbox/">Smoothbox</a></p>
<p>(15) <a href="http://www.digitalia.be/software/slimbox">Slimbox</a></p>
<p>(16) <a href="http://mjijackson.com/shadowbox/">Shadow Box</a></p>
<p>(17) <a href="http://prototype-window.xilinus.com/index.html">Prototype Window</a></p>
<p>(18) <a href="http://www.phatfusion.net/multibox/">Multibox</a></p>
<p>(19) <a href="http://www.wildbit.com/labs/modalbox/">ModalBox</a></p>
<p>(20) <a href="http://vikjavev.no/highslide/">Highslide</a></p>
<p>(21) <a href="http://orangoo.com/labs/GreyBox/">Greybox</a></p>
<p>(22) <a href="http://fancy.klade.lv/">FancyBox</a></p>
<p>(23) <a href="http://famspam.com/facebox">Facebox</a></p>
<p>(24) <a href="http://labs.ibegin.com/ibox/">iBox</a></p>
<p>(25) <a href="http://nyromodal.nyrodev.com/">nyroModal</a></p>
<p>(26) <a href="http://www.weebbox.com/">WeebBox</a></p>
<p>(27) <a href="http://randomous.com/tools/floatbox/">Floatbox</a></p>
<p>I think these lightbox effects be very useful to all of you.</p>
<p>If ypu like my post then Please comment on this post.</p>
<p>Thanks&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2009/02/javascript-effects-to-boost-your-website/feed/</wfw:commentRss>
		<slash:comments>35</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
