SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast Dunkel's Avatar
    Join Date
    Jun 2007
    Location
    Mexico
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    problem with ajax popup

    im having a problem with a div i show with ajax, i try to get a element inside that div but it doesn't work

    here is the site where im using it:

    www.codeteam.net/dunkel/wysiwyg

    i really need help and it look like the result showed in the div doesnt render the javascript

  2. #2
    SitePoint Enthusiast Dunkel's Avatar
    Join Date
    Jun 2007
    Location
    Mexico
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well i remove some code lines and change some stuff now the problem is easier i think, just click on the 'add image' icon and i want to drag the windows only by the title bar :S but the function im using doesn't let me to do that well i think is because the proble i said in the first post but if some one can help me i will be so glad

  3. #3
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you may need to review your drag script.

    going from your script, you could pass the id of the item you want to handle the mouse down (ie the titlebar table row).

    Code:
    function Drag(obj, handler)
    {
        if (!obj || !handler) return;
        //alert(dragme);
        //objeto = dragme;
        handler.onmousedown = function(e){
                objeto = obj;            
                mouseOffset = getMouseOffset(this,e);
                return false;
        }
    }


  4. #4
    SitePoint Enthusiast Dunkel's Avatar
    Join Date
    Jun 2007
    Location
    Mexico
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by gRoberts View Post
    you may need to review your drag script.

    going from your script, you could pass the id of the item you want to handle the mouse down (ie the titlebar table row).

    Code:
    function Drag(obj, handler)
    {
        if (!obj || !handler) return;
        //alert(dragme);
        //objeto = dragme;
        handler.onmousedown = function(e){
                objeto = obj;            
                mouseOffset = getMouseOffset(this,e);
                return false;
        }
    }
    well yes i did it but the problem is that i cant call the id of the table row because it is not loaded at the beggining and when i load the table inside the code of the table i cant call any javascript i dont know why


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •