[Tclplugin-core] using policy javascript
by Taguchi Takeshi other posts by this author
Dec 1 2003 4:04AM messages near this date
RE: [Tclplugin-core] Plugin Problem
|
Re: [Tclplugin-core] using policy javascript
Hi, all.
I've try to excute following tclet using FreeBSD version plugin
and Activestate's Tcl DevKit.
this tclet is stored in localhost, so I've accessed as follwing
URL:
http://localhost/test/test.html.
test.html contains <embed> tag which link to this tclet.
BEGIN> --8<CUT HERE>8---
#!/usr/local/bin/wish8.4
policy javascript
text .text -wrap char
.text insert end [::browser::getURL http://localhost:80/index.html]
pack .text
END> ---8<CUT HERE>8---
Offcause, config/plugin.cfg has following lines:
section trustedJavascriptURLs
... snip ...
allow http://localhost:80/*
... snip ...
But I've got following error from both plugins.
BEGIB> ---8<CUT HERE>8---
An error occured during execution of this Tclet:
error
Stack trace:
error
invoked from within
"ReturnError $res"
(procedure "::safe::InterpInvokeAlias" line 31)
invoked from within
"::browser::getURL http://localhost:80/index.html"
invoked from within
".text insert end [::browser::getURL http://localhost:80/index.html]"
("uplevel" body line 4)
invoked from within
"uplevel #0 {#!/usr/local/bin/wish8.4
policy javascript
text .text -wrap char
.text insert end [::browser::getURL http://localhost:80/index.html]
pack..."
END> ---8<CUT HERE>8---
What sould I do?
Thanks.
---
T.Taguchi.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Tclplugin-core mailing list
Tclplugin-core@[...].net
https://lists.sourceforge.net/lists/listinfo/tclplugin-core
Thread:
Taguchi Takeshi
Taguchi Takeshi
|