View Full Version : Is it possible to pragmatically add a basicDialog?

13 Jan 2007, 12:06 PM
Is there a way to progmatically add a Basicdialog? I'm using it for a 'subscribe to newsletter' form inside a dialog, but I'm not keen on sending the html to the browser for a feature that people will only ever use once (if that)...

I can see examples to produce a dialog from existing markup, but not from javascript. If there is an example, or code you could point me to, or can steer me in a certain direction, that would be great.

13 Jan 2007, 12:32 PM
You can use autoCreate:true to create the div on the fly. Look at the BasicDialog doc to see all the configuration options. http://yui-ext.com/deploy/yui-ext/docs/