The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
Alan Schmitt <alan.schm... @polytechnique.org>
Date: Wed, 16 Nov 2011 12:14:36 +0100
Local: Wed, Nov 16 2011 6:14 am
Subject: Accessing the env
Hello, As I'm exploring JSTalk, I saw some scripts where one could find in the environment the url of the running script, or who called the script.
I'm trying these examples in the editor, such as:
var script = [jstalk env].scriptURL.path();
but I always get an error:
"Line 0, TypeError: 'undefined' is not a function (evaluating 'jstalk.env()')"
I'm clearly not understanding what the "jstalk" identifier stands for. Is it a global identifier? Is it supposed to exist in JSTalk Editor?
Thanks,
Alan
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Gus Mueller <g... @flyingmeat.com>
Date: Wed, 16 Nov 2011 13:03:50 -0800 (PST)
Local: Wed, Nov 16 2011 4:03 pm
Subject: Re: Accessing the env
On Nov 16, 3:14 am, Alan Schmitt <alan.schm... @polytechnique.org>
wrote:
> Hello,
> As I'm exploring JSTalk, I saw some scripts where one could find in the environment the url of the running script, or who called the script.
> I'm trying these examples in the editor, such as:
> var script = [jstalk env].scriptURL.path();
> but I always get an error:
> "Line 0, TypeError: 'undefined' is not a function (evaluating 'jstalk.env()')"
> I'm clearly not understanding what the "jstalk" identifier stands for. Is it a global identifier? Is it supposed to exist in JSTalk Editor?
It's a global var (and it really should be in it's own namespace). It
should be there though- what version of JSTalk Editor are you using?
-gus
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Alan Schmitt <alan.schm... @polytechnique.org>
Date: Thu, 17 Nov 2011 08:45:21 +0100
Local: Thurs, Nov 17 2011 2:45 am
Subject: Re: Accessing the env
On 16 nov. 2011, at 22:03, Gus Mueller wrote:
> On Nov 16, 3:14 am, Alan Schmitt <alan.schm
... @polytechnique.org>
> wrote:
>> I'm clearly not understanding what the "jstalk" identifier stands for. Is it a global identifier? Is it supposed to exist in JSTalk Editor?
> It's a global var (and it really should be in it's own namespace). It > should be there though- what version of JSTalk Editor are you using?
I'm using 1.0. Alan
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Gus Mueller <g... @flyingmeat.com>
Date: Thu, 17 Nov 2011 09:39:13 -0800
Local: Thurs, Nov 17 2011 12:39 pm
Subject: Re: Accessing the env
On Nov 16, 2011, at 11:45 PM, Alan Schmitt wrote:
> On 16 nov. 2011, at 22:03, Gus Mueller wrote:
>> On Nov 16, 3:14 am, Alan Schmitt <alan.schm... @polytechnique.org> >> wrote: >>> I'm clearly not understanding what the "jstalk" identifier stands for. Is it a global identifier? Is it supposed to exist in JSTalk Editor?
>> It's a global var (and it really should be in it's own namespace). It >> should be there though- what version of JSTalk Editor are you using?
> I'm using 1.0.
The latest release is 1.0.1, but you might try the latest preview build as well: http://jstalk.org/download/JSTalkPreview.zip -gus
--
August 'Gus' Mueller Flying Meat Inc. http://flyingmeat.com/
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Alan Schmitt <alan.schm... @polytechnique.org>
Date: Thu, 17 Nov 2011 18:47:24 +0100
Local: Thurs, Nov 17 2011 12:47 pm
Subject: Re: Accessing the env
On 17 nov. 2011, at 18:39, Gus Mueller wrote:
Thanks, it works. Sorry of the confusion, I had another version of JSTalk from 2009 in EagleFiler, and somehow it was that one that was launching. Thanks again,
Alan
You must
Sign in before you can post messages.
You do not have the permission required to post.