suggestion for ui.dialog

suggestion for ui.dialog


I'm using UI to build a simple ajax app for a small admin area / web
app, and I love it. One issue I have though is I am using the dialog
tool for 2 dialogs that get loaded with customized HTML based on the
database record being viewed. I pull in the html from the server.
So, I was using the same <div> over and over to build my dialog, and
the second 'instance' immediately confuses my open and close buttons.
I noticed that UI does not assign a unique id attribute to its
outermost div tag, which to me would make more sense to use for open /
close / destroy functions. So, I would suggest either allowing the
developer to assign an id in the creation code, or randomly assign one
somehow.
I hope this makes sense, I have hacked a solution to may specific
problem, but I think this sort of dynamic id tracking / window
tracking might prove useful in the future, similar to how it is done
in Ext.
Thanks for the great tools!
Brian