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

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

    
    <item>
        <title>Alert PHP</title>
        <link>http://www.posteet.com/view/1783</link>
        <description>
        <![CDATA[<pre>function alertPhp($texto){
	echo &quot;&lt;script type='text/javascript'&gt;alert('&quot;.$texto.&quot;');&lt;/script&gt;&quot;;
}</pre> <a href="http://www.posteet.com/tags/javascript">[javascript]</a>  <a href="http://www.posteet.com/tags/php">[php]</a> ]]>        </description>
        <dc:creator>jacinmontava</dc:creator>
        <pubDate>Fri, 14 Aug 2009 11:40:46 +0200</pubDate>

            <category>javascript</category>
            <category>php</category>
    
    </item>

  
    <item>
        <title>No enviar formulario con enter. Metodo 2</title>
        <link>http://www.posteet.com/view/1695</link>
        <description>
        <![CDATA[<pre>&lt;script type=&quot;text/javascript&quot;&gt;
function pulsar(e) {
  tecla = (document.all) ? e.keyCode : e.which;
  return (tecla != 13);
}
&lt;/script&gt;
&lt;!-- --&gt;
&lt;form action=&quot;loquesea.asp&quot; onkeypress = &quot;return pulsar(event)&quot;&gt;
&lt;input type=&quot;text&quot; /&gt;
&lt;input type=&quot;submit&quot; /&gt;
&lt;/form&gt;</pre> <a href="http://www.posteet.com/tags/formularios">[formularios]</a>  <a href="http://www.posteet.com/tags/javascript">[javascript]</a> ]]>        </description>
        <dc:creator>jacinmontava</dc:creator>
        <pubDate>Thu, 07 May 2009 12:41:56 +0200</pubDate>

            <category>formularios</category>
            <category>javascript</category>
    
    </item>

  
    <item>
        <title>No enviar formulario con enter. Metodo 1</title>
        <link>http://www.posteet.com/view/1694</link>
        <description>
        <![CDATA[<pre>function stopRKey(evt) {
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
if ((evt.keyCode == 13) &amp;&amp; (node.type==&quot;text&quot;)) {return false;}
}
document.onkeypress = stopRKey;</pre> <a href="http://www.posteet.com/tags/formularios">[formularios]</a>  <a href="http://www.posteet.com/tags/javascript">[javascript]</a> ]]>        </description>
        <dc:creator>jacinmontava</dc:creator>
        <pubDate>Thu, 07 May 2009 12:39:52 +0200</pubDate>

            <category>formularios</category>
            <category>javascript</category>
    
    </item>

  
    <item>
        <title>Menu desplegable debajo de animacion flash</title>
        <link>http://www.posteet.com/view/1660</link>
        <description>
        <![CDATA[<pre>En los parámetros del flash o FLV incluir
&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;

Ahora un paso MUY IMPORTANTE para que funcione en todos los navegadores

Para que tambien funcione en Firefox y Opera, etc.incluir el codigo (wmode=&quot;transparent&quot;) dentro de la etiqueta EMBED, y quede algo así como:
&lt;embed src=&quot;miflash.swf&quot; wmode=&quot;transparent&quot; quality=&quot;high&quot; etc etc.</pre> <a href="http://www.posteet.com/tags/flash">[flash]</a>  <a href="http://www.posteet.com/tags/javascript">[javascript]</a>  <a href="http://www.posteet.com/tags/z-index">[z-index]</a> ]]>        </description>
        <dc:creator>jacinmontava</dc:creator>
        <pubDate>Tue, 07 Apr 2009 15:17:47 +0200</pubDate>

            <category>flash</category>
            <category>javascript</category>
            <category>z-index</category>
    
    </item>

  
    <item>
        <title>[HTML/Javascript] upload a file / submit a form when a file is selected</title>
        <link>http://www.posteet.com/view/1586</link>
        <description>
        <![CDATA[<pre>&lt;input type=&quot;file&quot; onchange=&quot;this.submit()&quot; name=&quot;myfile&quot; /&gt;</pre> <a href="http://www.posteet.com/tags/file">[file]</a>  <a href="http://www.posteet.com/tags/form">[form]</a>  <a href="http://www.posteet.com/tags/html">[html]</a>  <a href="http://www.posteet.com/tags/javascript">[javascript]</a>  <a href="http://www.posteet.com/tags/select">[select]</a>  <a href="http://www.posteet.com/tags/selected">[selected]</a>  <a href="http://www.posteet.com/tags/submit">[submit]</a>  <a href="http://www.posteet.com/tags/upload">[upload]</a> ]]>        </description>
        <dc:creator>aric</dc:creator>
        <pubDate>Fri, 27 Feb 2009 18:05:28 +0100</pubDate>

            <category>file</category>
            <category>form</category>
            <category>html</category>
            <category>javascript</category>
            <category>select</category>
            <category>selected</category>
            <category>submit</category>
            <category>upload</category>
    
    </item>

  
    <item>
        <title>Get Latitude and Longitude values from Google Maps</title>
        <link>http://www.posteet.com/view/1412</link>
        <description>
        <![CDATA[<pre>javascript:void(prompt('',gApplication.getMap().getCenter()));</pre> <a href="http://www.posteet.com/tags/gmaps">[gmaps]</a>  <a href="http://www.posteet.com/tags/javascript">[javascript]</a>  <a href="http://www.posteet.com/tags/latitude">[latitude]</a>  <a href="http://www.posteet.com/tags/longitude">[longitude]</a>  <a href="http://www.posteet.com/tags/maps">[maps]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Sat, 03 Jan 2009 17:30:18 +0100</pubDate>

            <category>gmaps</category>
            <category>javascript</category>
            <category>latitude</category>
            <category>longitude</category>
            <category>maps</category>
    
    </item>

  
    <item>
        <title>How to Get the Current Page's URL into Flash</title>
        <link>http://www.posteet.com/view/1411</link>
        <description>
        <![CDATA[<pre>// This little trick allows a Flash movie (swf) to find out the URL of the page in which it's embedded. 

import flash.external.ExternalInterface;
 
var pageURL:String =
	ExternalInterface.call('window.location.href.toString');</pre> <a href="http://www.posteet.com/tags/as">[as]</a>  <a href="http://www.posteet.com/tags/flash">[flash]</a>  <a href="http://www.posteet.com/tags/javascript">[javascript]</a>  <a href="http://www.posteet.com/tags/url">[url]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Thu, 01 Jan 2009 17:12:37 +0100</pubDate>

            <category>as</category>
            <category>flash</category>
            <category>javascript</category>
            <category>url</category>
    
    </item>

  
    <item>
        <title>A prototype for Number.toFixed in JavaScript</title>
        <link>http://www.posteet.com/view/1403</link>
        <description>
        <![CDATA[<pre>if (!num.toFixed) 
{

 Number.prototype.toFixed = function(precision) {
     var power = Math.pow(10, precision || 0);
     return String(Math.round(this * power)/power);
 }

}

// OR

  Number.prototype.toFixed = function(precision) 
  {
     var num = (Math.round(this*Math.pow(10,precision))).toString();
     return num.substring(0,num.length-precision) + &quot;.&quot; + 
            num.substring(num.length-precision, num.length);
  }</pre> <a href="http://www.posteet.com/tags/ie">[ie]</a>  <a href="http://www.posteet.com/tags/javascript">[javascript]</a>  <a href="http://www.posteet.com/tags/msie">[msie]</a>  <a href="http://www.posteet.com/tags/number">[number]</a>  <a href="http://www.posteet.com/tags/prototype">[prototype]</a>  <a href="http://www.posteet.com/tags/toFixed">[toFixed]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Fri, 19 Dec 2008 22:20:42 +0100</pubDate>

            <category>ie</category>
            <category>javascript</category>
            <category>msie</category>
            <category>number</category>
            <category>prototype</category>
            <category>toFixed</category>
    
    </item>

  
    <item>
        <title>Funcion para pop-up</title>
        <link>http://www.posteet.com/view/1393</link>
        <description>
        <![CDATA[<pre>&lt;script language=&quot;JavaScript&quot;&gt;
function Abrir_ventana (pagina) {
var opciones=&quot;toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, width=690, height=400, top=100, left=80&quot;;
window.open(pagina,&quot;&quot;,opciones);
}
&lt;/script&gt;

&lt;body onLoad =&quot;Abrir_ventana('pop.html')&quot; &gt;// abrirlo cuando carga la pagina</pre> <a href="http://www.posteet.com/tags/javascript">[javascript]</a>  <a href="http://www.posteet.com/tags/popup">[popup]</a> ]]>        </description>
        <dc:creator>jacinmontava</dc:creator>
        <pubDate>Thu, 04 Dec 2008 18:15:25 +0100</pubDate>

            <category>javascript</category>
            <category>popup</category>
    
    </item>

  
    <item>
        <title>focus sur le premier input avec jquery</title>
        <link>http://www.posteet.com/view/1335</link>
        <description>
        <![CDATA[<pre>$(&quot;input:visible:enabled:first&quot;).focus();</pre> <a href="http://www.posteet.com/tags/javascript">[javascript]</a>  <a href="http://www.posteet.com/tags/jquery">[jquery]</a> ]]>        </description>
        <dc:creator>minus</dc:creator>
        <pubDate>Fri, 24 Oct 2008 11:01:13 +0200</pubDate>

            <category>javascript</category>
            <category>jquery</category>
    
    </item>

  
    <item>
        <title>MooTools Controllers class</title>
        <link>http://www.posteet.com/view/1306</link>
        <description>
        <![CDATA[<pre>/*

Class: Controllers

This is a namespace for all the classes that control interactive behavior on the
page. It also manages event messaging so that controllers can communicate with
each other.

*/
var Controllers = new Class({

  Implements: Events,
  
  initialize: function(cssPrefix) {
    this.controllers = [];
    window.addEvent('domready', this.initializeControllers.bind(this, cssPrefix));
  },
  
  initializeControllers: function(cssPrefix) {
    
    // After the page loads, search for elements with particular CSS classes
    // that correspond to JavaScript behavior controllers.
    
    for (property in this) {
      if ($type(this[property]) != 'class') {
        continue;
      }
      dbug.log(property);
      $$('.' + cssPrefix + property).each(function(el) {
        try {
          var Controller = this[property];
          this.controllers.push(new Controller(el, this));
        } catch(e) {
          dbug.log(e.message);
        }
      }.bind(this));
    }
    this.fireEvent('onInitialize');
    
  }
  
});

dbug.enable();
var Page = new Controllers('JS_');

// In another file, calendar.js
Page.Calendar = new Class({
  initialize: function(el, page) {
    // ...
  }
});</pre> <a href="http://www.posteet.com/tags/behavior">[behavior]</a>  <a href="http://www.posteet.com/tags/controller">[controller]</a>  <a href="http://www.posteet.com/tags/javascript">[javascript]</a>  <a href="http://www.posteet.com/tags/mootools">[mootools]</a> ]]>        </description>
        <dc:creator>dphiffer</dc:creator>
        <pubDate>Tue, 07 Oct 2008 16:18:24 +0200</pubDate>

            <category>behavior</category>
            <category>controller</category>
            <category>javascript</category>
            <category>mootools</category>
    
    </item>

  
    <item>
        <title>Mostrar todos los elementos de un formulario</title>
        <link>http://www.posteet.com/view/1297</link>
        <description>
        <![CDATA[<pre>&lt;html&gt;
&lt;body&gt;

&lt;form id=&quot;myForm&quot;&gt;
Firstname: &lt;input id=&quot;fname&quot; type=&quot;text&quot; value=&quot;Mickey&quot; /&gt;
Lastname: &lt;input id=&quot;lname&quot; type=&quot;text&quot; value=&quot;Mouse&quot; /&gt;
&lt;input id=&quot;sub&quot; type=&quot;button&quot; value=&quot;Submit&quot; /&gt;
&lt;/form&gt;

&lt;p&gt;Get the value of all the elements in the form:&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var x=document.getElementById(&quot;myForm&quot;);
for (var i=0;i&lt;x.length;i++)
  {
  document.write(x.elements[i].value);
  document.write(&quot;&lt;br /&gt;&quot;);
  }
&lt;/script&gt;
&lt;/p&gt;

&lt;/body&gt;
&lt;/html&gt;</pre> <a href="http://www.posteet.com/tags/DOM">[DOM]</a>  <a href="http://www.posteet.com/tags/formularios">[formularios]</a>  <a href="http://www.posteet.com/tags/javascript">[javascript]</a>  <a href="http://www.posteet.com/tags/validacion">[validacion]</a> ]]>        </description>
        <dc:creator>jacinmontava</dc:creator>
        <pubDate>Thu, 02 Oct 2008 09:42:19 +0200</pubDate>

            <category>DOM</category>
            <category>formularios</category>
            <category>javascript</category>
            <category>validacion</category>
    
    </item>

  
    <item>
        <title>Gérer les cookies avec du Javascript</title>
        <link>http://www.posteet.com/view/1295</link>
        <description>
        <![CDATA[<pre>//Insérer les fonctions javascript (dans l'en-tête de vos pages, directement ou dans un fichier .js).
//---------------------------------------------------------------------------------------------------

function ecrire_cookie(nom, valeur, expires) {
  document.cookie=nom+&quot;=&quot;+escape(valeur)+
  ((expires==null) ? &quot;&quot; : (&quot;; expires=&quot;+expires.toGMTString()));
}

function arguments_cookie(offset){
  var endstr=document.cookie.indexOf (&quot;;&quot;, offset);
  if (endstr==-1) endstr=document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr)); 
}

function lire_cookie(nom) {
  var arg=nom+&quot;=&quot;;
  var alen=arg.length;
  var clen=document.cookie.length;
  var i=0;
  while (i&lt;clen){
    var j=i+alen;
    if (document.cookie.substring(i, j)==arg)
       return arguments_cookie(j);
    i=document.cookie.indexOf(&quot; &quot;,i)+1;
    if (i==0) break;
  }
  return null; 
}


//Faire appel aux fonctions : écrire un cookie avec javascript.
//-------------------------------------------------------------

// Création d'un cookie non persistant (pas de date)
// ce cookie s'effacera à la fin de la session
  ecrire_cookie(&quot;deja_venu&quot;, &quot;oui&quot;);

// Création d'un cookie persistant (la date est fixée)
// le cookie s'effacera dans x jours, x mois etc.
// ici le cookie restera 1 mois.
  date=new Date;
  date.setMonth(date.getMonth()+1); // expire dans un mois
  ecrire_cookie(&quot;deja_venu&quot;, &quot;oui&quot;, date);


//Faire appel aux fonctions : lire un cookie avec javascript.
//-----------------------------------------------------------

  deja_venu = lire_cookie(&quot;deja_venu&quot;);</pre> <a href="http://www.posteet.com/tags/cookies">[cookies]</a>  <a href="http://www.posteet.com/tags/javascript">[javascript]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Tue, 30 Sep 2008 11:53:20 +0200</pubDate>

            <category>cookies</category>
            <category>javascript</category>
    
    </item>

  
    <item>
        <title>Embed books from Google book</title>
        <link>http://www.posteet.com/view/1283</link>
        <description>
        <![CDATA[<pre>&lt;script type=&quot;text/javascript&quot; src=&quot;http://books.google.com/books/previewlib.js&quot;&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;GBS_insertEmbeddedViewer('xxxxxxxxxxxx',500,500);
&lt;/script&gt;</pre> <a href="http://www.posteet.com/tags/book">[book]</a>  <a href="http://www.posteet.com/tags/embed">[embed]</a>  <a href="http://www.posteet.com/tags/google">[google]</a>  <a href="http://www.posteet.com/tags/javascript">[javascript]</a> ]]>        </description>
        <dc:creator>stephane</dc:creator>
        <pubDate>Wed, 24 Sep 2008 18:04:48 +0200</pubDate>

            <category>book</category>
            <category>embed</category>
            <category>google</category>
            <category>javascript</category>
    
    </item>

  
    <item>
        <title>Integrando nuestra fotos directamente desde Flickr</title>
        <link>http://www.posteet.com/view/1273</link>
        <description>
        <![CDATA[<pre>&lt;span style=&quot;color:#0063DC&quot;&gt;Flick&lt;/span&gt;&lt;span style=&quot;color:#FF0084&quot;&gt;r&lt;/span&gt;
    &lt;div class=&quot;flickr&quot;&gt;
         &lt;script type=&quot;text/javascript&quot; src=&quot;http://www.flickr.com/badge_code_v2.gne?count=4&amp;amp;display=latest&amp;amp;size=s&amp;amp;layout=h&amp;amp;source=user&amp;amp;user=14412260@N08&quot;&gt;&lt;/script&gt;
   &lt;/div&gt;

&lt;!-- count=4 Cantidad de fotos a mostrar --&gt;
&lt;!-- user=14412260@N08 nuestro ID de usuario --&gt;

&lt;!-- estilos --&gt;
      .flickr a img{
          float:left;
          background: #F0F0F0;
          border: 1px solid #dedbd1;
          margin: 4px 9px 4px 0px;
          padding: 7px;
          list-style:none;
      }
      .flickr img:hover{
          background: #ebe9e1;
          border: 1px solid #dedbd1;
      }</pre> <a href="http://www.posteet.com/tags/flickr">[flickr]</a>  <a href="http://www.posteet.com/tags/fotografia">[fotografia]</a>  <a href="http://www.posteet.com/tags/imagenes">[imagenes]</a>  <a href="http://www.posteet.com/tags/javascript">[javascript]</a> ]]>        </description>
        <dc:creator>jacinmontava</dc:creator>
        <pubDate>Wed, 17 Sep 2008 09:53:43 +0200</pubDate>

            <category>flickr</category>
            <category>fotografia</category>
            <category>imagenes</category>
            <category>javascript</category>
    
    </item>


</channel>
</rss>
