title: List attributes of an XFA Object using Javascript in a PDF
body: <p>I'm trying to create a PDF document with several text fields that can grow in height up to some maximum value. Due to the constraints of the project, I'm using Adobe Designer 7, which happily allows Javascript. However, the objects in XFA are a little different from the HTML DOM or earlier PDF DOMs. </p>
  
  <p>So, I know for certain that my field, TextField1, has certain attributes, such as "h", which controls the height.</p>
  
  <p>The code below only lists the methods on TextField1, but not the attributes:</p>
  
  <pre><code>----- form1.Page1.TextField1::exit - (JavaScript, client) -----
  
  for(var i in xfa.form.form1.Page1.TextField1) {
      try {
          console.println(i);
      } catch(e) {}
  }
  </code></pre>
  
  <p>Why is that? (And, how do I fix it so it <em>does</em> list the attributes?)</p>
  
  <p>Something quite similar to the code above was working, but I lost the snippet out of negligence and a very short undo-stack.</p>