You are here: JavaScript - object property « PHP « IT news, forums, messages
JavaScript - object property

Posted by Eli on 10/09/97 11:14

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() function
/*********/

I have a class in JS with a property variable in it. How can I execute a
function when the property value is changed?

Sorry it's off-topic..
-thanks, Eli

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация