CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2010
    Posts
    3

    Question Need help with Drag and Drop script

    Hello!
    I'm using Walter Zorn's Drag & Drop script on my page: http://www.accentironwork.com/railings%20design.html
    The script works just fine. But there is a problem when the visitors are trying to print out their design. All "draggble" elements are getting shifted in relation to the rest of the page (try to move "draggble" elements, and then go to Print Preview to see what happens).
    The page layout is centered on the screen:
    #maincontainer{margin: 0 auto; /*Center container on page*/}
    Drag & Drop script recalculates positions of elements from the Top Left corner.
    If I change margin to left, than everything prints out just fine, without shifting.
    I'd like to keep my page layout centered on the screen and I know nothing about Java programming. How to make necessary changes to the Drag & Drop script to achieve proper page printing?
    Drag & Drop script path:
    http://www.accentironwork.com/Drag-Drop/wz_dragdrop.js
    CCS path:
    http://www.accentironwork.com/css/globalstyles.css

    Thanks in advance!

  2. #2
    Join Date
    May 2006
    Location
    UK
    Posts
    4,473

    Re: Need help with Drag and Drop script

    This looks like javascript and not Java - try the client side scripting forum.
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

Tags for this Thread

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

Featured