Letractively / svgweb

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

Support external SVG file pointed to by SVG Image tag #390

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Reference an external SVG file using the Image tag.

What is the expected output? What do you see instead?
"You can have a look there : http://thomas.estier.net/lab/svgweb/tests/ 
This page embed an external svg file that executes its own javascript: 
http://thomas.estier.net/lab/svgweb/tests/time2.svg 
expected result : http://thomas.estier.net/lab/svgweb/tests/synchrotime.png 
I'd like your advices on the best to apply to dynamically include some 
external svg content into a svg file: 
As you can see, the first two flags (CH and TW) are defined as symbol 
and well displayed in any mode (FF, safari and IE via the flash mode 
or even directly in ASV). 
"The Swiss flag is pretty simple... good use of symbol. 
The Taiwanese flag use nested USE tag and is still pretty simple.. 
weight is reasonable. 
"The US Flag is displayed using the IMG tag which is not supported by 
FF nor by the flash renderer. Moreover, the flash renderer fails to 
build it and never fires the onload event: 
http://thomas.estier.net/lab/svgweb/tests/?svg.render.forceflash=true 
(Everything works fine without the flash renderer in Safari or 
directly in ASV.) 
"So why not including the US flag (http://thomas.estier.net/lab/svgweb/ 
tests/usa.svg) in the DEFS section ? 
For that prototype: no problem. But what if I will allow once the user 
to choose the countries to display, then my svg file will be huge... 
So referencing an external svg file would be great (especially with 
more complex designs of flags)."

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

Please provide any additional information below. Reduced test cases are
always appreciated!
Full details here: http://groups.google.com/group/svg-
web/browse_thread/thread/7066907d169f78bc?hl=en

Original issue reported on code.google.com by panesofg...@gmail.com on 5 Nov 2009 at 9:53

GoogleCodeExporter commented 8 years ago
I believe that SVG files using the SVG Image tag (and using the HTML Image tag) 
are
supposed to have all JavaScript disabled for security reasons. I'm surprised 
that
native browsers let this through.

Original comment by bradneub...@gmail.com on 5 Nov 2009 at 10:00

GoogleCodeExporter commented 8 years ago
i would love to see this working, that would really help me alot!

Original comment by denr...@gmail.com on 8 Dec 2009 at 11:10

GoogleCodeExporter commented 8 years ago
Duplicate of issue 381?

@denro03:
Please use starring instead to show your support/vote for a bug: emails are 
triggered
to everyone who's involved with the issue whenever a comment is added. Thanks! 
;-)

Original comment by helder.magalhaes on 9 Dec 2009 at 3:24

GoogleCodeExporter commented 8 years ago

Original comment by grick23@gmail.com on 10 Jun 2010 at 4:11