<?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>The OpenCv Project &#187; jquery</title>
	<atom:link href="http://opencv.kune.fr/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://opencv.kune.fr</link>
	<description>A new way to manage your users' cv</description>
	<lastBuildDate>Mon, 30 Mar 2009 08:59:39 +0000</lastBuildDate>
	<language>fr</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Jquery plugin Selection #2 &#8211; Malsup Form</title>
		<link>http://opencv.kune.fr/fr/jquery-plugin-selection-2-malsupforms/</link>
		<comments>http://opencv.kune.fr/fr/jquery-plugin-selection-2-malsupforms/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 11:32:07 +0000</pubDate>
		<dc:creator>Mat_</dc:creator>
				<category><![CDATA[en]]></category>
		<category><![CDATA[fr]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[ajaxForm]]></category>
		<category><![CDATA[beforesubmit]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[malsup]]></category>
		<category><![CDATA[options]]></category>

		<guid isPermaLink="false">http://opencv.kune.fr/?p=62</guid>
		<description><![CDATA[This is the second post of the Jquery plugin Selection series. If you didn&#8217;t read the others, take a look at this page. Jquery for the one who don’t know it (probably not a lot), as described on its homepage, is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, [...]]]></description>
			<content:encoded><![CDATA[<p>This is the second post of the Jquery plugin Selection series. If you didn&#8217;t read the others, take a look at <a href="http://opencv.kune.fr/tag/selection/">this page</a>.</p>
<p><a href="http://opencv.kune.fr/files/2008/09/plugins-jquery-com-project-kunepassmeter.png"><img style="float: left;margin-right: 5px" src="http://opencv.kune.fr/files/2008/09/plugins-jquery-com-project-kunepassmeter.png" alt="" width="241" height="73" /></a>Jquery for the one who don’t know it (probably not a lot), as described on its <a title="Jquery Homepage" href="http://jquery.com" target="_blank">homepage</a>, <em>is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. </em><strong><em>jQuery is designed to change the way that you write JavaScript</em>.</strong></p>
<p>So today, i&#8217;m going to write about the <a href="http://malsup.com/jquery/form/" target="_blank">Jquery Form Plugin</a>, that you can find on the <a href="http://malsup.com/jquery/form/" target="_blank">malsup.com website</a>. Well, the description from the plugin&#8217;s website is clear: <em>The jQuery Form Plugin allows you to easily and unobtrusively upgrade HTML forms to use         <abbr title="Asynchronous JavaScript and XML">AJAX</abbr>.         The main methods,         <code class="inline">ajaxForm</code> and <code class="inline">ajaxSubmit</code>,         gather information from the form element to determine how to manage the submit process.  Both of these methods support         numerous options which allows you to have full control over how the data is submitted.  Submitting a form         with AJAX doesn&#8217;t get any easier than this!.</em></p>
<p>This is all you need to know! In a shorter version, you want to save a data from a form without reloading the page, then use Jform. How does it work:</p>
<p>1. Go on the the <a href="http://malsup.com/jquery/form/" target="_blank">Jquery Form Plugin</a>, download the file on the repository: <a href="http://www.appelsiini.net/download/jquery.jeditable.pack.js"> </a><a class="external" href="http://jqueryjs.googlecode.com/svn/trunk/plugins/form/jquery.form.js">http://jqueryjs.googlecode.com/svn/trunk/plugins/form/jquery.form.js</a><a href="http://www.appelsiini.net/download/jquery.jeditable.pack.js"><br />
</a><br />
2. Add this line before your &lt;/head&gt;:</p>
<pre>&lt;<span class="start-tag">script</span><span class="attribute-name"> src</span>=<span class="attribute-value">"jquery.form.js" </span><span class="attribute-name">type</span>=<span class="attribute-value">"text/javascript" </span><span class="attribute-name">charset</span>=<span class="attribute-value">"utf-8"</span>&gt;&lt;/<span class="end-tag">script</span>&gt;</pre>
<p>3. Now add a simple form to your page. Nothing complicated:</p>
<pre>&lt;form id="myForm" action="comment.php" method="post"&gt;
    Name: &lt;input name="name" type="text" /&gt;
    Comment: &lt;textarea name="comment"&gt;&lt;/textarea&gt;
    &lt;input type="submit" value="Submit Comment" /&gt;
&lt;/form&gt;</pre>
<p>4.And finally our Jquery code:</p>
<pre><code class="mix"><span class="tag">&lt;script</span><span class="aname"> type</span>=<span class="string">"text/javascript"</span><span class="tag">&gt;</span>
        <span class="jquery">$</span>(<span class="global">document</span>).ready(<span class="keywords">function</span>() {
            <span class="jquery">$</span>(<span class="string">'#myForm'</span>).<span class="plugin">ajaxForm</span>(<span class="keywords">function</span>() {
                alert(<span class="string">"Thank you for your comment!"</span>);
            });
        });
<span class="tag">&lt;/script&gt;</span></code></pre>
<p>Time to explain the code. Like with all our jquery scripts, we start with <em>$(document).ready(function() {</em>. <em>$(”#myform”).ajaxForm();</em> will apply the &laquo;&nbsp;ajaxForm&nbsp;&raquo; plugin on our form with the “<em>#myform</em>“ id. The <em>alert()</em> in our function allows us to display a message after submitting.*</p>
<p>You can use this plugin just like that. But here are some useful options. If you want to use them, modify your $(&#8216;#myForm&#8217;).ajaxForm(function(){ &#8230;. }); to:</p>
<pre><code class="mix"><span class="keywords">var</span><span class="aname"> options</span> = { 
        target:        <span class="string">'#output1'</span>,   <span class="com">// target element(s) to be updated with server response</span> 
        beforeSubmit:  showRequest,  <span class="com">// pre-submit callback</span> 
        success:       showResponse  <span class="com">// post-submit callback</span> 

        <span class="com">// other available options:</span> 
        <span class="com">//url:       url         // override for form's 'action' attribute</span> 
        <span class="com">//type:      type        // 'get' or 'post', override for form's 'method' attribute</span> 
        <span class="com">//dataType:  null        // 'xml', 'script', or 'json' (expected server response type)</span> 
        <span class="com">//clearForm: true        // clear all form fields after successful submit</span> 
        <span class="com">//resetForm: true        // reset the form after successful submit</span> 

        <span class="com">// $.ajax options can be used here too, for example:</span> 
        <span class="com">//timeout:   3000</span> 
    }; 

    <span class="jquery">$</span>(<span class="string">'#myForm'</span>).<span class="plugin">ajaxForm</span>(options);
</code></pre>
<p>The beforeSubmit and succes options are useful to verify and validate the script, and then diplay data. The url option will be useful if you want to redirect your datas to another file when the javascript is enabled. The clearForm and resetForm options are clear. And one last thing, if you want to use some options of the <a href="http://docs.jquery.com/Ajax/jQuery.ajax" target="_blank">$.ajax</a> , you can.</p>
<p>There is a lot of others great plugin for forms. If you want more informations about them, just make a little search on the <a title="jquey plugin repository" href="http://plugins.jquery.com/search/node/form" target="_blank">jquery plugin repository</a>. I&#8217;m waiting for your comments !</p>
]]></content:encoded>
			<wfw:commentRss>http://opencv.kune.fr/fr/jquery-plugin-selection-2-malsupforms/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Jquery plugin Selection #1 &#8211; Jeditable</title>
		<link>http://opencv.kune.fr/jquery/jquery-plugin-selection-1-jeditable/</link>
		<comments>http://opencv.kune.fr/jquery/jquery-plugin-selection-1-jeditable/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 11:41:23 +0000</pubDate>
		<dc:creator>Mat_</dc:creator>
				<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[edit]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[jeditable]]></category>
		<category><![CDATA[selection]]></category>

		<guid isPermaLink="false">http://opencv.kune.fr/?p=49</guid>
		<description><![CDATA[I would like to start a new category. In this one, i will give you my jquery&#8217;s plugin selection. Jquery for the one who don&#8217;t know it (probably not a lot), as described on its homepage, is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for [...]]]></description>
			<content:encoded><![CDATA[<p>I would like to start a new category. In this one, i will give you my jquery&#8217;s plugin selection.</p>
<p><a href="http://opencv.kune.fr/files/2008/09/plugins-jquery-com-project-kunepassmeter.png"><img style="float: left;margin-right: 5px" src="http://opencv.kune.fr/files/2008/09/plugins-jquery-com-project-kunepassmeter.png" alt="" width="241" height="73" /></a>Jquery for the one who don&#8217;t know it (probably not a lot), as described on its <a title="Jquery Homepage" href="http://jquery.com" target="_blank">homepage</a>, <em>is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. </em><strong><em>jQuery is designed to change the way that you write JavaScript</em>.</strong></p>
<p>I&#8217;m using it a lot (who said too much?) in the OpenCV manager development. And i will probably use it in my next project because of it&#8217;s simplicity to use.</p>
<p>Jquery&#8217;s plugins allow you to even more in a simple line of code. You probably will just have to unarchive the content of the archive of a plugin and add 2 or 3 lines of code in your source code, and the job will be done.</p>
<p>The first one i&#8217;m going to present you is the <a title="Jeditable homepage" href="http://www.appelsiini.net/projects/jeditable" target="_blank">Jeditable plugin</a>, developed by <a title="Mike Tuupola blog" href="http://www.appelsiini.net/cv" target="_blank">Mika Tuupola</a>.</p>
<p>In normal conditions, when you want your users being able to modify an information, you add a form in your page, even if you just have a single field to modify.<br />
With Jeditable, a user just has to click on a text in a webpage, the text changes in a form, and after submitting, the form is back to a normal text.</p>
<p>You maybe want to say that it can&#8217;t be as simple. It is.</p>
<p>This is a little example of working code, sort of &laquo;&nbsp;how to use&nbsp;&raquo;:</p>
<p>1. Go on the the <a title="Jeditable homepage" href="http://www.appelsiini.net/projects/jeditable" target="_blank">Jeditable homepage</a>, download the  <a href="http://www.appelsiini.net/download/jquery.jeditable.js">lastest source</a>,  <a href="http://www.appelsiini.net/download/jquery.jeditable.mini.js">minified</a> or <a href="http://www.appelsiini.net/download/jquery.jeditable.pack.js">packed<br />
</a><br />
2. Add this line before your &lt;/head&gt;:</p>
<pre>&lt;<span class="start-tag">script</span><span class="attribute-name"> src</span>=<span class="attribute-value">"jquery.jeditable.js" </span><span class="attribute-name">type</span>=<span class="attribute-value">"text/javascript" </span><span class="attribute-name">charset</span>=<span class="attribute-value">"utf-8"</span>&gt;&lt;/<span class="end-tag">script</span>&gt;</pre>
<p>3. Add a simple class to your div (nothing really hard no?), and remember you id (he&#8217;s important too):</p>
<pre>&lt;div id="mydiv" class="edit"&gt;I want to modify it!!&lt;/div&gt;</pre>
<p>4. And now the jquery time!</p>
<pre>$(document).ready(function() {
     $(".edit").editable("http://www.mysite.com/save.php");
 });</pre>
<p>Some explications: to start a jquery script, we start with <em>$(document).ready(function() {</em>. Then with <em>$(&laquo;&nbsp;.edit&nbsp;&raquo;).editable();</em> , we just say to jquery, i want to use the &laquo;&nbsp;editable&nbsp;&raquo; plugin on the div with a class named &laquo;&nbsp;<em>.edit</em>&laquo;&nbsp;. One last thing, the link in the <em>editable()</em> function. It&#8217;s the file where the form&#8217;s data will be posted.<br />
By example, your php file will use the <em>$_POST['mydiv'];</em> variable to use the changed data. By default, the id of your data will be, you understand now, the ID of your div.</p>
<p>That&#8217;s it, your script is finished.</p>
<p>But don&#8217;t run so fast. Jeditable has some great options! Take a look at these:</p>
<pre>$(".edit").editable("http://www.mysite.com/save.php", {
         cancel    : 'Cancel', // change the text on the cancel button
         submit    : 'OK', // same thing for the submit button
         indicator : "<img alt="" />", // here you  can change the image indicator
         tooltip   : 'Click to edit...' // and finally the tooltip, to inform users of what they should do...
     });</pre>
<p>It should be easy for you now to use this great plugin. There is still tons of way to use it, so to learn more about it, go on the <a title="Jeditable homepage" href="http://www.appelsiini.net/projects/jeditable" target="_blank">Jeditable homepage</a> and checkout all the demos!</p>
]]></content:encoded>
			<wfw:commentRss>http://opencv.kune.fr/jquery/jquery-plugin-selection-1-jeditable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Talking about interface &#8230;</title>
		<link>http://opencv.kune.fr/jquery/talking-about-interface/</link>
		<comments>http://opencv.kune.fr/jquery/talking-about-interface/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 11:51:48 +0000</pubDate>
		<dc:creator>Mat_</dc:creator>
				<category><![CDATA[jquery]]></category>
		<category><![CDATA[the rest]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://opencv.kune.fr/2008/09/16/talking-about-interface/</guid>
		<description><![CDATA[Now that OpenCV Manager is running (i&#8217;m still waiting for comments about it!), i&#8217;m think about the index page. I would like to implement a wordpress like interface, using widget and an admin panel to manage them. The admin could drag and drop existing widget (like one displaying the lastest job on a Jobberbase install, [...]]]></description>
			<content:encoded><![CDATA[<p>Now that OpenCV Manager is running (i&#8217;m still waiting for comments about it!), i&#8217;m think about the index page.<br />
I would like to implement a wordpress like interface, using widget and an admin panel to manage them.</p>
<p>The admin could drag and drop existing widget (like one displaying the lastest job on a Jobberbase install, the last resume added or a RSS feed) or new one using Google/Yahoo widget and hand-made.</p>
<p>I&#8217;m going to use Jquery like for the rest of the app.<br />
If someone has an idea, feel free to make a comment !</p>
]]></content:encoded>
			<wfw:commentRss>http://opencv.kune.fr/jquery/talking-about-interface/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>My version of Pass Meter Jquery plugin</title>
		<link>http://opencv.kune.fr/en/my-version-of-pass-meter-jquery-plugin/</link>
		<comments>http://opencv.kune.fr/en/my-version-of-pass-meter-jquery-plugin/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 08:29:02 +0000</pubDate>
		<dc:creator>Mat_</dc:creator>
				<category><![CDATA[en]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[passmeter]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[strength]]></category>

		<guid isPermaLink="false">http://opencv.kune.fr/2008/09/03/my-version-of-pass-meter-jquery-plugin/</guid>
		<description><![CDATA[Just a little post to share with you a modification i&#8217;ve made of the Pass Meter Jquery Plugin. Initially, when you use the plugin, the strength meter appears in the password input. Now you can use it outside the input easily, just add the outsideElt option: var options = {outsideElt = '#myelt'};$('input#mypassword').attachPassMeter(options); where #myelt could [...]]]></description>
			<content:encoded><![CDATA[<p><img style="float: left;margin-right: 5px" src="http://opencv.kune.fr/files/2008/09/plugins-jquery-com-project-kunepassmeter.png" width="179" height="54" /> Just a little post to share with you a modification i&#8217;ve made of the Pass Meter Jquery Plugin.</p>
<p>
<p>Initially, when you use the plugin, the strength meter appears in the password input. </p>
<p>
<p>Now you can use it outside the input easily, just add the outsideElt option:</p>
<p><code>var options = {outsideElt = '#myelt'};<br />$('input#mypassword').attachPassMeter(options);</code></p>
<p>
<p>where #myelt could be the class of your element or the id.</p>
<ul>
<li>On the jquery plugin repository: <a target="_blank" href="http://plugins.jquery.com/project/KunePassMeter">http://plugins.jquery.com/project/KunePassMeter</a></li>
<p>
<li>The dedicated page: <a target="_blank" href="http://opencv.kune.fr/jquery-plugins">http://opencv.kune.fr/jquery-plugins</a></li>
<p>
<li>The original project:  <a href="http://plugins.jquery.com/project/passmeter" title="http://plugins.jquery.com/project/passmeter">http://plugins.jquery.com/project/passmeter</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://opencv.kune.fr/en/my-version-of-pass-meter-jquery-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
