Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 797139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:45:15+00:00 2026-05-14T22:45:15+00:00

In general, resizable() works fine. Here is where I am getting into an issue.

  • 0

In general, resizable() works fine. Here is where I am getting into an issue.

  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)

Here is what I have tried so far (none of which have worked):

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

Any help is appreciated – thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T22:45:16+00:00Added an answer on May 14, 2026 at 10:45 pm

    Ok – I figured out what to do to solve this.

    Before saving/storing the innerHTML of the div (as described in step #2 in my question), I destroyed the ‘resizable’ state of any elements in there like this (example selector):

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

    Then I stored the innerHTML of the div into the JavaScript array.

    Next, when repopulating the div, I appended the array element and re-initialized the resizable items like so:

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

    So the issue seems to have been that storing the innerHTML which contained resizable() items did not work when re-appending/adding/rendering them, but destroying the resizables BEFORE storing the innerHTML, and then re-initializing resizable() once they were put back, it all works properly.

    So this seems to have addressed the issue – hope it helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fairly basic dialog maker for jquery that works in 2 out
I have a pretty general question here. What is the best + reliable way
General: I have a standards compliant C++ API that uses Boost libraries that I
General context : MVVM application. I have a View called JobView. Its DataContext is
General javascript question here, which would also be good to know how(if possible) to
general question is i like to build logger class that writes to single log
For general protocol message exchange, which can tolerate some packet loss. How much more
In general, I occasionally have a chain of nested macros with a few preprocessor
In general it would be great to get some sort of description of all
Status Quo For our customer we are developing some libraries and applications that run

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.