
16/05/2011, 15:54
|
| | Fecha de Ingreso: febrero-2011
Mensajes: 11
Antigüedad: 14 años, 2 meses Puntos: 0 | |
Problema con Attribute.Add y JavaScript Buenas Tardes Amigos
Tengo un problema y espero puedan ayudarme, estoy tratando de llamar una funcion de javascript con Attribute.Add, el problema es el siguiente:
Si hago esto funciona: Me.educacion.Attributes.Add("onblur", "alert('1234');")
educacion es un textbox
Pero si hago esto no funciona: Me.educacion.Attributes.Add("onblur", "Calcular();")
tampoco con esto: Me.educacion.Attributes.Add("onblur", "Javascript:Calcular();")
Esta es la funcion: function Calcular()
{
var Tot_desgra = document.getElementById('educacion').value + document.getElementById('seguros').value + document.getElementById('medico').value + document.getElementById('vivienda').value;
var Tot_desgraUT = (Tot_desgra * 76);
document.getElementById('Tot_desg').value = Tot_desgra; //Label
document.getElementById('Tot_desgUT').value = Tot_desgraUT; //Label
}
Cuando salgo de los textbox no hace absolutamente nada.
Saludos
Nixx |