hi all,
I am trying to attach an event to onChange property..
the function i am trying to attach is inside a class.
for eg..
my js has a structure as follows..
Now, my HTML looks somewhat like this..
here it is not throwing up any errors.. but the event handler is not called..
please help me how to call this event handler inside the object?
Waiting for u r reply,
Xoinki
I am trying to attach an event to onChange property..
the function i am trying to attach is inside a class.
for eg..
my js has a structure as follows..
Code:
// if not defined
a = new Object()
//if not defined
a.b = new Object()
a.b.init = function()
{
var vproto = a.b.Init.prototype;
var vthis = this;
vproto.somefunction = function()
{
}
vproto.eventhandler = function()
{
}
}
// so eventhandler is the onChange event handler
Code:
<html> ... .. <.... onchange = a.b.eventhandler;>
please help me how to call this event handler inside the object?
Waiting for u r reply,
Xoinki
Comment