Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic New v1.0.1 client events ? (Read 4165 times)
oakenshield
YaBB Newbies
*
Offline



Posts: 19
Location: France
Joined: Sep 21st, 2007
New v1.0.1 client events ?
Oct 5th, 2007 at 12:15pm
Print Post  
Hello,

I've just read that v1.0.1 had been released, it's great, but I wonder how do the new validation events work, particularly the ArrowDeleting, BoxDeleting and TableDeleting events.

Can anyone answer to this question ? I think it would be useful for the most of us. Smiley

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: New v1.0.1 client events ?
Reply #1 - Oct 5th, 2007 at 12:23pm
Print Post  
Hi,

You just return true from the JavaScript function to allow the operation, or false to prevent it.

E.g.

Code
Select All
funciton onDeletingArrow(arrow)
{
	if (confirm("Are you sure?"))
		return true;

	return false;
}
 



And of course you must assign "onDeletingArrow" to the ArrowDeletingScript property.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
oakenshield
YaBB Newbies
*
Offline



Posts: 19
Location: France
Joined: Sep 21st, 2007
Re: New v1.0.1 client events ?
Reply #2 - Oct 5th, 2007 at 12:26pm
Print Post  
That's it, thanks a lot !

[EDIT]

By the way, I suggest to use this one-line function, it's the clearest and simplest code :

Code
Select All
function onArrowDeleting( arrow )
{
    return confirm( 'Are you really sure ?' );
}
 

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: New v1.0.1 client events ?
Reply #3 - Oct 5th, 2007 at 12:51pm
Print Post  
You are a true Javascript Guru 8)
  
Back to top
 
IP Logged
 
oakenshield
YaBB Newbies
*
Offline



Posts: 19
Location: France
Joined: Sep 21st, 2007
Re: New v1.0.1 client events ?
Reply #4 - Oct 8th, 2007 at 10:48am
Print Post  
Hi,

I have a new question about these new events : onDeleting-functions works well, but I didn't succeed to use functions like onBoxMouseEnter... Any idea ? What are the arguments of such a function ?

Thanks in advance.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: New v1.0.1 client events ?
Reply #5 - Oct 8th, 2007 at 11:29am
Print Post  
Hi,

The function definition should look like

Code
Select All
function onBoxMouseEnter(box, mouseX, mouseY)
{
}
 



You can find them all in the help file: expand the "Client side reference" branch in the contents tree and open the first topic, "Client side events".

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
oakenshield
YaBB Newbies
*
Offline



Posts: 19
Location: France
Joined: Sep 21st, 2007
Re: New v1.0.1 client events ?
Reply #6 - Oct 9th, 2007 at 6:59am
Print Post  
Hello,

Ok, I found my problem : in fact, I launch the applet directly in Javascript by using MindFusion.setInnerHtml function, and I tried to assign the "BoxMouseEnter" param whereas its real name is "MouseEnterBox" !

By the way, I'm afraid I can't find the topic called "Client side events", could you give me the url ? ???

Thanks for your replies.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: New v1.0.1 client events ?
Reply #7 - Oct 9th, 2007 at 9:13am
Print Post  
Hi,

Open the "Contents" tab in the NetDiagram help file, and there expand the third book-like icon, titled "Client Side Reference". The very first topic in that branch is "Client side events".

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