PDA

View Full Version : Dojo dojo.declare



WindInFace
12-16-2009, 12:01 AM
Hi,

I need a dijit.form.FilteringSelect with an additional variable named "personNumber".

My javascript


<script language="javascript">
dojo.declare("FilteringSelectPerson",dijit.form.FilteringSelect, {
constructor: function(personNumber){
// remember, dijit.form.FilteringSelect constructor is called automatically
this.personNumber=personNumber;
},
personNumber: function(){
return digit.byId(this).personNumber;
}
}
);
dojo.provide("FilteringSelectPerson");
</script>


My html includes


personNumber="1"

along with the usual id=, etc.

The problem is when I try to get the value of personNumber with


dijit.byNode(node).personNumber


the value returned is "undefined".

Other values like id return correctly.

Suggestions?

Thank You in Advance for Your Help,

Lou