Sunday, January 25, 2009

The Internet browser Embedded Objects

Users can view non-HTML contents by embeded objects. For example to watch a flash animation, listen to a RealAudio audio, watch a QuickTime movie or many other non-HTML documents or media entities, a browser need to take advantage of embedded objects. It's possible to check client browser to see if required embedded object is installed or not.

Internet Explorer uses Microsoft ActiveX components to load other applications and support embedded objects and FireFox uses the Netscape Plugin Application Programming Interface (NPAPI) system. FireFox does not officially support ActiveX. (Mozilla and ActiveX)

Which properties keep the name of available embedded objects in the Internet browser?

The document.embeds[] array contains a list of all the objects embedded in a document which are applied by the <OBECT> tag for IE and the <EMBED> tag in Mozilla.

The document.applets[] works for <APPLET> tag in the web page codes and contains all the applets embedded in a document as Java Applet although <OBJECT> and <EMBED> are recommended instead of using <APPLET>.

The navigator.plugins[] array contains all the plug-ins that Mozilla supports like Adobe Acrobat.

The navigator.mimeTypes[] array contains all the MIME types supported by Mozilla. MIME is Multipurpose Internet Mail Extension, It related to the file types that Mozilla can understand and display. MIME is a component for communication protocols (HTTP) and also it defines methods for transferring binary data in ASCII text format as a message and more.

The navigator.plugins[] and navigator.mimeTypes[] arrays in IE are null cuz IE uses ActiveX to implement embedded objects instead of plug-ins, then in IE document.embeds[] array detects embedded contents.
Share/Bookmark

No comments: