A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Stuck on javascript Drag and Drop

  1. #1
    Member
    Join Date
    May 2007
    Location
    Philippines, Cebu City
    Posts
    31

    Stuck on javascript Drag and Drop

    Hey Guys Im almost done, editing an opensource script, but it would budge when i tried debugging it...

    it tried adding a scroll on the boxes but when i scroll it down to the last box, and drag it, there is a descripancy on the box drag coordinates.

    Im not really good on AJAX, is there anyone here that could advise me what to do..

    http://gramercyforge.com/main-dev1/_...bar/index.html

  2. #2
    Official FK nice guy and MOD 3PRIMATES's Avatar
    Join Date
    Apr 2002
    Location
    Portland Oregon
    Posts
    1,645
    I am for sure no Javascript guru, but from what I am seeing, itlokks as if you will need to add code to get the scroll height of the box and subtract that from the y coordinates. The amount of extra height you are seeing when you try to drag an item that is scrolled in directly proportional to the amount you have scolled the objects.


    Here are a couple of things to look at:
    http://www.sitepoint.com/article/pre...croll-position
    http://www.thescripts.com/forum/thread147749.html


    3P

  3. #3
    Member
    Join Date
    May 2007
    Location
    Philippines, Cebu City
    Posts
    31
    yup, your right, but i cant seem to know how to get the scroll height...
    but i think im not gonna use this, I have seen another script that do this...

    thanks anyway.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center