Dojo: Render a widget programmatically

I jus thad the problem, that I update my site on certain events and sometimes this site also contains some dojo widget. No I had the problem that this widget was not rendered again, to become eg. a nice combobox. After following the trail of djConfig.searchIds and trying it I can tell you that the following piece does the trick:

var parser = new dojo.xml.Parse();
var frag = parser.parseElement(dojo.byId("“), null, true);
dojo.widget.getParser().createComponents(frag);

The only thing you need to know is the of the element that you want to be parsed. To me that looks like it should be one simple function, since it doesn’t sound like a very uncommon functionality.

2 Comments »

  1. josh said,

    September 1, 2007 at 1:05 am

    Thanks I’ve been trying to figure this out.

  2. gypsy queen progressive jackpots said,

    June 24, 2009 at 11:56 pm

    gypsy queen progressive jackpots…

    alum overprinted spraying intercepting vexed gratify …

RSS feed for comments on this post · TrackBack URL

Leave a Comment