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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:11:44+00:00 2026-06-03T14:11:44+00:00

I want to achieve the Re-size,Clone,Drag/Drop and rotate functionality on an image selected by

  • 0

I want to achieve the Re-size,Clone,Drag/Drop and rotate functionality on an image selected by the user. I am able to do all these. Since the images coordinates are saving in database for future reference.For example if I Drag,Drop,Clone with re-sizable and save it in database, when the client log in I want show all manipulated images( Drag,Drop,Clone with re-sizable). and I want to provide him to manipulate those images and their positions by Drag,Drop,Clone with re-sizable.

I am able to store and retrieve those images, after retrieving I am unable to manipulate ( Drag,Drop,Clone with re-sizable) again.


 $(document).ready(function(){    

        counter = 0;

        //Make the element re-sizable

   $("#drag1").resizable();

 $("#drag2").resizable();

 $("#drag3").resizable();

 $("#drag4").resizable();

 $("#drag5").resizable();

 $("#drag6").resizable();

      //Make element draggable

        $(".drag").draggable({

            helper:'clone',

            containment: 'frame',

            //When first dragged

            stop:function(ev, ui) {

                var pos=$(ui.helper).offset();

                objName = "#clonediv"+counter

                $(objName).css({"left":pos.left,"top":pos.top});

                $(objName).removeClass("drag");

                //When an existiung object is dragged

                $(objName).draggable({

                    containment: 'parent',

                    stop:function(ev, ui) {

                        var pos=$(ui.helper).offset();

                    }

                });

            }

        });


        //Make element droppable

        $("#frame").droppable({

            drop: function(ev, ui) {

            var location = $('#frame').offset();
            location = ui.helper.position();

            var offsetXPos = parseInt(location.left);

            var offsetYPos = parseInt(location.top);

            var draggable = ui.draggable;

            var id=draggable.attr('id');

             $('id').resizable();

            var cssclass=draggable.attr('class');


                    if (ui.helper.attr('id').search(/drag[0-9]/) != -1){

                    counter++;

                    var element=$(ui.draggable).clone();

                    element.addClass("tempclass");

                    $(this).append(element);

                    $(".tempclass").attr("id","clonediv"+counter);

                    $("#clonediv"+counter).removeClass("tempclass");

                              draggedNumber =ui.helper.attr('id').search(/drag([0-9])/)

                    itemDragged = "dragged" + RegExp.$1
                    $("#clonediv"+counter).addClass(itemDragged);
                }

                var makediv='<div id="'+id+'" class="ui-draggable dragged3" style="left: '+offsetXPos+'px; top: '+offsetYPos+'px;" ></div>';

                 PageMethods.setValues(offsetXPos,offsetYPos,makediv);

            }
        });
    });

Any suggestion will help me to proceed further

  • 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-03T14:11:45+00:00Added an answer on June 3, 2026 at 2:11 pm
    function successHandler(results, context, methodName) {
        CustomerList = results;
        if (results != "") {
            $('#frame').empty();
            for (var i = 0; i < results.length; i++) {
                var id = results[i].id;
                $(results[i].div).droppable({ drop: handleDropEvent }).appendTo('#frame');
                if (results[i].id == results[i].tableid) {
                    $('#' + id).append($(results[i].listdiv).text() + "<br/>");
                }
                $("#" + id).draggable().resizable({
                      stop: function(event, ui) {
                       offsetXPos =ui.element[0].offsetLeft;
                       offsetYPos = ui.element[0].offsetTop;
                       clasname= results[0].classname;
                      var width=ui.helper[0].clientWidth;
                      var height=ui.helper[0].clientHeight;
                      alert("hello...!");
                      PageMethods.SetValues(offsetXPos, offsetYPos, id, clasname, width, height, setValuesSuccesshandler, Fail);
                      }});
                chkPrevDiv = results[i].id;
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've fixed image size. And I want to achieve rounded corners through html/css. Options
I want to achieve this effect: When the user focus a text area within
i want to achieve that the user can go through the slices of a
I want to achieve something relatively simple: I want to retrieve all objects from
I want to achieve the effect of a 2D image I have but a
I want to display a number on image like badge of size 30*28, which
I have this scenario where I want to share the column size among all
I want to resize the input image to a fixed size. Then I want
I want to achieve the following outcomes: Rescale the size of the bubbles such
I want to achieve the effect that is used on this Header on this

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.