Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Getting the Tag value for an attached node (Read 2033 times)
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Getting the Tag value for an attached node
Jul 17th, 2013 at 7:53pm
Print Post  
Hi,

I was using the following in code behind and it worked fine:

Session["SubProcess_Task_Prefix"] = e.Node.MasterGroup.MainItem.Tag.ToString();

I have a node that I have "attached" to another using the AttachTo method.

I now want to accomplish the same thing in Javascript, and tried the following:

Code (Javascript)
Select All
function onClientNodeClicked(sender, args)
{
	var node = args.getNode();
	var taskTag = node.getMasterGroup().getMainItem().getTag();
        alert(taskTag);
} 



The alert does not fire.
What am I doing wrong?

Thanks

Jim
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Getting the Tag value for an attached node
Reply #1 - Jul 18th, 2013 at 12:40pm
Print Post  
If this is ImageMap mode, you can call only node.getTag() from a JavaScript event handler. No other properties of the node are transferred to the client side.

Stoyan
  
Back to top
 
IP Logged
 
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Re: Getting the Tag value for an attached node
Reply #2 - Jul 18th, 2013 at 12:44pm
Print Post  
Thanks.  I'll try appending the parent shape's tag info to the node that was clicked.

Jim
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint