reset title in Dialog
reset title in Dialog
Hi all,
just a quick question. I want to use one div (<div id="dialogWindow"></
div>) for multiple dialogs and just change the title and use ajax load
to load different content. So instead of creating
<div id="dialogWindow1" title="Add this"></div>
<div id="dialogWindow2" title="Edit that"></div>
I wish i could do
$("#dialogWindow").dialog({title:"Add this"}).dialog("open");
and then straight after that do
$("#dialogWindow").dialog({title:"Edit this"}).dialog("open");
The problem is, once the dialog Window is instantiated, i can't change
the title or the width any more...
Maybe i am doing something wrong. Please give me an idea how i should
go about this or what the best practice is.
Cheers
Phil