PDA

View Full Version : need help for innerHtml



saied_hai2006
1 Sep 2009, 5:20 AM
Hi,

Im having one textbox with an id="text1", and trying

var elm = Ext.get(text1);
var html = "<span class='fldDisplay' >" + "alex"+ "</span>";
elm.insertHtml( "afterEnd", html);

but its not working properly..
Can you please help me out to know about insertHtml.
Thanks in advance,

Animal
1 Sep 2009, 5:27 AM
How to know about insertHtml: http://extjs.com/deploy/dev/docs/?class=Ext.Element&member=insertHtml

saied_hai2006
1 Sep 2009, 5:55 AM
Can u please explain me with an example, if possible
Thanks in advace..

Animal
1 Sep 2009, 6:04 AM
Which bit of the docs are unclear?

Here they are, so point me at the bit you don't understand:

http://i131.photobucket.com/albums/p286/TimeTrialAnimal/insertHtml.jpg