Re: Walter Zorn's wz_dragdrop



ADDENDUM: I've actually traced the problem to Opera's method of
rendering images. The problem is that the positions of the drop
targets are being calculated before the images are rendered, so that
once the images are loaded, the *actual* positions of the drop targets
change (are pushed down by the images) while their *calculated*
positions remain the same (and are, therefore, off). So I am using
setInterval with a function that includes all the code for calculating
the position of the drop targets - and this is in an if statement that
checks to see whether all the images on the page have been loaded. In
other words, none of the drop target position code executes until all
the images on the page have been rendered. But, alas, I have another
problem. Within this code is included the main wz_dragdrop method,
which is SET_HTML(). The way it works is that you pass the names or
id's of the elements that you want to make draggable (or droppable),
separating them by commas. But I want this list of elements to be
dynamic, so I can't just call SET_HTML(elem1, elem2, elem3). I have to
create a list (comma-separated string) and pass it into the function
using eval (yes, I'm using eval - so shoot me).

Apparently, eval is having trouble being called inside a function -
does anyone know anything about this problem?

.



Relevant Pages

  • [3/5][POWERPC] boot: use more Kbuild rules
    ... Switch to if_changed_dep for bootcc, cmd for known rebuilds without deps, ... Move clean-files to targets for if_changed files. ... # as well as the ELF images. ... $/vmlinux.bin: vmlinux FORCE ...
    (Linux-Kernel)
  • Re: Fact -- a useless concept
    ... capture images of them? ... We are not observing the atoms, molecule, and viruses directly. ... the targets themselves. ... targets depends the images and on our understanding of the theories of ...
    (talk.origins)
  • Re: Grow binary mask by pixel (to find localized background in image)
    ... I have some images with amorphous blobs in images that I call ... These targets can be non-contiguous collections of smaller ... what I'd like to do is grow the white pixels in the mask outward pixel ...
    (comp.soft-sys.matlab)
  • Re: Fact -- a useless concept
    ... Atoms, viruses, etc. are elements of theories. ... capture images of them? ... the targets themselves. ... If we discovered that our understanding of ...
    (talk.origins)
  • Re: Walter Zorns wz_dragdrop
    ... rendering images. ... the *actual* positions of the drop targets ... setInterval with a function that includes all the code for calculating ...
    (comp.lang.javascript)