Hi!
See the quickref: quickref.templatemanager.html
Regards
Daniel
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jacob Levy
Sent: den 17 september 2003 21:02
To: [EMAIL PROTECTED]
Subject: [Dynapi-Dev] Templates
OK, so templates are like mega
correct but I would change the steps a little:
* Step 3: RemoveAllChildren on the template
* Step 5: Re-add those widgets that are needed,
destroy the rest
* Step 6: setHTML on the template with the new HTML
Otherwise you would have to call generate() for after
you've added the new widgets after
Sorry, my feature request was not well thought-out. By the time you let
the template parse the HTML it's going to already need the widgets. Better
to do what I think you're implying:
* Step 1: create the template with an HTML string or setHTML on an
existing template
* Step 2: create your widgets
--- Jacob Levy <[EMAIL PROTECTED]> wrote:
> Is there a way to find out what named javascript
> objects a template will
> need?
I think such a feature would be useful. I think I can
add something like getFieldNames().
> Itd be nice to keep those around (rather than
> having to recreate
> them) i
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
--- Jacob Levy <[EMAIL PROTECTED]> 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
OK, so templates are like mega-widgets, grouping together a bunch of
DynAPI widgets. Cool, and very impressive example with the calendar.
Is it possible to update the template after its set? That is, let's say I
get another template from the server and then do tmpl.setHTML(newHTML),
will that upda