English 中文(简体)
j 可靠问题
原标题:jQuery Resizable() UI Problem

总的来说,可执行() 工作罚款。 在这方面,我正在讨论一个问题。

  1. I have a div that contains some resizable items that work fine (resizable() applied to them at some point).
  2. user can save items for later view (the innerHTML of the div gets saved into a JavaScript array, then div gets cleared so they can do something else)
  3. When items get placed back onto div (from array) -- I do a $( #divname ).append(arrayname[i]); -- items are no longer resizable (although visually they have the resizable classes/handle on them)

这里是我迄今为止所尝试的(其中没有工作):

  1. After append() line, I re-initialize the resizable -- $( #items ).resizable();
  2. After append() line, remove then re-add resizable -- $( #items ).resizable( destroy ).resizable();

感谢任何帮助。

最佳回答

- 我在座标出什么。

在保留/存储innerRUS of the div (as specified in step #2 in my question)之前,我销毁了其中任何内容的可再生状态(example selectedor/em>):

$( #divid .resizable_items ).resizable( destroy );

<><><><><>><>>>><>>>>>> 我将散射线的内/超中储存到 Java的平面阵列中。

其次,在重新播种四肢时,我附上了阵容要素,并重新开始像这样的可再生物品:

$( #divid ).append(arrayname[i]);
$( #divid .resizable_items ).resizable();

因此,问题似乎在于,储存含有可再利用(可)项的内层超文本在重新使用/处理/交付时并不可行,而是销毁储存内层超文本的可再利用物质,然后在收回可再生(可再生)物品后重新启用,所有物品都是妥善运作的。

因此,. Seems/strong> to have addressed the issue - Hope it helps.

问题回答

暂无回答




相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...