Ver Mensaje Individual
  #3 (permalink)  
Antiguo 20/05/2013, 14:29
Avatar de hackjose
hackjose
 
Fecha de Ingreso: abril-2010
Ubicación: Edo Mexico
Mensajes: 1.178
Antigüedad: 14 años, 11 meses
Puntos: 131
Respuesta: POO , emulando strong data typing (problema)

Código Javascript:
Ver original
  1. function PersonaPrototype(){
  2.  
  3. this.NodoPadre = new String(document.getElementById('ejemploID'));
  4. }

Con esto estas obteniendo el elemento No el id

Para obtener el id as esto

Código Javascript:
Ver original
  1. this.NodoPadre = new String(document.getElementById('ejemploID').id);

Saludos