Export to GitHub

svgweb - issue #589

this._handler is "null or not an object error" in getScreenCTM() method of svg.js file in IE


Posted on Dec 14, 2010 by Grumpy Monkey

What steps will reproduce the problem? 1. I want the position for SVG. var svgPoint=document.documentElement.createSVGPoint(); // To get the svg point. 2. Now, i am trying to get the matrix using var matrix = document.documentElement.getScreenCTM(); //getScreenCTM()is defined in svg.js file.
3.In this method, i am getting error like this._handler is null or not an object. var msg = this._handler.sendToFlash('jsGetScreenCTM', [ this._guid ]);

What is the expected output? What do you see instead? Expect output: getScreenCTM() method should return the matrix then i will call svgPoint.matrixTransform(matrix.inverse()); to get the svg x and y coordinate. Current output: this._handler is null or not an object.

What version of the product are you using? On what operating system, browser, and version of Flash?

WinXP, IE8, Adobe flash player 10 ActiveX and Adobe flash player 10 plugin. Please provide any additional information below. Reduced test cases are always appreciated!

Comment #1

Posted on Dec 16, 2010 by Grumpy Dog

Please post an example.

I suspect you are doing SVG operations in the onload handler, instead of using onsvgload or listening to SVGLoad. Please be sure to read through the User Manual before posting issues.

Comment #2

Posted on Dec 24, 2010 by Grumpy Dog

Without a full example, I cannot troubleshoot this further. This issue will be closed soon.

Comment #3

Posted on Dec 30, 2010 by Grumpy Dog

Closing due to lack of response. If an example, or even a URL is provided, I am willing to open this issue back up.

Status: Invalid

Labels:
Type-Defect Priority-Low