Clear a template

Hi,

I am filling a template with HTML from the server using define source. When I repopulate the template using this method I see the loading overlay on top of the previous template. Is it possible to clear the template before reloading so I don’t see the previous template?

$$(_a.NAME + "_summaryViewContent").define("src", sourceAddress);

James

Hi James,

define(“src”, url) changes innerHTML on the template view and does not add the new content to the existing data. Please see the sample:

dhtmlxTouch_v12_120913/samples/09_template/02_ajax_content.html

However, if you need to clear the template, you can use the following approach:

$$(_a.NAME + “_summaryViewContent”).define(“template”,"");
$$(_a.NAME + “_summaryViewContent”).refresh();