question about This

Alan German asg at erols.com
Sat May 18 15:15:54 PDT 2002


I made a websites.["#tools"].getThis script as described.

I edited websites.samples.default to include the macro, {getThis()}.

I get "websites.["#tools"].myWeirdScript" when rendered statically (well, "previewed") and when served dynamically [which required adding a bunch of prefs to websites.["#prefs"] and pointing at the site in config.mainresponder.sites].

Frontier 8.0.7b1 on Mac OS 10.1.4


Alan

>Well well, 
>
>I did that (@ websites.["#tools"].getThis), created a web page object at
>websites.this, and
> 
>the static and the dynamic rendering gives exactly the same result :
>
><blockquote>
>    <h1>websites.this</h1>
>    <blockquote>
>        websites.["#tools"].myWeirdScript
>        </blockquote>
>
>So ?
>--
>> Oh, all right, here. Make a #tools script called getThis, as follows:
>> 
>> script.newscriptobject("return this", @tools^.myWeirdScript);
>> return myWeirdScript()
>> 
>> Make a web page object that goes:
>> 
>> {getThis()}
>> 
>> That works when rendering statically but not when rendering dynamically.
>



More information about the Frontier-Users mailing list