Archive | Javascript RSS feed for this section

HTML5 en Google DevFest

19 Apr

La presentación de HTML5 que dio Ernest Delgado. Está en HTML5, como era de suponerse, así que puede que no se vea igual en todos los navegadores…

http://apirocks.com/html5/html5.html

Como cambiar el URL “al vuelo” – How to change URL “on the fly” – Jquery

12 Feb

Aqui les va un pedacito de código muy sencillo para cambiar el url en la barra de direcciones al vuelo con Jquery

  • Y como digo yo “para una vida mas amable, gracias jquery”, usamos la libreria
  • Despues añadimos las 5 lineas magicas
    <script src="./scripts/jquery-1.3.2.js">
    
    $().ready(function () {
    			$("#txt").keyup(function () {
    			parent.location.hash = $(this).val();
    			});
    					});
    </script>
  • un input text
    <input name="txt" id="txt" type="text" />
  • Escribes en el input y "you´ll see the magic"!

Lightbox

11 Feb

Creo que a estas alturas esta claro que el uso de un Lightbox es casi un hecho para mostrar imágenes, vídeos y demás contenidos de una forma elegante a los usuarios de nuestros  sitios, así que les dejo una liga con una recopilación de unos bastante buenos para que los tengan a la mano.

http://woorkup.com/2009/12/29/jquery-lightbox-scripts/

Flash encryption and PHP decryption

10 Feb

I was looking around for some encryption/decryption methods in flash that works also with PHP. And I found some interesting websites with a simple explanation. The first one is a simple XOR encryption/decryption inside flash.

http://blog.yofla.com/2009/03/as3-encrypt-and-decrypt-textxml/

The second website I found uses the as3Crypto library and decrypts it on the server side using PHP. The links for the explanation and the library the use are here:

http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/

http://code.google.com/p/as3crypto/

The third website I found is also interesting and has some data service libraries for Flash, Air and PHP:

http://code.google.com/p/as3-to-php-aes-dataservice/

This last one is based on some JavaScript functions found on the following page. This could be usefull with AJAX like applications.

http://www.movable-type.co.uk/scripts/aes.html

Hola mundo!

4 Feb

echo “hola mundo!”;

alert (“hola mundo!”);

trace (“hola mundo!”);

print (“hola mundo!”);