Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ImageMap and Client-side Events (Read 3058 times)
BrunoMuratore
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Mar 9th, 2010
ImageMap and Client-side Events
Mar 11th, 2010 at 1:59pm
Print Post  
Hello,

I have a Diagram running at ImageMap mode, and have Behavior set to Modify. So I can select, move and resize all of my diagram itens.

But if I add any Client-Side handle, like "NodeDoubleClickedScript", I can't do any modifications nor selections on my diagram anymore.

I'd like to still having the Behavior.Modify working with some client-side event handlers, is that possible?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ImageMap and Client-side Events
Reply #1 - Mar 11th, 2010 at 3:53pm
Print Post  
Apparently when the AREAs have attached click handler, the browser does not raise the mousedown/up events that the control handles to implement selection. We'll see if we can work around this. It seems Ctrl+drag and Ctrl+click still work for selection.

Stoyan
  
Back to top
 
IP Logged
 
BrunoMuratore
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Mar 9th, 2010
Re: ImageMap and Client-side Events
Reply #2 - Mar 11th, 2010 at 5:03pm
Print Post  
Thanks for the reply Stoyo,
and if you find some work around, please tell me.

I guess that somehing like this would solve the problem:

function onNodeClicked(sender, args)
{
    args.Node.select();
}

Is there some way to do this select() ?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ImageMap and Client-side Events
Reply #3 - Mar 11th, 2010 at 5:54pm
Print Post  
It is possible, however the selection can be changed only on the server side in ImageMap mode. So you would have to force a post-back from the onDoubleClicked function - is that appropriate for the action done there?

Stoyan
  
Back to top
 
IP Logged
 
BrunoMuratore
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Mar 9th, 2010
Re: ImageMap and Client-side Events
Reply #4 - Mar 11th, 2010 at 6:09pm
Print Post  
Unfortunately, server-side event like nodeCliked is not raised if I have some nodeDoubleClickedScript at client-side, so selecting the node from server-side is not a solution since whe cant invoke the click Event.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ImageMap and Client-side Events
Reply #5 - Mar 11th, 2010 at 7:25pm
Print Post  
The event won't fire in such case indeed, but you can force a post-back by calling a JavaScript function passing the ZIndex of the double-clicked node to be selected on the server. However this might not be very useful if you need the double click to be processed on the client side without refreshing the page.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint