PDA

View Full Version : Problem accessing Ext.Form components



digitalkaoz
5 Jun 2007, 7:28 PM
hello community,

first I need to say "WoW" what a great piece of code =D>

i am experimenting with various widget and components...and here ist my first big error ;)

i think its only a logical oder conceptional error...

here is my code
click here to view the code (http://www.ubuntuusers.de/paste/11477/)

and now my question, why am i unable to access this.WhateverElement in both functions, MessageSubmit and MessageSuccess ?

what am i doing wrong?
i'll be thankfull for all hints ;)

greetz
digitalkaoz (extjs.newbie.developer :D )

Animal
6 Jun 2007, 12:06 AM
You're executing the functions in the scope of this.messageForm. Which is an Ext.form.Form, you should be executnig them in the scope of this.

Please post code inline with '[' + 'code]' tags.

digitalkaoz
6 Jun 2007, 4:09 AM
thanks,

and how do i define MessageSuccess and MessageSubmit in the scope of Jame.MessageWidget or this ? a piece of example code would be nice

Animal
6 Jun 2007, 4:24 AM
You have the code. Just set the scope to this, not this.messageForm

digitalkaoz
6 Jun 2007, 5:45 AM
thanks dr.perry :D its working now.