torsdag den 21. februar 2013

Plug-in warning with embedded SVG files

Quick SVG-tip:

If you get a plug-in warning in Firefox or your Google Chrome browser immediately takes to downloading an embedded SVG file in your HTML-page, this is because you're referencing the SVG-file locally, i.e.

<embed src="../images/info_icon.svg" type="image/svg+xml" />

... as opposed to absolutely:

<embed src="http://your_web_server/studentExchange/images/info_icon.svg" type="image/svg+xml" />

If you reference the SVG file absolutely, the plug-in warning will go away.

Ingen kommentarer:

Tilføj en kommentar