Profile

Cover photo
Rodolfo Velez (Rudy Dark)
Lives in Nogales
73 followers|4,150 views
AboutPostsPhotosVideos+1's

Stream

Rodolfo Velez

Shared publicly  - 
 
Jajajajaja😊😝
 
Me más sentido pésame.
 ·  Translate
2
1
Barbara Taichet's profile photo
Add a comment...

Rodolfo Velez

Shared publicly  - 
 
Mexico seguro...
 ·  Translate
3
Rodolfo Velez's profile photoJesus Jim's profile photo
2 comments
 
Pos no Nogales, pero si Guadalajara... sigue siendo Mexico...
 ·  Translate
Add a comment...

Rodolfo Velez

Shared publicly  - 
 
Un excelente regalo para este frio....
1
jesus zermeno's profile photooscar manuel armenta ruiz's profile photoJesus Jim's profile photo
3 comments
 
IRALO.....AMALAYONNNN MI VIEJO..
Add a comment...
Have him in circles
73 people
Daniel Pérez's profile photo
oscar manuel armenta ruiz's profile photo
Jesus Jim's profile photo
paulson vm's profile photo
Alonso Felix's profile photo
Yesenia Hernandez's profile photo
Cesar Gerardo Martinez Aguiar's profile photo

Rodolfo Velez

Shared publicly  - 
 
Jajaja, vives the grudge a todo lo que va...
 ·  Translate
1
Add a comment...

Rodolfo Velez

Shared publicly  - 
2
1
Yesenia Hernandez's profile photo
 
jJAJAJAJ SACA UNAS RISAS JAJAJA
 ·  Translate
Add a comment...

Rodolfo Velez

Shared publicly  - 
1
Add a comment...

Rodolfo Velez

Shared publicly  - 
1
Add a comment...

Rodolfo Velez

Shared publicly  - 
 
Aqui va otro codigo para pensar,
Este es para utilizar las flechas de arriba y abajo dentro de un input y poder hacer seleccion de un listado:

(Lo he probado en algunos navegadores, aun tengo algunos bugs revisando, como en Chrome que se selecciona el campo y se deselcciona en segundos)

Se utilizan 4 fases-

1.-Localizar el objeto, en este caso el input, esta funcion solo la llamo para crear un div con la table dinamica:
//localizar posision de objeto dentro de varios parent
function findPos(obj) {
var posX = obj.offsetLeft;
var posY = obj.offsetTop;
while(obj.offsetParent) {
if(obj == document.getElementsByTagName('body')[0]) {
break
} else {
posX = posX + obj.offsetParent.offsetLeft;
posY = posY + obj.offsetParent.offsetTop;
obj = obj.offsetParent;
}
}
var posArray = [posX, posY]
return posArray;
}

2.-El objeto que se creara o donde aparera el listado, yo utilice de listado una tabla dinamica por medio de AJAX, en este caso primero creo una funcion donde creo el buscadiv y en que objeto, de ahi una vez llamada la funcion de AJAX solo lleno la informacion con un innerhtml:
//Crear y posicionar buscadiv
function buscadiv(bcap) {
var posarray = findPos(bcap);
var hor = posarray[0];
var alt = posarray[1] + 20;// el +20 es para posicionar el div abajo del input, tomando en cuenta un input de 20px de altura.
if (document.getElementById("buscadiv") == null) {
var ebusca = document.createElement("div");
ebusca.setAttribute("id", "buscadiv");
document.body.appendChild(ebusca);
}
var bv = document.getElementById('buscadiv');
bv.style.display = "block";
bv.style.left = hor + "px";
bv.style.top = alt + "px";
bv.style.position = 'absolute';
bv.style.backgroundColor = '#EEEEEE';
bv.align = 'left';
bv.style.width = 'auto';
bv.style.height = 'auto';
bv.style.zIndex = '10';
}

3.- Esta es la informacion que se envia del teclado en ella como utilizo una tabla dinamica con el id tbbp, lo que realiza es cambiar el color de la celda al utilizar las flechas arriba y abajo, y al dar enter o tab se toma la seleccion resaltada, si se da escape se cierra la busqueda sin elegir opcion, esta funcion va en el input:
function keynav(evt) {
e = event || evt;
var charCode = e.which || e.keyCode;
if ((charCode != undefined) || (charCode != null)) {
if (document.getElementById("buscadiv") != null) {
if (document.getElementById("buscadiv").style.display == 'none') {
if (charCode == 13 || charCode == 27) {// Escape key
e.preventDefault();
return false;
}
return;
}
} else
return;
if (document.getElementById("tbbp") == null) {
if (charCode == 13 || charCode == 27) {// Escape key
e.preventDefault();
return false;
}
return;
}
var obj = null;
var yu = document.getElementById("tbbp").rows.length;
for (var i = 1; i <= yu; i++) {
if ((document.getElementById('lp' + i).style.backgroundColor == '#00FF00') || (document.getElementById('lp' + i).style.backgroundColor == 'rgb(0, 255, 0)')) {
obj = i;
}
}
if (obj == null) {
obj = 0;
}
if (charCode == 38) {// Up arrow
for (var i = 1; i <= yu; i++) {
document.getElementById('lp' + i).style.backgroundColor = 'transparent';
}
if ((obj > 1) && (obj != 0)) {
obj = obj - 1;
} else
obj = 1;
document.getElementById('lp' + obj).style.backgroundColor = '#00FF00';
e.preventDefault();
return false;
}

if (charCode == 40) {// Down arrow
for (var i = 1; i <= yu; i++) {
document.getElementById('lp' + i).style.backgroundColor = 'transparent';
}
if (obj < yu) {
obj = obj + 1;
}
document.getElementById('lp' + obj).style.backgroundColor = '#00FF00';
e.preventDefault();
return false;
}

if (charCode == 13 || charCode == 9) {// Enter key or tab key
document.getElementById('lp' + obj).click();
if (charCode == 13) {
return false;
e.preventDefault();
} else
return true;
}
if (charCode == 27) {// Escape key
destruyebdiv();
e.preventDefault();
return false;
}
} else {
return false;
}
}

4.-Se destruye el objeto una vez seleccinado la opcion.
//Destruye buscadiv
function destruyebdiv() {
var cal = document.getElementById("buscadiv");
if (cal != null) {
cal.innerHTML = null;
cal.style.display = "none";
}
return;
}
1
Add a comment...

Rodolfo Velez

Shared publicly  - 
 
"Al no estar haciendo absolutamente nada, estas haciendo algo, nada..."
1
Add a comment...
People
Have him in circles
73 people
Daniel Pérez's profile photo
oscar manuel armenta ruiz's profile photo
Jesus Jim's profile photo
paulson vm's profile photo
Alonso Felix's profile photo
Yesenia Hernandez's profile photo
Cesar Gerardo Martinez Aguiar's profile photo
Work
Occupation
IT Engineer
Skills
Server Management, (PHP, HTML, Javascript) Development, Technical Support
Basic Information
Gender
Male
Story
Tagline
El conocimiento y la sabiduría son los mejores acompañantes en la vida.
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Nogales
Links
Contributor to
Rodolfo Velez (Rudy Dark)'s +1's are the things they like, agree with, or want to recommend.
TaxACT
plus.google.com

Free Federal Tax Return for Everyone

SoundCloud - Your Sound, At The Heart
soundcloud.com

Create, record and share the sounds you create anywhere to friends, family and the world with SoundCloud, the world's largest community of s

VirtualBox
www.virtualbox.org

News Flash. New July 19th, 2011 VirtualBox 4.1 released! Oracle today released VirtualBox 4.1, a new major release. Introducing VM clones, i

Minecraft
www.minecraft.net

Minecraft is a game about placing blocks to build anything you can imagine. At night monsters come out, make sure to build a shelter before

Aptana
www.aptana.com

Aptana Studio 3. The world&#39;s most powerful open-source web development IDE just got better. Rebuilt from the ground-up. It&#39;s now muc

Google Bookmarks
www.google.com

Access your Bookmarks on any computer, and use Lists to share them with friends.

Dart : Structured web programming
www.dartlang.org

Dart Structured web programming. Home; Getting Started. Technical Overview; Tutorials. Hello, World; Classes; Interfaces. Language &amp; Lib

PlayBook BARs
playbookbars.com

BlackBerry PlayBook BAR files form Android APK Files

Hotfile, Mediafire, Rapidshare… ¿cuál sigue?
alt1040.com

Hace algunos meses el panorama era muy distinto del que vivimos hoy. Los proyectos de la calaña de SOPA y PIPA atemorizaban sólo a mentes p

Gracias gordito de Megaupload
alt1040.com

Gracias gordito de Megaupload por haberme dado algunas de las mejores conversaciones de mi vida. Soy @inti y no tienes la menor idea de qui

AMD FX-8150 3.60 GHz Eight Core AM3+ Unlocked CPU
www.tigerdirect.com

Buy the AMD FX-8150 3.60 GHz Eight Core AM3+ Unlocked CPU at a super low price. TigerDirect.com is your one source for the best computer an

alberto montt: 2011-10-06
www.dosisdiarias.com

Viaje al pasado. ► 2006 (53). ► noviembre (24). ► nov 20 (13). ► nov 21 (1). ► nov 22 (1). ► nov 23 (1). ► nov 24 (4). ► nov 27 (3). ► nov 3

ASUS G74SX-TH71 17.3 Black Notebook
www.tigerdirect.com

Buy the ASUS G74SX-TH71 17.3" Black Notebook at a super low price. TigerDirect.com is your one source for the best computer and electronics

Taringa! - Inteligencia Colectiva
www.taringa.net

Taringa! es una comunidad virtual donde los usuarios comparten todo tipo de información a través de un sistema colaborativo de interacción.

PostgreSQL: The world's most advanced open source database
www.postgresql.org

PostgreSQL 9.1 Beta 3 now available! Beta release 9.1 Beta 3 is now available for download. We encourage developers and users to test this v

DJ Liquid - In The Hall Of The Mountain King (Remix) - free mp3 download
www.mp3ye.eu

DJ Liquid - In The Hall Of The Mountain King (Remix) - free mp3 downloads, DJ Liquid - In The Hall Of The Mountain King (Remix) - listen to

TED Notepad - free notepad replacement
jsimlo.sk

Replace notepad with free unicode notepad replacement, rich in innovative features, text-processing functions, tools and hotkeys.

Create a new Fiddle - jsFiddle - Online Editor for the Web (JavaScript, ...
jsfiddle.net

Please read the documentation. For updates please follow our blog, tweets or become a fan. Close. Choose Framework. no wrap (head), no wrap

What&#39;s My IP Address? Networking Tools &amp; More
www.whatsmyip.org

Your IP Address plus Port Scanners, Traceroute, HTTP Compression Test, Ping, Whois, DNS, IP Geo Location, Password Generator and many more t

GIMP on OS X
sourceforge.net

This project provides pre-build GIMP application bundles for Intel and PPC Macs.