Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Prototype without browser?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
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:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Rüdiger Plantiko  
View profile  
 More options Apr 20 2010, 2:47 pm
From: Rüdiger Plantiko <ruediger.plant...@astrotexte.ch>
Date: Tue, 20 Apr 2010 11:47:37 -0700 (PDT)
Local: Tues, Apr 20 2010 2:47 pm
Subject: [Prototype-core] Prototype without browser?
Dear Prototype core team,

I like the syntactic idioms of Prototype, particularly the Enumerable
module. The methods really help to improve the readability of
JavaScript code.

Right now, I am writing a little program in JavaScript which is
thought for running in batch mode, i.e. from the command line.

I wonder whether it's possible to separate the UI part of Prototype -
connected with the browser - from its syntactic core. How much effort
would it be? When running

cscript prototype.js

on my windows machine, I get error because a "window" object is
missing. I hoped that replacing the initial "Browser" and
"BrowserFeatures" declarations by hashs with all properties set to
"false" could solve the problem. But there are more places where the
browser environment is expected.

How difficult would it be to separate the "core" layer from the
"browser-dependent" layer in Prototype? I don't know the mechanism how
the final Prototype.js is built from its code parts: Would it be
possible to build another product from these parts which only covers
the Prototype core?

Thanks for an answer,
Rüdiger

--
You received this message because you are subscribed to the Google Groups "Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to prototype-core-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
toxcct  
View profile   Translate to Translated (View Original)
 More options Apr 21 2010, 4:46 am
From: toxcct <tox...@gmail.com>
Date: Wed, 21 Apr 2010 10:46:02 +0200
Local: Wed, Apr 21 2010 4:46 am
Subject: Re: [Prototype-core] Prototype without browser?

Hi Rüdiger,

Are you sure you are using "Javascript" precisely ?
Aren't you using some kind of ECMAScript instead ?

because Javascript by definition is Browser oriented, and IMO, it doesn't
really make sense to try to use Prototype outside of a browser then.

Regards,

2010/4/20 Rüdiger Plantiko <ruediger.plant...@astrotexte.ch>

--
You received this message because you are subscribed to the Google Groups "Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to prototype-core-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tobie Langel  
View profile   Translate to Translated (View Original)
 More options Apr 21 2010, 6:41 am
From: Tobie Langel <tobie.lan...@gmail.com>
Date: Wed, 21 Apr 2010 03:41:57 -0700 (PDT)
Local: Wed, Apr 21 2010 6:41 am
Subject: [Prototype-core] Re: Prototype without browser?
Hi, Rüdiger.

This is definitely planned for 2.0.

toxcct, you  might want of have a look at a number of really exciting
server side JS frameworks (node.js, narwhal, ringo, etc.).

Best,

Tobie

--
You received this message because you are subscribed to the Google Groups "Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to prototype-core-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rüdiger Plantiko  
View profile   Translate to Translated (View Original)
 More options Apr 21 2010, 7:51 am
From: Rüdiger Plantiko <ruediger.plant...@astrotexte.ch>
Date: Wed, 21 Apr 2010 04:51:16 -0700 (PDT)
Local: Wed, Apr 21 2010 7:51 am
Subject: [Prototype-core] Re: Prototype without browser?
Hi Tobie and toxcct,

> This is definitely planned for 2.0.

Good news! Looking forward to this then. Probably the best way would
be to adapt the build process: Building two different files from the
sources - one for the batch / server side context, and another one for
the browser context.  This variant would be better than having one
"prototype.js" with lots of conditionals that have to be executed at
runtime.

>really exciting server side JS frameworks (node.js, narwhal, ringo, etc.).

I will have a look at those, thanks for the info.

@toxcct:

>Are you sure you are using "Javascript" precisely ?
>Aren't you using some kind of ECMAScript instead ?

Well, my scripts are executed with the same library  (%systemroot%
\system32\jscript.dll)  that is used by the Internet Explorer for
script execution. The only difference is that there is no browser
around and hence no global "window" object, no "document" etc.
Instead, i execute the JS files with the "cscript" command.

You ask which kind of ECMAScript I am using. For me, it is of no
practical use to classify the capabilities of this jscript.dll. It is
sufficient that it understands the ECMA script standard as a subset of
its language scope. Indeed, I can execute my script in Google Chrome,
in Firefox and in IE, as it only uses the ECMAScript core which is
understood by all these user agents. The point is that I don't want to
run the script in a browser. I want to start it as a batch file with
no UI. And the question was about whether I still could use the nice
language enhancements provided by prototype even in this context. This
has been answered by Tobie now.

Thanks and regards,
Rüdiger

--
You received this message because you are subscribed to the Google Groups "Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to prototype-core-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mislav Marohnić  
View profile  
 More options Apr 21 2010, 9:48 am
From: Mislav Marohnić <mislav.maroh...@gmail.com>
Date: Wed, 21 Apr 2010 15:48:41 +0200
Local: Wed, Apr 21 2010 9:48 am
Subject: Re: [Prototype-core] Re: Prototype without browser?

JavaScript "without a browser" is becoming increasingly more popular (and
important) in the industry, so I definitely look forward to seeing language
extensions extracted in a separate module/library. If you take a look at the
current source tree now, you'll see effort being made in this direction.

--
You received this message because you are subscribed to the Google Groups "Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to prototype-core-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nlloyds  
View profile  
 More options Apr 22 2010, 9:35 am
From: nlloyds <nllo...@gmail.com>
Date: Thu, 22 Apr 2010 06:35:27 -0700 (PDT)
Local: Thurs, Apr 22 2010 9:35 am
Subject: [Prototype-core] Re: Prototype without browser?
Rüdiger

Check out Prototype ASP: http://nlsmith.com/projects/prototype-asp/,
http://github.com/smith/prototype-asp/tree/asp. It works in cscript as
well as other places. It's just a quick hack and is not meant to be
it's own product or anything, but it works reliably on jscript and
other non-browser platforms.

Nathan

--
You received this message because you are subscribed to the Google Groups "Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to prototype-core-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nlloyds  
View profile  
 More options Apr 22 2010, 9:42 am
From: nlloyds <nllo...@gmail.com>
Date: Thu, 22 Apr 2010 06:42:34 -0700 (PDT)
Local: Thurs, Apr 22 2010 9:42 am
Subject: [Prototype-core] Re: Prototype without browser?

On Apr 21, 6:51 am, Rüdiger Plantiko <ruediger.plant...@astrotexte.ch>
wrote:

> >Are you sure you are using "Javascript" precisely ?
> >Aren't you using some kind of ECMAScript instead ?

> Well, my scripts are executed with the same library  (%systemroot%
> \system32\jscript.dll)  that is used by the Internet Explorer for
> script execution. The only difference is that there is no browser
> around and hence no global "window" object, no "document" etc.
> Instead, i execute the JS files with the "cscript" command.

You're right. JScript a decently compliant engine, thought not fast.
It does have the advantage of being installed on every Windows
machine. Classic ASP also uses the same engine. There's a few extra
APIs for ActiveXObjects and basic shell and window alerts (WScript.)

Nathan

--
You received this message because you are subscribed to the Google Groups "Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to prototype-core-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Foster  
View profile  
 More options Apr 22 2010, 10:54 am
From: Matt Foster <mattfoste...@gmail.com>
Date: Thu, 22 Apr 2010 07:54:57 -0700 (PDT)
Local: Thurs, Apr 22 2010 10:54 am
Subject: [Prototype-core] Re: Prototype without browser?
I've used the Enumerable methods and the core stuff like Function.bind
and Class.create in whatever ECMA flavor the Adobe programs
use(Indesign & Photoshop) so I'm sure it's possible to leverage some
things from prototype in your program.

http://www.adobe.com/devnet/photoshop/pdfs/JavaScriptReferenceGuide.pdf

--

http://positionabsolute.net

On Apr 22, 9:42 am, nlloyds <nllo...@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to prototype-core-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rüdiger Plantiko  
View profile   Translate to Translated (View Original)
 More options Apr 22 2010, 11:37 am
From: Rüdiger Plantiko <ruediger.plant...@astrotexte.ch>
Date: Thu, 22 Apr 2010 08:37:11 -0700 (PDT)
Local: Thurs, Apr 22 2010 11:37 am
Subject: [Prototype-core] Re: Prototype without browser?
Hello Nathan and Matt,

thanks for your suggestions and interesting links. I will study them
and probably
use one of your proposals...

Thanks and regards,
Rüdiger

--
You received this message because you are subscribed to the Google Groups "Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to prototype-core-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nlloyds  
View profile  
 More options Apr 23 2010, 9:09 am
From: nlloyds <nllo...@gmail.com>
Date: Fri, 23 Apr 2010 06:09:59 -0700 (PDT)
Local: Fri, Apr 23 2010 9:09 am
Subject: [Prototype-core] Re: Prototype without browser?
On Apr 22, 9:54 am, Matt Foster <mattfoste...@gmail.com> wrote:

> I've used the Enumerable methods and the core stuff like Function.bind
> and Class.create in whatever ECMA flavor the Adobe programs
> use(Indesign & Photoshop) so I'm sure it's possible to leverage some
> things from prototype in your program.

This may be using some ES5 variant. Many new methods in this new
version of ECMAScript are either inspired by or present in Prototype:

http://www.ecma-international.org/publications/files/drafts/tc39-2009...
http://github.com/280north/narwhal/blob/master/engines/default/lib/gl...

Nathan

--
You received this message because you are subscribed to the Google Groups "Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to prototype-core-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »