I may be missing something but it seems like the BasicDialog's constructor-style initialization is not very conducive to re-rendering with a different DOM source.

I'd like to pop up a BasicDialog with a loading indicator in the body area until an AJAX request returns a snipet of HTML to be used as the new contents of the BasicDialog (via DomTemplate). It looks like I'm going to have to recreate a portion of the BasicDialog constructor code to accomplish this.

Is there a better way?