Xara Webster - Xara Web Files and HTML

Using the Xara plug-in for Netscape Navigator and Microsoft Internet Explorer, you can place Xara Web files (.web) directly on pages on the World Wide Web on the Internet.

To add a web files to a WWW page

Include the following in the HTML for the page with a correct filename and correct values for the widths and heights.
      <embed src="filename.xar"
          width=xxx height=yyy
          type="application/x-corelxara"
          pluginspage="http://www.xara.com/plugin/download.html">
      <noembed>
        <img src="alternative_image.gif"
        alt="[Alternative text]"
        width=xxx height=yyy>
      </noembed>
    
This HTML does the following :
  • Inserts the specified file (xara.web in the example) into the WWW page.
  • Sets its width and height so the page is correctly formatted before the file has been downloaded.
  • Allows for automatic download of the plug-in if it is not available.
  • Inserts details of a GIF to insert in place of the Web file if the plug-in is not available.
  • Includes text which will be inserted in place of the Web file on text-only web browsers.

Additional Parameters

ParameterValue
BASEAn absolute (i.e. complete) URL to use as the base URL for resolving any relative URLs in the drawing. It must be quoted if it contains spaces.
VIEWPORTFour decimal numbers and an optional true or false all enclosed in one set of quotes specifying the rectangle to view in millipoints and whether the aspect ratio is locked. The values are in the following order: min x, min y, max x, max y. If the aspect ratio flag is not present then it defaults to TRUE.
FILEACCESSTRUE or FALSE (FALSE to disable 'Save Graphic As...' and 'Full View'
ZOOMPANTRUE or FALSE (FALSE will disable the zoom and push tools).

Both FILEACCESS and ZOOMPAN default to TRUE though this may change so you may want to set it explicitly. As an example, this :

      <embed src=http://www.xara.com/graphics/testfile.web
      width=256
      height=256
      base="http://www.xara.com/"
      viewport="0 0 72000 72000 true"
      fileaccess=false
      zoompan=false>
sets the viewport of the file to a one inch square (72000 millipoints) from the bottom left of the page. It uses the Xara web site as a base for any relative web addresses. The zoom, push, save and full view features are disabled.

Notes

  • Before you can place .web and .xar files on the World Wide Web, you need to make a minor change to your web server to support the new file types. See Configuring a web server for Xara files
  • To be able to view .web and .xar files on the World Wide Web, you need to download the Xara plug-in from here.

_______________

© Copyright Xara Ltd: page last updated 14 February 1997
For more information, contact webmaster@xara.com.