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 7806167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:26:49+00:00 2026-06-02T02:26:49+00:00

I am working with a web page, and showing it in a html editor.

  • 0

I am working with a web page, and showing it in a html editor.

What I wan to do is, allow the user to dynamically define a new div within that html page, by dragging the mouse across the page- the page is being shown in a WYSIWYG Editor like CKEditor or TinyMCE…and the div is created, and code is inserted within the html of the page for that div.

I have no restriction with ref to using a specific javascript library- I am ok with use of jquery or mootools or any other library.

How do I even start thinking of implementing such a requirement? How do I show a rectangle on the screen which is resizable, and when user is done dragging and he clicks the mouse, then a new div of the size of the rectangle is created? Can this be done using relative width/height? Or will this necessarily require fixed width/height?

Any pointers would be helpful for me…

  • 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-06-02T02:26:50+00:00Added an answer on June 2, 2026 at 2:26 am

    I’d probably use jQuery UI’s resizeable. When they click to add a div, append a new div on the page. $('<div></div>').resizable().appendTo(parent). You should prob keep a reference of everything you’ve added to the page for saving it later.

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

Sidebar

Related Questions

I'm working on a web page that saves in user information on a button
I am working on a web page that has a large number of tables.
I'm working on a web page where I have a dynamically generated table where
I am working on a web page that used a fixed width layout, centered
I'm working on a PHP dynamic web page that has a <textarea> element that
I'm working on a web page and I have this function which is showing
We are working on using a 3rd party's ActiveX control within a web page.
We've just brought up a new ASP.NET page that is showing a strange error.
I am working on a web page that has a reference to jquery and
I'm working on a web page where I'm making an AJAX call that returns

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.