views:

138

answers:

0

Hey Experts, please help me out with a dijit.Editor doubt.

I want to add a dijit.Editor dynamically to my Page using jQuery.

my code is:
jQuery(#foo).before("<textarea width='500px' name='page_text2[]' dojoType='dijit.Editor' ></textarea>");

The textarea gets created, but dijit.Editor does not show.

It seems dojo only parses elements onLoad.

Is it possible to insert dojo elements on the fly, after the page is loaded completely?

i'm missing something?

thanks.