PDA

View Full Version : How to add multiple of same template?



dbassett74
30 Jun 2010, 10:04 AM
I have a template defined in HTML. It has id values already set. The problem is when I try to use this template in more than one place, there is a conflict because the id's are the same. How do I change the id's as I use the template to overwrite an element?

CrazyEnigma
30 Jun 2010, 6:15 PM
What do you mean by Template? Like Ext.Template() or HTML as a template? If the latter, that is a management nightmare. I think you consider going full on ExtJS at this point and use Ext.Template(). But with no code sample, it's hard to tell what it is you are asking?

evant
30 Jun 2010, 8:54 PM
Don't use ids. If you want to re-use it, obviously this is a bad idea. Use some other way of identifying them.