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

Collapse
Posted by David Ghost on
Thanks Richard,
Here is my test.tcl code

button .b -text "Hello"
pack .b

As far as I know, with inline tcl syntax
I cannot run above .tcl file.

Anyway thanks a lot Richard

Collapse
Posted by Alfred Werner on
What if you try the following:

save the tclet source in a file with a distinct extension - say tcx

add the tcx file extension with mime-type of application/x-tclet in the config.tcl file.

The browser should only care about the mime header, not your local file extension.

Collapse
Posted by Alfred Werner on
sorry - I think it is application/x-tcl
Collapse
Posted by David Ghost on
Yes, Alfred I had tried as you told, but it failed.
With the very same IE browser & tcl plugin, I am able to run demo scripts provided at www.scriptics.com/software/plugins.
Only with my aolserver where my test version of dotLRN resides makes troubles.
Still I'm waiting the right answer

Thanks a lot Alfred