My problem is that I do not know how to attach callback to the jquery ui dialog show.
The show is actually an option:
$( \".selector\" ).dialog({ sh
I downloaded the jquery ui dev bundle and found out that the callback is set with "complete":
$( ".selector" ).dialog({ show: 'slide', complete: function() {} });
Thanks for everyone trying to help solve this :)