Personal tools
You are here: Home cmgui Zinc Html GUIs for zinc applications
Views

History for Html GUIs for zinc applications

changed:
-
While GUIS for zinc applications are usually specified with a xul file, for very simple applications you can use a plain html file.  You still need a javascript file but your xul file can be replaced with something like::

  <html>
  <head>
  </head>
  <body  onload="init();" onunload = "//Work around bug in ATI back/forward not caching." />

  &lt;disabled script type="application/x-javascript" src="chrome://zinc/content/zinc.js" /&gt;;
  &lt;disabled script type="application/x-javascript" src="example_a1_html.js" /&gt;


  <embed id="generalplugin" height=512 width=512 type="application/x-zinc-plugin"
			 pluginspage="https://addons.mozilla.org/en-US/firefox/addon/5764">
  </embed> 

  </body>
  </html>

Unfortunately plone screws up the script tags in the text above, so you may be better to open <a href="examplea1">this file</a> and then view the source.

Note that the id for the plugin can be whatever you choose.  You will use this id from within your javascript to fetch the plugin so that the scene can be created.

Contributing to this site

Please add to the wiki any relevant information that you think might be useful to other users of this website. For example, you might like to contribute your experiences, questions and answers.

You are encouraged to contribute to this site regardless of your level of experience. Contributions are welcomed from new and regular visitors.

If you ask a question and receive an answer from a developer you should record it in the wiki. This information is extremely useful and can help other users overcome the same problem.

See how to add and edit pages for more information.