O'Reilly logo

Ext JS 3.0 Cookbook by Jorge Ramon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Serving the XML data to a form

XML is an information interchange format that can be used to provide the data that a form will display. This recipe shows how to create a contact form that feeds off the XML data that is sent from the server. This is how the contact form looks like after receiving the XML data:

Serving the XML data to a form

How to do it...

  1. Build the name, company, picture box, internet, phone, business address, and home address panels as explained in the first six steps of the recipe Loading form data from the server.
  2. Create the contact form and assign it an XmlReader as its data reader:
    var contactForm = new Ext.FormPanel({ frame: true, title: 'TODO: Load title dynamically', ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required