...

View Full Version : Dojo dojo.declare



WindInFace
12-15-2009, 11:01 PM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum