Re: [PHP] JavaScript - object property

2005-04-27 Thread Marek Kilimajer
Eli wrote: Hi, I know this is not the forum, but I googled and couldn't find it, so please try to help me with this. /*/ function MyCls(name) { this.name=name; } function SayHi() { alert('Hi, '+this.name+'!'); } var obj=new MyCls('PHP'); obj.name='JavaScript'; //this will call

Re: [PHP] JavaScript - object property

2005-04-27 Thread Jochem Maas
Richard Lynch wrote: On Tue, April 26, 2005 7:51 pm, Eli said: I know this is not the forum, but I googled and couldn't find it, so please try to help me with this. /*/ function MyCls(name) { this.name=name; } function SayHi() { alert('Hi, '+this.name+'!'); } var obj=new

[PHP] JavaScript - object property

2005-04-26 Thread Eli
Hi, I know this is not the forum, but I googled and couldn't find it, so please try to help me with this. /*/ function MyCls(name) { this.name=name; } function SayHi() { alert('Hi, '+this.name+'!'); } var obj=new MyCls('PHP'); obj.name='JavaScript'; //this will call SayHi()

Re: [PHP] JavaScript - object property

2005-04-26 Thread Richard Lynch
On Tue, April 26, 2005 7:51 pm, Eli said: I know this is not the forum, but I googled and couldn't find it, so please try to help me with this. /*/ function MyCls(name) { this.name=name; } function SayHi() { alert('Hi, '+this.name+'!'); } var obj=new MyCls('PHP');