473,320 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Server side JavaScript on Mac OS X?

gh
Is anyone doing server side JavaScript on Mac OS X?

What tools work well for this?

Sep 26 '07 #1
5 2610
gh@nsbasic.com wrote:
Is anyone doing server side JavaScript on Mac OS X?
What tools work well for this?
I haven't tried the Mac version of Eclipse, but I know it's available.
http://en.wikipedia.org/wiki/Eclipse_%28software%29
Sep 26 '07 #2
On Sep 26, 9:37 am, "g...@nsbasic.com" <g...@nsbasic.comwrote:
Is anyone doing server side JavaScript on Mac OS X?

What tools work well for this?
I'm doing server-side JavaScript on OS X right now :-)

Here is a list of some alive and dead projects:

http://en.wikipedia.org/wiki/Server-side_JavaScript

I've investigated the options related to the Mozilla JavaScript
implementations. There are also Microsoft .NET things you can do, I
believe.

Spidermonkey is Mozilla JavaScript implementation in C. There are
projects like Whitebeam, wxJavaScript, jsext, and several mod_js
projects.

Rhino is the Mozilla JavaScript implementation in Java. Helma is the
leading JavaScript web framework based on Rhino. There is now also
Phobos to consider.

I've decided to mess around with Rhino and Jetty which are the basis
for Helma. Using Rhino and all of Java seems like a huge jumpstart
compared to "loosing" time messing with C libraries. I'd rather use a
C implementation but that is a huge uphill battle to get to a really
complete dev environment comparable to Perl/Python/Ruby.

There is no doubt that JavaScript on the server-side is gaining some
momentum since it allows code sharing with the client. This is more
beneficial as client programs become heavier.

The opposite approach is like GWT and haXe which compile source code
down to JavaScript to send to the client.

Peter

Sep 26 '07 #3
gh
On Sep 26, 5:39 pm, Peter Michaux <petermich...@gmail.comwrote:
On Sep 26, 9:37 am, "g...@nsbasic.com" <g...@nsbasic.comwrote:
Is anyone doing server side JavaScript on Mac OS X?
What tools work well for this?

I'm doing server-side JavaScript on OS X right now :-)
Thanks, Peter - you're looking at the same things I am, for similar
reasons.

Unless I'm mistaken, there doesn't seem to be a clear answer as to
what is the best SSJS implementation for the Mac.

Have you gotten Rhino to respond to a CGI request?

Sep 27 '07 #4
On Sep 27, 5:58 am, "g...@nsbasic.com" <g...@nsbasic.comwrote:
On Sep 26, 5:39 pm, Peter Michaux <petermich...@gmail.comwrote:
On Sep 26, 9:37 am, "g...@nsbasic.com" <g...@nsbasic.comwrote:
Is anyone doing server side JavaScript on Mac OS X?
What tools work well for this?
I'm doing server-side JavaScript on OS X right now :-)

Thanks, Peter - you're looking at the same things I am, for similar
reasons.

Unless I'm mistaken, there doesn't seem to be a clear answer as to
what is the best SSJS implementation for the Mac.
There is not a clear "best" but if Rhino is the engine Helma and
Phobos are the ones to consider.

The "for the Mac" part is not so important as Mac is not a common
deployment platform. "for Unix" would be better if you don't care
about sharing with developers using Windows.

Have you gotten Rhino to respond to a CGI request?
Here is a link to the first hacking attempt I made to use Rhino, the
Jetty server, and MySQL together. This is not really a good example. I
posted it hoping it would get others started doing something better.

<URL: http://peter.michaux.ca/article/3019>

Now I'm taking some of the ideas of this example and trying to make a
"real" framework that I could use in production. It's slow going.
Certainly not as fast as downloading Rails and buying a book on it.

Peter

Sep 27 '07 #5
gh
I'm making good progress. After following Peter's recipe for Rhino
(thanks!), the following program runs just fine from the command line:

#!/usr/bin/java org.mozilla.javascript.tools.shell.Main
print("Hello World");

(I saved it as HelloWorld.js. It's the shabang that makes it a
JavaScript program, not the .js)

However, if I start it from Safari, I get the following message in the
log:
Exception in thread "main" java.lang.NoClassDefFoundError: org/mozilla/
javascript/tools/shell/Main

Any ideas?

Sep 28 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: HarveyB | last post by:
I would like to generate non-modal popup windows from ASP.Net code-behind. I have tried using Client Side scripting like "function Test(){ window.open('test.htm',_blank,...
4
by: richmond | last post by:
Please forgive me if this question is not readable for you. I definitely want to get in-depth on this. I am in front of a web application. On the server side, it has the main exe under...
12
by: Russ | last post by:
I'm interested in setting up a web page where live data can be displayed in real-time on the web page. For example: I would like to display a (nice looking) graph of some data value versus time...
6
by: Guadala Harry | last post by:
I have some client-side JavaScript that, among other things, calculates the value of a variable (myVar). On the server I have a stored procedure that needs to somehow receive as an input parameter...
8
by: Mike Fellows | last post by:
Ok, im not sure if this is at all possible and if it is how i go about it is beyond me i have a piece of client side code that requires a piece of data from the server side (an ID number in this...
6
by: den 2005 | last post by:
Hi everybody, Question 1: How do you set the values from server-side to a client-side control or how do you execute a javascript function without a button click event? Question 2: How do you...
9
by: jazzslider | last post by:
I have a headache. I've done a LOT of research lately into XForms, and I am thoroughly convinced that a good implementation of this technology would help me immensely in converting my...
4
by: Erland | last post by:
Hello everyone, I am have couple of bad concepts and would like to clear things up. As I understand ASP.NET server controls contain runat=server tag and they only run on the server. But I've...
1
by: Chris | last post by:
Hi, I have jsut started to learn ASP development and have read many articles regarding which is the best to use regarding JavaScript or VBScript. All of the learning that I have done so far has...
3
by: GVDC | last post by:
GromJS server-side JavaScript ------------------------------------------------------------------------ GromJS is server-side JavaScript implementation of Mozilla SpiderMonkey interpreter for...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.