P
Pacific Fox
Hi all,
haven't posted to this group before, but got an issue I can't work
out... and hoping to get some help here ;-)
I've got a base object that works fine with named arguments when called
on it's own. However when I call the child object I get an error
"[associative array name] has no properties (in firefox)."
I simple test:
Property = function( arg ) {
/**
* Private properties
*/
var name = arg.name; // required, the name of the field
/**
* Priviliged methods, may be invoked publicly and may access private
variables
*/
this.getName = function() {
return name;
}
};
/**
* Class for form field properties, extends property
*/
FormProperty = function( arg ) {
/**
* Inheritance
*/
this.super = Property;
this.super( { name:arg.name } );
this.prototype = new Property;
}
//property = new FormProperty( { name:"myVar" } )
property = new Property( { name:"test" } )
alert( property.getName() );
Un comment //property = new FormProperty( { name:"myVar" } )
to get the error.
Thanks in advance for any help.
haven't posted to this group before, but got an issue I can't work
out... and hoping to get some help here ;-)
I've got a base object that works fine with named arguments when called
on it's own. However when I call the child object I get an error
"[associative array name] has no properties (in firefox)."
I simple test:
Property = function( arg ) {
/**
* Private properties
*/
var name = arg.name; // required, the name of the field
/**
* Priviliged methods, may be invoked publicly and may access private
variables
*/
this.getName = function() {
return name;
}
};
/**
* Class for form field properties, extends property
*/
FormProperty = function( arg ) {
/**
* Inheritance
*/
this.super = Property;
this.super( { name:arg.name } );
this.prototype = new Property;
}
//property = new FormProperty( { name:"myVar" } )
property = new Property( { name:"test" } )
alert( property.getName() );
Un comment //property = new FormProperty( { name:"myVar" } )
to get the error.
Thanks in advance for any help.