Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TclPlugin browser::sourceURL

0 views
Skip to first unread message

Robert Smtih

unread,
Aug 25, 1998, 3:00:00 AM8/25/98
to
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.

Can anyone suggest a way that I can acomplish this with the 2.0 plugin ?

Thanks,

Rob Smith

Laurent Demailly

unread,
Aug 25, 1998, 3:00:00 AM8/25/98
to r...@world.std.com
Initially, sourceURL should indeed just have been
a utility proc that basically uplevel/eval the result
of a getURL. Because of very weird thread/events/...
interactions with Netscape, it is not that simple.
A working solution (work around might be more appropriate)
is on http://sunscript.sun.com/plugin/v2/source.html

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

Hemang Lavana

unread,
Aug 25, 1998, 3:00:00 AM8/25/98
to rsm...@siichi.com
Robert Smtih wrote:
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.

An example of remote sourcing is available at:

 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

lvi...@cas.org

unread,
Aug 26, 1998, 3:00:00 AM8/26/98
to

According to Robert Smtih <rsm...@siichi.com>:
: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

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.

0 new messages