Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Objects with Javascript
- From: javascript@xxxxxxxxxx (Pramod Jain, INDENT)
- Subject: [Javascript] Objects with Javascript
- Date: Wed, 26 Jun 2002 17:33:02 -0400
I am trying to do a simple example with a method in a class and I get a
"Object does not support this property". Does Javascript support such
stuff...or...please let me know what I am doing wrong:
<html>
<head>
<script language="javascript">
function ToolBarController() {
this.i = 0;
function mo() {
alert("I am in");
}
}
function test() {
TBC = new ToolBarController();
TBC.mo();
}
</script>
</head>
<body onLoad="test()">
</body></html>
Pramod Jain
INNOVATIVE DECISION TECHNOLOGIES, INC.
(INDENT)
904.636.6374 X 12
www.indent.org
- Follow-Ups:
- [Javascript] Objects with Javascript
- From: anand
- [Javascript] Objects with Javascript
- Prev by Date: [Javascript] userAgent property
- Next by Date: [Javascript] is it better to use an 2 arrays or an object
- Previous by thread: [Javascript] Looping through associative arrays
- Next by thread: [Javascript] Objects with Javascript
- Index(es):