Drag from parent and drop into Iframe child

Drag from parent and drop into Iframe child

I want to drag elemets from the parent and then drop it into the iframe child using jquery-ui's draggable and droppable extensions. I used the following codes in parent for implementing that.
  1. $('.some-elements').draggable({
  2.       revert:true,
  3.       iframeFix: true,
  4.       drag:function(event){
  5.             //code
  6.       },
  7. });

  8. $container = $('iframe#id').contents();
  9. $container.find(".drop" ).droppable({
  10.       iframeFix: true,
  11.       greedy: true,
  12.       over:function( event, ui ){
  13.             //code
  14.       },
  15.       drop: function( event, ui ){
  16.             //code
  17.       },
  18.       out:function( event, ui ){
  19.             //code
  20.       }
  21. });
I can drag the items (but get stucked and a lag in dragging) from the prent window and can't drop it into the iframe in right place. I used the jquery-ui in both parent window and the iframe child. Dont know why i can't implement that. Help please.