Forum OpenACS Q&A: Re: How could I run tclet in a page

Collapse
Posted by Alfred Werner on
Take a look at http://www.onlinewatersolutions.com/tclet - I just got it running in under 2 minutes by copying the first example from the tclets site.

I think you're missing one or two things that are slowing you down. First - don't embed a file with a .tcl extension - but you DON'T have to add mime-types if you use the full EMBED syntax. I saved the tclet draghello.tcl file as draghello.tclet so the server wouldn't try to parse it.

Then for the Embed command:
      <EMBED
          TYPE="application/x-tcl"
          PLUGINSPAGE="http://www.tcl.tk/software/plugin/"
          FRAMEBORDER="NO"
          WIDTH="400"
          HEIGHT="400"
          SRC="http://www.onlinewatersolutions.com/draghello.tclet"
        >
        </EMBED>

Note that it has the mime-type and plugin info already available. As you can see on my site, it works fine with no changes to aolserver, just renaming one file fixed the "problem".