JQuery UI sortable, each sortable div contains an iFrame that updates in FF3 but not in IE7

I am using jQuery UI Sortable in a DIV that contains DIV tags. Inside each of the sortable DIVs is an iFrame with src = to another site.

In IE7, sorting works as expected. If you switched to iFrame, iFrame retains its current state.

However, in FF3, when sorting stops and the iFrame reloads with the specified source url. This is not what I want.

I tried using both DIV / DIVs and UL / LI, and both behave the same.

+3
source share
1 answer

FF (, -, Safari 3.5/Win Opera 9.5/Win): iframes DOM. (jQuery sortable node DOM ).

. https://bugzilla.mozilla.org/show_bug.cgi?id=254144.

, , - , iframes, "" jQuery . :

+-----------------------+
| Drag Me | iframe here |
+---------+             |
          |             |
          +-------------+

"", iframe. Drop , iframe , DOM. , YMMV.

+2

Source: https://habr.com/ru/post/1706205/


All Articles