Tema: Crear "this"
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/05/2012, 13:02
Avatar de salbatore
salbatore
 
Fecha de Ingreso: abril-2007
Ubicación: Springfield
Mensajes: 1.567
Antigüedad: 17 años, 11 meses
Puntos: 19
Crear "this"

Hola a todos,

Estoy intentando crear el objeto this, pero no puedo. Me saltan errores.

Lo quiero hacer en estas lineas(estan resumidas):

Código Javascript:
Ver original
  1. variable="alert(this.className)";
  2. (function(){eval(variable); }).call(miobjeto);


Quiero que miobjeto se convierta en el this, pero no funciona. ¿Como debo hacerlo?