2010-07-26 6 views
0

나는 정의 내에서 onsubmit 도장/방법과 같이 위젯 템플릿이 .debug (this); SubmitForm (dojo.hitch (this, this.Send)); } } catch (e) { console.debug (e); } false를 반환합니다. dojo.hitch 범위 문제/방법

이것을 호출하면 dojo/메소드 내의 범위는 dijit.Form입니다. 대신 템플릿 위젯의 범위를 얻는 방법에 대해 설명하겠습니까?

dojo.connect (dojo.byId (this.form.id) "onsubmit" dojo.hitch (이 함수 (E) { e.preventDefault :

답변

0

난 이렇게하여 해결(); if (this.GetForm(). validate()) { SubmitForm (dojo.hitch (this, this.Send)), } }) );