Archive of UserLand's first discussion group, started October 5, 1998.

Re: system.paths and guest databases

Author:Brent Simmons
Posted:2/3/2000; 11:58:52 AM
Topic:system.paths and guest databases
Msg #:14908 (In response to 14903)
Prev/Next:14907 / 14909

GDBs are a fine idea, but there should be a way to avoid calls like thisismysite.["#tools"].myScript.

If you want to call a #tools table script from within page text, just do {myScript ()}. (Add parameters as needed.)

If you want to call a script from within another script, do this:

local (pta = html.getPageTableAddress)
local (s)
s = pta^.tools^.myScript ()

There's almost never a need to make a call like thisismysite.["#tools"].myScript -- unless you're calling a script in a site other than the one that's being rendered. In that case, you should consider putting that script somewhere else, such as user.html.macros.




This page was archived on 6/13/2001; 4:54:16 PM.

© Copyright 1998-2001 UserLand Software, Inc.