I am having an issue with getting the chart to zoom in and out. I have been following the example in the UserGuide for building a tree diagram using XML. I then looked at other examples on how to zoom in and out and i created the 4 buttons one for in, out, 1.0, and Fit. Basically whats happening is the diagram is being render correctly and looks great, but when I hit one of the zoom buttons all it does is reload the page nothing else happens.
And yup I have the the GoWeb.js file in the same folder that the application is being tested in. The scrolling of the image using the arrows works fine no problems with that and Im guessing thats in the same GoWeb.js. So the page is seeing it.
OK
I think I found the issue.
I changed the ID of the view in the button deffiition to
ctl00$ContentPlaceHolder1$MyView
instead of ‘MyView’ and it worked for zooming in.
Here is the definitions I just created appear to be working.
<button id=“ZoomInButton” onclick=“goZoom(‘in’,‘ctl00$ContentPlaceHolder1$MyView’)” type=“button”>In</button>
<button id=“ZoomOutButton” onclick=“goZoom(‘out’,‘ctl00$ContentPlaceHolder1$MyView’)” type=“button”>Out</button>
<button id=“ZoomNormalButton” onclick=“goZoom(‘1.0’,‘ctl00$ContentPlaceHolder1$MyView’)” type=“button”>1.0</button>
<button id=“ZoomFitButton” onclick=“goZoom(‘fit’,‘ctl00$ContentPlaceHolder1$MyView’)” type=“button”>Fit</button>