UI/Sortable triggered from outside an iFrame

You may trigger a jQuery UI sortable within an iFrame from the parent window. But as the selectors do not select elements within another frame, you have first to select the iFrame, get its content and find the desired target by using jQuery's find method:


The sortable does work already. However, nothing seems to happen because the mouse events only bubbles up to the iFrame's document bounderies. As the context of the evaluated JavaScript code is the parent's document, we have to bind the mousemove and the mouseup events within the iFrame's context and to trigger from there the same events in the parent's context.

  mousemove: function(event) {
  mouseup: function(event) {


03.01.12  -  Die Pause ist vorüber und wir sind mit neuem Tatendrang wieder an der Arbeit. Willkommen im 2012!

23.12.11  -  Wir wünschen allen frohe Festtage und einen guten Rutsch ins Neue Jahr!