In Brent Welchs book, second edition, he discusses some security
policies which come with the plugin, specifically the Browser policy.
Along with the browser policy there was suppossed to be a function
called browser::sourceURL which would let me source a script from a web
server. In 2.0 of the plugin this policy is gone, and along with it
any mention of that function. I am trying to source code off of a web
server. I have tried to use
eval [browser::getURL "my url"]
and while it does't crash, it doesn't work either. The eval probbably
collapses something it shouldn't have.
Can anyone suggest a way that I can acomplish this with the 2.0 plugin ?
Thanks,
Rob Smith
Note that because Brent's book went to the publisher
before we went final with the 2.0 plugin, he could
not possibly get every details in. I think it is
still mostly applicable and certainly very useful
(not even counting the rest of non plugin related
material).
--
http://www.demailly.com/~dl/
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
Hi Everyone...In Brent Welchs book, second edition, he discusses some security
policies which come with the plugin, specifically the Browser policy.
Along with the browser policy there was suppossed to be a function
called browser::sourceURL which would let me source a script from a web
server. In 2.0 of the plugin this policy is gone, and along with it
any mention of that function. I am trying to source code off of a web
server. I have tried to use
eval [browser::getURL "my url"]
and while it does't crash, it doesn't work either. The eval probbably
collapses something it shouldn't have.
http://sunscript.sun.com/plugin/v2/source.html
Note that it uses the "home policy". You are probably trying to source
a URL located at some site other than the hosting site. For this, you
will
have to configure and use other policies that allow network connections,
such as "outside policy". More information is available in the man
pages,
that come with the tclplugin.
Hope that helps.
-- Hemang Lavana mailto:lav...@cbl.ncsu.edu http://www.cbl.ncsu.edu/~lavana Off: 2300 CBL, Research IV, Centennial Campus, |Res: 1707-4, Crest Rd., NCSU, Box 7550, Raleigh, NC 27695-7550. | Raleigh, NC 27606. Ph: (919) 515-9677, Fax: (919) 513-1895 | Ph: (919) 821-0913
I haven't checked to see if this particular situation is covered, but
Brent has a great set of errata sheets for his book on the WWW page.
You might check to see if he has replacement information for that
aspect.
--
<URL:mailto:lvi...@cas.org> Quote: In heaven, there is no panic,
<*> O- <URL:http://www.teraform.com/%7Elvirden/> only planning.
Unless explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.