From: Jacob L. <jy...@mo...> - 2003-09-17 21:35:58
|
Is there a way to find out what named javascript objects a template will need? Itd be nice to keep those around (rather than having to recreate them) if the template changed in a way that simply moved some of the existing elements to new locations. With such an API I can write a loop that destroys those children that will no longer be needed. --JYL > --- Jacob Levy <jy...@mo...> wrote: > >> Is it possible to update the template after its set? > > Yes > >> That is, let's say I >> get another template from the server and then do >> tmpl.setHTML(newHTML), >> will that update the layout to the new template? Any >> other requirements so >> as not to leak memory (like destroying something >> before calling setHTML >> again)? > > Once you call setHTML() it will replace content of the > Template those removeing the elements of the > DynLayers, etc. For best use call clearTemplate() to > deleteAllChildren from the template before changing > the content. this will prevent memory leaks. > >> >> Thanks! --JYL >> >> >> >> >> >> > ------------------------------------------------------- >> This sf.net email is sponsored by:ThinkGeek >> Welcome to geek heaven. >> http://thinkgeek.com/sf >> _______________________________________________ >> Dynapi-Dev mailing list >> Dyn...@li... >> > http://www.mail-archive.com/dyn...@li.../ > > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ |