Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Need Help Urgent (Read 3211 times)
yangyu
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Oct 25th, 2008
Need Help Urgent
Oct 25th, 2008 at 6:32pm
Print Post  
We recently started to try this product and is using it in ImageMap mode.

I am struggling accessing the getMousePosition() from the client side event of the MouseEnter for a node.

i checked the dom and this method doesn't exist under ImageMap mode.

however the onNodeClick event is fired from onClick(event) of the area in the imageMap. Is there anyway to extend this onclick event? or perhaps anyway to access the html attribute of the areas in the imageMap.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need Help Urgent
Reply #1 - Oct 27th, 2008 at 10:06am
Print Post  
Hi,

We haven't implemented the mindfusion.diagramming API in JavaScript yet and the methods you can see in the applet's reference are available only in JavaApplet mode. The only event methods you can use in ImageMap mode are getZIndex and getTag, which should be enough to let you identify the node.

Stoyan
  
Back to top
 
IP Logged
 
yangyu
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Oct 25th, 2008
Re: Need Help Urgent
Reply #2 - Oct 27th, 2008 at 10:28pm
Print Post  
is there anyway to override the generatehtml function?

i need access to the area elements to add custom javascripts.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need Help Urgent
Reply #3 - Oct 28th, 2008 at 8:06am
Print Post  
We'll add some new event to let you do that.
  
Back to top
 
IP Logged
 
yangyu
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Oct 25th, 2008
Re: Need Help Urgent
Reply #4 - Nov 5th, 2008 at 10:58pm
Print Post  
do you know when you will be able to have a new release with these chanages?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need Help Urgent
Reply #5 - Nov 6th, 2008 at 9:50am
Print Post  
We'll try to add this in the next 2-3 days.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need Help Urgent
Reply #6 - Nov 9th, 2008 at 2:07pm
Print Post  
https://mindfusion.eu/_temp/netdiag_attr.zip

This version adds a new event called CreatingAreaElement. It lets you define additional attributes for the AREA html element created for an item. Its arguments object contains the following two properties:

DiagramItem Item;
StringDictionary Attributes;

and you could handle it like this:

if (e.Item is ShapeNode)
     e.Attributes["onclick"] = "alert('test')";

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint