Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Problems with onBoxClicked event in imagemap mode (Read 2018 times)
oakenshield
YaBB Newbies
*
Offline



Posts: 19
Location: France
Joined: Sep 21st, 2007
Problems with onBoxClicked event in imagemap mode
Feb 27th, 2008 at 12:34pm
Print Post  
Hi,

I'm encountering problems with onBoxClicked event in imagemap mode : the first time this event is raised after opening my web page, I have no problem... but the other times it is raised, the attribute e.Box is incorrect ! Indeed, e.Box doesn't correspond to the clicked box, but it is one of the other boxes of the diagram... It's quite annoying !

My code is like :

Code
Select All
protected void map_onBoxClicked( object sender, BoxMouseArgs e )
{
    Box clickedBox = e.Box;
    ...
} 



Do you have any idea about this curious issue ?

Thank you !
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problems with onBoxClicked event in imagemap m
Reply #1 - Feb 27th, 2008 at 1:12pm
Print Post  
Hi,

Try the Postback sample project. It handles BoxClicked and changes the color of the clicked box - does that work with your version of the dll?

Stoyan
  
Back to top
 
IP Logged
 
oakenshield
YaBB Newbies
*
Offline



Posts: 19
Location: France
Joined: Sep 21st, 2007
Re: Problems with onBoxClicked event in imagemap m
Reply #2 - Feb 28th, 2008 at 7:15am
Print Post  
Hi,

Okay my problem is solved : actually, I haven't put the diagram loading in a if ( !IsPostBack ) condition... That caused a little dysfunction of the onBoxClicked event...

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