<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Posteet: formulaire</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <item>
        <title>Changer la sélection d'un menu déroulant à partir du texte affiché à l'écran (texte figurant entre les balises &lt;option&gt;&lt;/option&gt;</title>
        <link>http://www.posteet.com/view/1202</link>
        <description>
        <![CDATA[<pre>;(function($) {

/**
 * Selects an option by text
 *
 * @name     selectOptionsByText
 * @author   Mathias Bank (http://www.mathias-bank.de), original function
 * @author   Sam Collett (http://www.texotela.co.uk), addition of regular expression matching
 * @author   Christophe (version modifiée : recherche sur le texte au lieu de rechercher sur la valeur du champ option)
* @type     jQuery
 * @param    String|RegExp value  Which options should be selected
 * can be a string or regular expression
 * @param    Boolean clear  Clear existing selected options, default false
 * @example  $(&quot;#myselect&quot;).selectOptions(&quot;val1&quot;); // with the text 'val1'
 * @example  $(&quot;#myselect&quot;).selectOptions(/^val/i); // with the text starting with 'val', case insensitive
 *
 */
$.fn.selectOptionsByText = function(text, clear)
{
    var v = text;
    var vT = typeof(text);
    var c = clear || false;
    // has to be a string or regular expression (object in IE, function in Firefox)
    if(vT != &quot;string&quot; &amp;&amp; vT != &quot;function&quot; &amp;&amp; vT != &quot;object&quot;) return this;
    this.each(
        function()
        {
            if(this.nodeName.toLowerCase() != &quot;select&quot;) return this;
            // get options
            var o = this.options;
            // get number of options
            var oL = o.length;
            for(var i = 0; i&lt;oL; i++)
            {
                if(v.constructor == RegExp)
                {
                    if(o[i].text.match(v))
                    {
                        o[i].selected = true;
                    }
                    else if(c)
                    {
                        o[i].selected = false;
                    }
                }
                else
                {
                    if(o[i].text == v)
                    {
                        o[i].selected = true;
                    }
                    else if(c)
                    {
                        o[i].selected = false;
                    }
                }
            }
        }
    );
    return this;
};

})(jQuery);</pre> <a href="http://www.posteet.com/tags/formulaire">[formulaire]</a>  <a href="http://www.posteet.com/tags/jquery">[jquery]</a>  <a href="http://www.posteet.com/tags/option">[option]</a>  <a href="http://www.posteet.com/tags/select">[select]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Tue, 19 Aug 2008 13:04:27 +0000</pubDate>

            <category>formulaire</category>
            <category>jquery</category>
            <category>option</category>
            <category>select</category>
    
    </item>

  
    <item>
        <title>Vérifier la validité d'une adresse email avec php</title>
        <link>http://www.posteet.com/view/152</link>
        <description>
        <![CDATA[<pre>// Vérification de la forme
function isEmail($email){
 return preg_match(&quot;/^(\w|-|\.)+@((\w|-)+\.)+[a-z]{2,6}$/i&quot;, $email)
}

// Domaine valide ?
function isEmailDomaine($email){
   list($compte,$domaine)=split('@',$email,2);
   if(!checkdnsrr($domaine,'MX') &amp;&amp; !checkdnsrr($domaine,'A')){
     return false;
   }else{
     return true;
   }</pre> <a href="http://www.posteet.com/tags/email">[email]</a>  <a href="http://www.posteet.com/tags/formulaire">[formulaire]</a>  <a href="http://www.posteet.com/tags/mail">[mail]</a>  <a href="http://www.posteet.com/tags/php">[php]</a> ]]>        </description>
        <dc:creator>daoro</dc:creator>
        <pubDate>Sat, 03 Nov 2007 21:41:15 +0000</pubDate>

            <category>email</category>
            <category>formulaire</category>
            <category>mail</category>
            <category>php</category>
    
    </item>


</channel>
</rss>
