PDA

View Full Version : textbox



sramkumarmca
14 Feb 2011, 9:47 PM
Hi

I want to place the textbox in between two text

eg.

to acquire _____% of the total value of equity

I want to get % value in text box.

How to do this?

Thanks in advance..

dj
15 Feb 2011, 3:19 AM
Hi sramkumarmca,

if the text box does not need to be part of a layout/the component hierarchie you can use the renderTo (http://dev.sencha.com/deploy/dev/docs/?class=Ext.Component&member=renderTo) config option: (AFAIK if you use a Ext.form.FormPanel then the text field needs to be a child of it to work properly)

HTML:


<p>to acquire <span id='textbox'></span>% of the total value of equity</p>


JavaScript


var textbox = new Ext.form.TextField({
renderTo: 'textbox'
});