View Full Version : Best way to add dynamicaly HTML code ?

14 Aug 2008, 11:56 PM
Good Morning,

I want to use the autocomplete combox like this one : http://extjs.com/deploy/dev/examples/form/forum-search.html

In my application, a tool allows to the user to add inputs dynamicaly (TextField actually) in a form.
And, for each new TextField created, I want to enable autocompletion.

In the javascript (Ext JS components) side, I think how to do. But the example uses HTML code, I don't know how to add dynamicaly that.

How should I do ?

Thank you for your advices.


15 Aug 2008, 3:54 AM
Perhaps I don't well understand how the autocomplete works, but do I have necessary need HTML code ?

Can someone advise me ?

15 Aug 2008, 3:56 AM
Use the DomHelper class to assist in adding html dynamically.