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
Try to use open event of dialog:
open
$( ".selector" ).dialog({ open: function(event, ui) { ... } });