<?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 Tutorials &#187; javascript</title>
	<atom:link href="http://phpcollection.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://phpcollection.com</link>
	<description>PHP Tutorials collection</description>
	<lastBuildDate>Tue, 12 Jul 2011 11:53:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>7 jQuery code snippets a programmer need daily</title>
		<link>http://phpcollection.com/7-jquery-code-snippets-a-programmer-need-daily/</link>
		<comments>http://phpcollection.com/7-jquery-code-snippets-a-programmer-need-daily/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 16:35:30 +0000</pubDate>
		<dc:creator>Php Ninza</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.phpcollection.com/?p=525</guid>
		<description><![CDATA[Usually programmers use a lot of JavaScript code snippets as functions regularly, These JavaScript functions are lengthy code snippets and are usually tough to understand and edit. Some of the most common functions used are form validation functions , Pagination functions etc. The day since jQuery has been on the block , It has provided [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Usually programmers use a lot of JavaScript code snippets as functions regularly, These JavaScript functions are lengthy code snippets and are usually tough to understand and edit. Some of the most common functions used are form validation functions , Pagination functions etc.</p>
<p>The day since jQuery has been on the block , It has provided a nifty way of solving a lot of common problems for which we needed lengthy JavaScript functions. I am sharing with you guys top 20 jQuery plugins and code snippets that are pretty useful for daily coding routines.</p>
<p><span id="more-525"></span></p>
<p><strong>1) Form validation plugin:- </strong>Form validation is probably the most common used JavaScript functionality used these days . However , a lot of repetitive editing is required in the forms and JavaScript regex expressions for correctly fitting the validations.</p>
<p>For this a nifty jquery plugin <a href="http://www.unwrongest.com/projects/valid8/" target="_blank"><strong>Valid8</strong></a><strong> </strong>provides a easy to use 4 line code to insert validation in any form !, Valid8 provides various methods including ajax requests, multiple regex validation etc in form validation , I have found ajax requests to be a nifty feature while checking username availability in registration and signup forms</p>
<p>Valid8 plugin page can be found at <a title="http://www.unwrongest.com/projects/valid8/" href="http://www.unwrongest.com/projects/valid8/">http://www.unwrongest.com/projects/valid8/</a></p>
<p>And it can be downloaded from:-</p>
<p><a title="http://jquery-valid8.googlecode.com/files/jquery.valid8-1.2.2.js" href="http://jquery-valid8.googlecode.com/files/jquery.valid8-1.2.2.js">http://jquery-valid8.googlecode.com/files/jquery.valid8-1.2.2.js</a></p>
<p><strong>2) Drag and Drop functionality using jQuery:- </strong>This excellent tutorial showed me a nifty way of making a drag and drop functionality , This drag and drop interface provide a excellent web 2.0 interface in your web projects for user usability. This drag and drop tutorial uses the <strong><a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery" target="_blank">Google JqueryUi plugin</a></strong> , Which we believe is used by google on it&#8217;s products  Drag and drop is used heavily by Google on it&#8217;s products such as gmail and igoogle.</p>
<p>For making such a drag and drop functionality you will need the jquery Ui plugin by google which can be located <a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery" target="_blank">here</a>.</p>
<p>The tutorial can be find at :- <a title="http://papermashup.com/drag-drop-with-php-jquery/" href="http://papermashup.com/drag-drop-with-php-jquery/">http://papermashup.com/drag-drop-with-php-jquery/</a></p>
<p>The demo of this tutorial can be located at <a title="http://papermashup.com/demos/jquery-drag-drop/" href="http://papermashup.com/demos/jquery-drag-drop/">http://papermashup.com/demos/jquery-drag-drop/</a></p>
<p>And the complete source code of the tutorial can be downloaded from <a title="http://papermashup.com/demos/jquery-drag-drop/jquery-drag-drop.zip" href="http://papermashup.com/demos/jquery-drag-drop/jquery-drag-drop.zip">http://papermashup.com/demos/jquery-drag-drop/jquery-drag-drop.zip</a></p>
<p><strong>3) Pagination using jquery:- </strong>This is a official plugin from Jquery guys to provide pagination on any set of data you have. This plugin is a useful replacement of the php pagination classes and provides a neat web2.0 style pagination features.Pretty useful when we have a large sets of data such as search results or data listings.</p>
<p>Since this is a official plugin from jquery guys , The stability of the plugin is definitely unquestionable . it uses a simple javascript funciton which takes page_index and paging container as the arguments. For complete documentation read the official documentation of this <a href="http://d-scribe.de/webtools/jquery-pagination/lib/jquery_pagination/README" target="_blank">plugin</a></p>
<p>The official Plugin page can be found at:- <a title="http://plugins.jquery.com/project/pagination" href="http://plugins.jquery.com/project/pagination">http://plugins.jquery.com/project/pagination</a></p>
<p>The demo of the plugin can be seen at:- <a title="http://d-scribe.de/webtools/jquery-pagination/demo/demo_options.htm" href="http://d-scribe.de/webtools/jquery-pagination/demo/demo_options.htm">http://d-scribe.de/webtools/jquery-pagination/demo/demo_options.htm</a></p>
<p><strong>4)</strong> <strong>Embed flash using jQuery:- </strong>Flash is probably the best intreactive web technology invented till date, The people tend to understand best by audio-visual effects and flash is the ultimate choice on web.</p>
<p>Dealing with flash variables , cross-browser issues and browsers with flash plugin not installed always left a bitter experience for a programmer, But using this Embed flash plugin this issues can be sorted out in a easy manner.</p>
<p>The official plugin page can be found at:- <a title="http://jquery.lukelutman.com/plugins/flash/" href="http://jquery.lukelutman.com/plugins/flash/">http://jquery.lukelutman.com/plugins/flash/</a></p>
<p><strong>5) Creating tag cloud via jQuery:- </strong>Tag cloud are a excellent way of showing important keywords and categories on your website ! , Usually tag cloud are made through php class via predefined keyword density.</p>
<p>The official plugin <strong><a href="http://plugins.jquery.com/project/dynacloud" target="_blank">dynacloud</a></strong> shows a neat simple tagcloud which is generated dynamically.</p>
<p>The official plugin page can be found at:- <a title="http://plugins.jquery.com/project/dynacloud" href="http://plugins.jquery.com/project/dynacloud">http://plugins.jquery.com/project/dynacloud</a></p>
<p>Demo of the plugin can be found at</p>
<p><a title="http://johannburkard.de/blog/programming/javascript/dynacloud-a-dynamic-javascript-tag-keyword-cloud-with-jquery.html" href="http://johannburkard.de/blog/programming/javascript/dynacloud-a-dynamic-javascript-tag-keyword-cloud-with-jquery.html">http://johannburkard.de/blog/programming/javascript/dynacloud-a-dynamic-javascript-tag-keyword-cloud-with-jquery.html</a></p>
<p><strong>6) Insert Simple ajax effects using jquery :- </strong>Simple effects plugin provides easy methods of inserting cool ajax functionality and UI in your web apps.</p>
<p>UI functionality like Fade toggle boxes and blind toggle boxes are cool effect that can make your web apps UI a lovely experience for your users.</p>
<p>The official plugin page can be found at <a title="http://www.learningjquery.com/2008/02/simple-effects-plugins" href="http://www.learningjquery.com/2008/02/simple-effects-plugins">http://www.learningjquery.com/2008/02/simple-effects-plugins</a></p>
<p><strong>7) Creating tips with jQuery  :-</strong> Tips are some efficient way of showing simple bits of information to users, This jquery plugin gives you a excellent way to create nifty tips in html code</p>
<p>Plugin page can be found at:- <a title="http://codylindley.com/Javascript/264/jtip-a-jquery-tool-tip" href="http://codylindley.com/Javascript/264/jtip-a-jquery-tool-tip">http://codylindley.com/Javascript/264/jtip-a-jquery-tool-tip</a></p>
<p>Demo of this jquery plugin :- <a title="http://www.codylindley.com/blogstuff/js/jtip/" href="http://www.codylindley.com/blogstuff/js/jtip/">http://www.codylindley.com/blogstuff/js/jtip/</a></p>
<p>These are some basic plugins that can make progrrammers life easy ! Try them and let us know how you find them !, Do list out your favorites plugin below.</p>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:d2fde575-855d-437b-b293-e105971a40c5" class="wlWriterEditableSmartContent" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a rel="tag" href="http://technorati.com/tags/Php">Php</a>,<a rel="tag" href="http://technorati.com/tags/jQuery">jQuery</a>,<a rel="tag" href="http://technorati.com/tags/javascript">javascript</a>,<a rel="tag" href="http://technorati.com/tags/Tips">Tips</a></div>
<p>Also, If you are beginning your steps on jquery development , Do try this excellent book on jquery . It has all necessary details on beginning jquery development</p>
<p><iframe src="http://rcm.amazon.com/e/cm?t=phpcoll-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=1847196705&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://phpcollection.com/7-jquery-code-snippets-a-programmer-need-daily/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>Html Pop up page using javascript</title>
		<link>http://phpcollection.com/html-pop-up-page-using-javascript/</link>
		<comments>http://phpcollection.com/html-pop-up-page-using-javascript/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 15:00:56 +0000</pubDate>
		<dc:creator>Php Ninza</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.phpcollection.com/?p=609</guid>
		<description><![CDATA[Html pop up pages are legacy ways that are used across all the web for showing small snippets of information , However they are fastly replaced via Lightbox nowadays ! Here in this tutorial we will be creating a popup javascript function which can be called multiple times on a webpage for creating different popups [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Html pop up pages are legacy ways that are used across all the web for showing small snippets of information , However they are fastly replaced via Lightbox nowadays !</p>
<p>Here in this tutorial we will be creating a popup javascript function which can be called multiple times on a webpage for creating different popups !, These javascript functions are easy to create and call from the links in html webpage</p>
<p>First of all create a file called popup.js</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-7185707610518533";
/* 468x15, created 7/18/09 */
google_ad_slot = "4241642759";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<span id="more-609"></span>
<pre class="javascript">function popup(URL) {
var popup_width = 600
var popup_height = 400
day = new Date();
id = day.getTime();
eval(&quot;page&quot; + id + &quot; = window.open(URL, '&quot; + id + &quot;', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+popup_width+',height='+popup_height+'');&quot;);
}</pre>
<p>This javascript function popup will take URL in the argument and will create a new popup page when executed , The height and width of the popup page can be adjusted via popup_width and popup_height !, This function uses the inbuilt functiionality of javascript by using window.open !, This window.open takes url , id and various parameters for creating the popup page. </p>
<p>This simple and nifty popup page can be called via a simple href link in a html page , A small example is given below.</p>
<pre class="xml">
&lt;a href="javascript:popcontact('pop-up.htm')">Click here&lt;/a>
</pre>
<p>Hope this tutorial helped you to learn basics of creating a popup page , Let us know your thoughts , comments and questions on comments !, We will love to help you !</p>
]]></content:encoded>
			<wfw:commentRss>http://phpcollection.com/html-pop-up-page-using-javascript/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

