Dialog Questions

Dialog Questions


I have a few questions about the dialog box. I think this is a great
thing and would like to use this instead of the alert box which is
just so ugly in compare to the dialog look but there are 2 issues that
i need to know about.
1. Can i create a dialog box with content on the fly like an alert
box. basically where i can do alert("test") I would like to do
$.ui.dialog("test")(with possibles the class and id and options since
those are need so really $.ui.dialog("id", "class", "title",
"content", options);)
2. Is it possible to disable clicking on the background?
number one is most important cause the only way to create a dialog is
from content already on the page which to me is not perticalurly
useful. are any of these being planned?