Letractively / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

event error #302

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.added onload="init(evt)" to <svg>
2.load page
3.error occured. "evt does not define."

What is the expected output? What do you see instead?
error shouldn't occur.

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

Please provide any additional information below. Reduced test cases are
always appreciated!
<svg width="100%" height="100%" version="1.1" 
xmlns="http://www.w3.org/2000/svg" 
id="svgraph" 
onload="init(evt)">

init(evt)
{
.
.
if (typeof(svgDocument) == 'undefined') 
svgDocument = evt.target.ownerDocument;
.
.
.
}

Original issue reported on code.google.com by yun...@gmail.com on 17 Sep 2009 at 2:10

GoogleCodeExporter commented 8 years ago
What release are you using? If you build from source, what revision?
This was just fixed.

Original comment by grick23@gmail.com on 17 Sep 2009 at 3:28

GoogleCodeExporter commented 8 years ago
If this is an SVG OBJECT, you might not be following the right syntax for onload
events. Make sure to see the Quick Start:

http://codinginparadise.org/projects/svgweb/docs/QuickStart.html#onload

We differ slightly from the standard necessary for the internal machinery of 
SVG Web.

Original comment by bradneub...@gmail.com on 17 Sep 2009 at 4:17

GoogleCodeExporter commented 8 years ago
I had changed above code and use "addEventListener". But there existed another 
question, when i registered a function for "mousemove", I moved the mouse, the 
server seemed to react when the mouse over the elements in SVG, something like 
lines, texts..., but not a whole svg file. How can I do to implement with this 
method.

here is the code that i added,
var obj = E('svgraph');
obj.addEventListener("mousemove", mMove, false);
obj.addEventListener("mousedown", mClick, false);

Original comment by yun...@gmail.com on 17 Sep 2009 at 7:18

GoogleCodeExporter commented 8 years ago
I am using vision "svgweb-2009-09-09-Owlbear".

Original comment by yun...@gmail.com on 17 Sep 2009 at 7:26

GoogleCodeExporter commented 8 years ago
Yunfen, can you paste the full HTML + SVG file as an attachment to this bug so 
we can
isolate the issue, or create a reduced test case to help us? Thanks.

Original comment by bradneub...@gmail.com on 17 Sep 2009 at 7:30

GoogleCodeExporter commented 8 years ago
yunfen,
Both issues reported here are fixed in the latest release.  If you have a 
problem 
with the latest release please let us know. Closing as invalid.
Thanks,
Rick

Original comment by grick23@gmail.com on 17 Sep 2009 at 10:40

GoogleCodeExporter commented 8 years ago
I had solved this issue with another method. 
I added
.
.
background = document.getElementById('background');
.
.
.
<rect x="0" y="0" width="100%" height="100%" style="fill:#fff" id="background"/>
.
.
then it works as what i want.
I had try to change svg.js to the lasted version a moment ago, but it looks 
like not
solve this issue correctly.

Original comment by yun...@gmail.com on 18 Sep 2009 at 2:11