Index: parent.js
===================================================================
--- parent.js	(revision 1298)
+++ parent.js	(working copy)
@@ -54,7 +54,8 @@
   // iframe element is defined.
   self.iframe.$element = $('<iframe id="modalframe-element" name="modalframe-element"'+ ($.browser.msie ? ' scrolling="yes"' : '') +'/>');
   self.iframe.$container = $('<div id="modalframe-container"/>').append(self.iframe.$element);
-  $('body').append(self.iframe.$container);
+  // add the loading class., to show the loading animation
+  $('body').append(self.iframe.$container.addClass('ui-dialog-loading'));
 
   // Open callback for the jQuery UI dialog.
   var dialogOpen = function() {
@@ -274,7 +275,8 @@
   if (isClosing) {
     return;
   }
-
+  // as the child called as, he is done loadin. Let remove the loading-animation background
+  $('#modalframe-container').removeClass("ui-dialog-loading");
   // Update the dirty forms warning on the child window.
   if (self.isObject(self.iframe.Drupal.dirtyForms)) {
     self.iframe.Drupal.dirtyForms.warning = self.dirtyFormsWarning;

