Results 1 to 2 of 2
  1.    #1  
    I'm able to get the the textfields input, but unable to add the values together.

    I've tried:
    this.controller.get('textField1Value').update(this.model[textField1]);
    this.controller.get('textField2FieldValue').update(this.cwRatemodel[textField2]);
    this.total = parseInt(textField1) + parseInt(textField2);

    but I keep getting a NaN.

    Any help is appreciated.

    Thanks,
    Jen
  2. chimeric's Avatar
    Posts
    69 Posts
    Global Posts
    71 Global Posts
    #2  
    It looks like you are not using Mojo attributes. In Mojo, when you set up a textfield, you can designate an output attribute. This way you can get textfield input in this way: this.total=parseInt( this.textField1.value) + pasrseInt(this.textField2.value);

Posting Permissions