Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-15-2009, 11:01 PM   PM User | #1
WindInFace
New Coder

 
Join Date: Nov 2009
Posts: 40
Thanks: 19
Thanked 0 Times in 0 Posts
WindInFace is an unknown quantity at this point
dojo.declare

Hi,

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

My javascript
Code:
<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
Code:
personNumber="1"
along with the usual id=, etc.

The problem is when I try to get the value of personNumber with
Code:
dijit.byNode(node).personNumber
the value returned is "undefined".

Other values like id return correctly.

Suggestions?

Thank You in Advance for Your Help,

Lou
WindInFace is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:23 AM.


Advertisement
Log in to turn off these ads.