Skip to forum content

Mif

— mystic javascript interface

You are not logged in. Please login or register.


Post new reply

Post new reply

Compose and post your new reply

You may use: BBCode Images Smilies

All fields labelled (Required) must be completed before the form is submitted.

Required information for guests



Captcha image. Turn pictures on to see it.
Required information
Optional post settings

Topic review (newest first)

1

Ok, I've it out myself: you have to use beforeDrop in the options.
beforeDrop: function(current,target,where) {
          var cid = current.property.id;
          var pid = target.property.id;
}

Additionally, I had a typo from the trunk in the function beforeDrop (traget instead of target), you must correct this as well !
Cheers,
Jan

2

Hi,
how is it possible to get the old parent in MifTree ? I know how to get the new parent (this.current.parentNode in onDrop()), but I don't know how to get the original parent node's name.
Thank you very much in advance,
Jan