Dismiss
InnovationQ will be updated on Sunday, Oct. 22, from 10am ET - noon. You may experience brief service interruptions during that time.
Browse Prior Art Database

Method and System for Detecting Presence of a Scalable Vector Graphics (SVG) Plug-in in a Browser

IP.com Disclosure Number: IPCOM000202409D
Publication Date: 2010-Dec-15
Document File: 2 page(s) / 104K

Publishing Venue

The IP.com Prior Art Database

Abstract

A method and system for detecting presence of a Scalable Vector Graphics (SVG) plug-in in a browser is disclosed. If the SVG plug-in is detected in the browser, SVG content is transmitted to the browser.

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 75% of the total text.

Page 01 of 2

Method and System for Detecting Presence of a Scalable Vector Graphics (SVG) Plug-in in a Browser

Disclosed is a method and system for detecting presence of a Scalable Vector Graphics (SVG) plug-in in a browser. If the SVG plug-in is detected in the browser, SVG content is transmitted to the browser. However, if the SVG plug-in is not detected in the browser, alternate content is transmitted to the browser.

The method and system disclosed herein initially loads static SVG content using an tag as illustrated in the figure. Alternatively, any other suitable selector may be used based on the framework. If the static SVG content successfully loads, a getSVGViewerVersion() method is invoked. On successful execution of the getSVGViewerVersion() method,a sequence control variable is changed to a non-null value to indicate that the normal execution sequence may be followed.

There may be a case when the static SVG content may fail to load or the getSVGViewerVersion() may return an exception. In such a case, the sequence control variable is retained as null. Here, the failure to load the static SVG content indicates that the SVG plug-in may not be present. An alternate possibility may be that the SVG plug-in is present but has returned an invalid value for the getSVGViewerVersion() method.

The method and system disclosed herein resolves this ambiguity by invoking a call to a method within the static SVG content. If the call is executed, then it may be determined that the...