magari così è più comprensibile:
Non riesco a capire come mai Valore2 sia undefined...codice:<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Nuova pagina 1</title> <script language="javascript" type="text/javascript"> var test=new Obj() function Obj(){ this.Valore1=""; this.Valore2=""; this.Calcola=ObjCalcola; function ObjCalcola(){ this.Valore1="test1"; ObjCalcola2(); alert(this.Valore1+" "+this.Valore2); } function ObjCalcola2(){ this.Valore2="test2"; } } test.Calcola(); </script> </head> <body> </body> </html>
Speriamo ci sia qualcuno che mi sa dare una dritta.
Grazie

Rispondi quotando