Ver Mensaje Individual
  #6 (permalink)  
Antiguo 22/01/2008, 11:50
hgoncalves
 
Fecha de Ingreso: enero-2008
Mensajes: 1
Antigüedad: 16 años, 3 meses
Puntos: 0
Re: error javascript en firefox

hello.

Have you resolve that problem? How you do it?
I have the same problem, please see:

<script type="text/javascript">

function MyObject(MyID, Name){
this.MyID=MyID;
this.Name=Name;
};
function MyObject.prototype.MyFunction() {
return this.MyID;
};

var o = new MyObject(1, 'Item 1');

alert(o.MyFunction());

</script>

It work's fine on IE 7
Any solutions? Very Thanks!