problem using the jquery function draggable and selectable

Discussion in 'jQuery' started by No User Name, Jan 12, 2012.

  1. #1
    here is the project that I am currently building: http://www.arbamedia.com/test
    If you go to the Dyer dhe dritare in the menu you will see a door and a window, you can drag them into the plan but they are not selectable! I found out that this is a known problem! but is there any tweak that I can do to my code to make those elements selectable + draggable after I put them into the plan?

    Thank you for your help.
     
    No User Name, Jan 12, 2012 IP
  2. Basti

    Basti Active Member

    Messages:
    625
    Likes Received:
    6
    Best Answers:
    3
    Trophy Points:
    90
    #2
    What you mean with selected? Seems to work fine over here. Upon first dragg they get outside the map. Then you dragg these from outside the map into map and move them around, rotate them
     
    Basti, Jan 14, 2012 IP
  3. No User Name

    No User Name Member

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    26
    #3
    its working now, I upgraded the jquery to the latest version. but there is a problem with IE 9 now. I cant select those elements after I have dragged them! in IE9 it doest work. in FF and Chrome it works. when I click on it activates and it shows the rotate and move options and when I click somewhere else it deactivates and hiddes those options. but in IE it just simply doesnt work.. I am trying all day to make it work but it doesnt... even the selectable function in jqueryui doesnt work on my IE9 browser..
     
    No User Name, Jan 14, 2012 IP
  4. Basti

    Basti Active Member

    Messages:
    625
    Likes Received:
    6
    Best Answers:
    3
    Trophy Points:
    90
    #4
    Got no time now to check, but you could chromes error log.
    Right click "investigate element" ( element untersuchen )
    On that window, the last tab "console", it will show you some hints if there is a coding error
     
    Basti, Jan 14, 2012 IP
  5. No User Name

    No User Name Member

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    26
    #5
    no it doesnt show any error, but it is ok never mind I am not going to use selectable, I wrote this:
    $("#clonediv1").click(function () {
    $("p").toggle();
    });

    but yet I am not satisfied because it shows/hides the options when I click on the image, but that is not what I want! I want the options to show when I click on the image, and to hide them when I click somewhere else in the page.. any idea?


    * its ok I solved the problem by doing this:

    $(objName).click(function () {
    $("p", this).show();return false;
    });
    $(document).click(function () {
    $("p").hide();
    });
     
    Last edited: Jan 14, 2012
    No User Name, Jan 14, 2012 IP