Posts in jquery

Cómo validar fechas con jQuery

junio 3rd, 2011 Posted by jquery 0 thoughts on “Cómo validar fechas con jQuery”

1. Incluir jQuery
2. Incluir Date.js

jQuery.validator.addMethod("australianDate", function(value, element) { 
return Date.parseExact(value, "d/M/yyyy");
});

$("#myForm").validate({
rules : {
birth_date : { australianDate : true }
}
});

3.1. Para formatear el input incluir http://digitalbush.com/projects/masked-input-plugin/

3.2.

$("#birth_date").mask("99/99/9999");

Tomado de acá

Visor PDF con JS (JQuery + Google Viewer API)

abril 28th, 2011 Posted by jquery 0 thoughts on “Visor PDF con JS (JQuery + Google Viewer API)”

0. Agregar Jquery y fancybox (JS + CSS) al head

1. En el JS


$(".test").fancybox({
'width' : '75%',
'height' : '90%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});

2. En el html


<a class="prueba" href="http://docs.google.com/gview?url=http://mysite.com/mipdf.pdf&embedded=true">Prueba</a>

JQuery iPhone Slider

enero 13th, 2011 Posted by iphone, jquery 0 thoughts on “JQuery iPhone Slider”

http://jquery.hinablue.me/jqiphoneslide/

Copyright © 2018 programadorfreelanceargentina.com

Programador Freelance Argentina