View Full Version : Getting Information from a BasicForm Object

19 Oct 2007, 4:55 AM
<form id='my-form' action='/user/login' method='post'>
<script type='text/javascript'>
function () {
var frm = Ext.form.BasicForm('my-form');
// how to I get 'action' attribute from frm variable?

In the above *simplified* code, how do I obtain 'action' attribute from the 'frm' variable? I can get it by going to DOM but is there a way to get it out of 'frm' variable? Actually, I'm not even sure how to get the 'dom' object from 'frm'. The 'dom' is a property of Element but BasicForm and Element don't seem to be related in the inheritance hierarchy.

Any help would be greatly appreciated as I try to wade my way through this super powerful library.