Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Destination node in the linkCreating event (Read 1291 times)
Kuzya
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 45
Joined: Dec 19th, 2011
Destination node in the linkCreating event
Jun 28th, 2018 at 12:32pm
Print Post  
Hi Lyubo,

Is there a way to get to the destination node in the linkCreating event? At the moment it always seems to be a dummy object. In the Created event I get to the destination node, which is unfortunately too late.

Regards,
Kuzya
  
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: Destination node in the linkCreating event
Reply #1 - Jun 28th, 2018 at 12:48pm
Print Post  
Hi,

Try this:

Code (Javascript)
Select All
function onLinkCreating (sender, args)
{
    var link = args.getLink();
    if (!link.targetConnection)
        return;

    // the destination node
    var destination = link.targetConnection.node;

    // ...
} 



Regards,
Lyubo
  
Back to top
 
IP Logged
 
Kuzya
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 45
Joined: Dec 19th, 2011
Re: Destination node in the linkCreating event
Reply #2 - Jun 28th, 2018 at 12:53pm
Print Post  
Hi Lyubo,

thank you very much for your help
it works  Cheesy


Regards,
Kuzya
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint