Login Register

dojox.dtl._HtmlTemplate

dojox.dtl.demo_blog.html working as expected?

My goal is to change a widget's template upon user interaction (e.g. user selects from a combobox in widget => widget's combobox template is replaced with a button template) using setTemplate in dojox.dtl._HtmlTemplate.

I tried copying from dojox.dtl.demo_blog.html, but it appears that it does not behave as I would expect it to. Can anyone comment on its behavior?

Im using the latest 1.1.1 dev

Thanks! BTW... I just took an awesome dojo class from Neil Roberts, he was very helpful and started me down this crazy path of creating dtl templated widgets. ;-)

Re-render self within the widget

I have a widget on a page that subscribe to a topic. When I click a button the page publishes and a function called refreshMe() will be called and the context is changed and finally the widget re-render itself to display the new text from "orange" to "apple". But I got error "this.render is not a function". Any help is appreciated.
Here is the code:

Dojo Widgets Test page

djConfig={
                "isDebug": true,
                "parseOnLoad": true,
                "baseUrl": "../dojolib/dojo/"
        };
Syndicate content