Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Change Zoom Client Side (Read 1411 times)
rlira
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 10
Joined: Apr 28th, 2011
Change Zoom Client Side
Dec 21st, 2011 at 6:06pm
Print Post  
Hello!

I have a select on the html with values for the user to zoom in or out the diagram without having to go to the server.

Based on my own previous questions and what I've found on online help I came up with the following:

Code
Select All
    function setZoom()
    {
	  var applet = <%= diagramView.AppletElement %>;
	  applet.setZoomFactor(100);
    }
 



However I get an error telling the the method isn't supported.

Is the method inside some other object?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Change Zoom Client Side
Reply #1 - Dec 21st, 2011 at 6:13pm
Print Post  
Hi,

applet is an instance of the DiagramApplet class. Call its getDiagramView() method to get an object of type DiagramView, which implements the ZoomFactor property.

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


I love YaBB 1G - SP1!

Posts: 10
Joined: Apr 28th, 2011
Re: Change Zoom Client Side
Reply #2 - Dec 21st, 2011 at 6:25pm
Print Post  
That is extremely helpfull!!

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