viernes, 9 de noviembre de 2012

jQuery: Test Time Entry

$(".entry_hora").timeEntry({
    ampmPrefix: ' ',
    spinnerImage: 'spinnerDefault.png'
});

Test Online.
http://jsfiddle.net/ric47121/9QkpK/

Web Oficial:
http://keith-wood.name/timeEntry.html

jueves, 25 de octubre de 2012

jQuery: input money con autoNumeric

$('#auto').autoNumeric({aSep: '.', aDec: ',', aSign: '$ '});

test online:
http://jsfiddle.net/ric47121/TUCCD/1/

documentacion:
http://www.decorplanit.com/plugin/

otros similares:
http://www.jquery4u.com/plugins/10-jquery-currencyprice-plugins/#.UIlcI8XA9Ip

jQuery: Test currency

$('#currencyField').blur(function(e) {
    
    $(this).formatCurrency();
   
});

test online:
http://jsfiddle.net/ric47121/MDkGZ/

lunes, 22 de octubre de 2012

Html: Mostrar pdf en la web (pdf, word, ppt, etc)

mostrar documentos sobre la web con google docs viewer

https://docs.google.com/viewer?hl=es

me sirvio para mostrar la documentacion del sistema que estaba en word.

guardar el documento como pdf, se sube a algun servidor y luego el visor se encarga de hacer todo.

enjoy!

viernes, 28 de septiembre de 2012

Google Maps: mover marcador


marker.setPosition( new google.maps.LatLng( lat, lon ) );
        map.panTo( new google.maps.LatLng( lat, lon ) );

test online rck:
http://jsfiddle.net/ric47121/4YbED/5/

jueves, 27 de septiembre de 2012

PHP: ip 2 country json

<?php 

$ip = $_SERVER['REMOTE_ADDR'];
$json = file_get_contents("http://api.easyjquery.com/ips/?ip=".$ip."&full=true");
$json = json_decode($json,true);

echo "
<pre>";
print_r($json);

?>

url:
http://www.easyjquery.com/detect-get-clients-ip-address-country-using-javascript-php/

otra forma:
http://freegeoip.appspot.com/