How can I do something like:
$("#some_div").dialog("doSomething");
And what that method should do is to add an extra icon in the titlebar
EDIT 1: I've tried this solution: the method gets called but I can't access the dialog object (maybe I'm doing something wrong)