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
server side jquery
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
  15 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
 
Sharique  
View profile  
 More options Dec 15 2007, 1:22 pm
From: Sharique <saf...@gmail.com>
Date: Sat, 15 Dec 2007 10:22:47 -0800 (PST)
Local: Sat, Dec 15 2007 1:22 pm
Subject: server side jquery
Is it possible to run excute jquery on server side.
--
Sharique

 
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.
Fabien Meghazi  
View profile  
 More options Dec 15 2007, 5:04 pm
From: "Fabien Meghazi" <a...@amigrave.com>
Date: Sat, 15 Dec 2007 23:04:20 +0100
Local: Sat, Dec 15 2007 5:04 pm
Subject: Re: [jQuery] server side jquery
On 12/15/07, Sharique <saf...@gmail.com> wrote:

> Is it possible to run excute jquery on server side.

No, it is not possible.
Unfortunately, John Resig made a mistake while designing jQuery. He
assumed that the window object is always defined. This is too bad
because we can't run it server side in order to manipulate the
server's DOM (Drivers Of Machine)

Try to run jquery in spidermonkey and you will see for youself :

amigrave@gw /tmp/jquery [22]$ smjs jquery-1.2.1.js
jquery-1.2.1.js:17: ReferenceError: window is not defined

John, if you listen, could you add support for server side AJAX
(Active Java And X-Ray) ?

--
Fabien Meghazi

Website: http://www.amigrave.com
Email: a...@amigrave.com
IM: amigr...@gmail.com


 
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.
Josh Nathanson  
View profile  
 More options Dec 15 2007, 5:49 pm
From: "Josh Nathanson" <joshnathan...@gmail.com>
Date: Sat, 15 Dec 2007 14:49:05 -0800
Local: Sat, Dec 15 2007 5:49 pm
Subject: Re: [jQuery] Re: server side jquery

> No, it is not possible.
> Unfortunately, John Resig made a mistake while designing jQuery. He
> assumed that the window object is always defined.

I don't think that was a mistake. I'm sure if John had intended for jQuery
to be used on the server, he would have designed it as such.

There are lots of server side solutions out there, as that end of the
business has been worked on for many years.  However client side libraries
are relatively new and quite lacking IMHO, up until jQuery that is.

Imagine the bloat if jQuery were also able to run server side.  I would bet
that would take a lot of new functionality, although it's hard for me to
even picture how that would work.

-- Josh


 
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.
Alexandre Plennevaux  
View profile  
 More options Dec 15 2007, 5:51 pm
From: "Alexandre Plennevaux" <alexan...@lab-au.com>
Date: Sat, 15 Dec 2007 23:51:16 +0100
Local: Sat, Dec 15 2007 5:51 pm
Subject: Re: [jQuery] Re: server side jquery

hey Sharique,

joke apart, jquery is javascript: javascript is clientside, meaning it runs
in the browser visiting the website. Serverside languages are PHP, ASP, ruby
on rails etc... These "serve" the data to the visitor's browser software,
and that data can be html, xml, css or javascript and jquery included. but
it cannot RUN or EXECUTE it.

hope this helps clarify,

Alexandre

On Dec 15, 2007 11:04 PM, Fabien Meghazi <a...@amigrave.com> wrote:

--
Alexandre Plennevaux
LAb[au]

http://www.lab-au.com


 
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.
Kelvin Luck  
View profile  
 More options Dec 16 2007, 5:35 am
From: Kelvin Luck <kel...@kelvinluck.com>
Date: Sun, 16 Dec 2007 10:35:54 +0000
Local: Sun, Dec 16 2007 5:35 am
Subject: Re: [jQuery] server side jquery

Sharique wrote:
> Is it possible to run excute jquery on server side.

http://ejohn.org/blog/bringing-the-browser-to-the-server/

 
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.
Fabien Meghazi  
View profile  
 More options Dec 16 2007, 11:09 am
From: "Fabien Meghazi" <a...@amigrave.com>
Date: Sun, 16 Dec 2007 17:09:49 +0100
Local: Sun, Dec 16 2007 11:09 am
Subject: Re: [jQuery] Re: server side jquery

> > No, it is not possible.
> > Unfortunately, John Resig made a mistake while designing jQuery. He
> > assumed that the window object is always defined.

> I don't think that was a mistake. I'm sure if John had intended for jQuery
> to be used on the server, he would have designed it as such.

I guess I forgot to put some smileys around !

--
Fabien Meghazi

Website: http://www.amigrave.com
Email: a...@amigrave.com
IM: amigr...@gmail.com


 
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.
Alexandre Plennevaux  
View profile  
 More options Dec 16 2007, 12:48 pm
From: "Alexandre Plennevaux" <alexan...@lab-au.com>
Date: Sun, 16 Dec 2007 18:48:13 +0100
Local: Sun, Dec 16 2007 12:48 pm
Subject: Re: [jQuery] Re: server side jquery

darn, that's quite amazing! my bad! it is possible after all! I guess that
the true answer to Sheride is actually: to do what?

On Dec 16, 2007 11:35 AM, Kelvin Luck <kel...@kelvinluck.com> wrote:

> Sharique wrote:
> > Is it possible to run excute jquery on server side.

> http://ejohn.org/blog/bringing-the-browser-to-the-server/

--
Alexandre Plennevaux
LAb[au]

http://www.lab-au.com


 
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.
Josh Nathanson  
View profile  
 More options Dec 16 2007, 1:33 pm
From: "Josh Nathanson" <joshnathan...@gmail.com>
Date: Sun, 16 Dec 2007 10:33:20 -0800
Local: Sun, Dec 16 2007 1:33 pm
Subject: Re: [jQuery] Re: server side jquery
Well, I feel silly now.  Maybe jQuery + env.js + Rhino can come to my house
and do some laundry as well.

-- Josh


 
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.
Fabien Meghazi  
View profile  
 More options Dec 16 2007, 4:09 pm
From: "Fabien Meghazi" <a...@amigrave.com>
Date: Sun, 16 Dec 2007 22:09:53 +0100
Local: Sun, Dec 16 2007 4:09 pm
Subject: Re: [jQuery] Re: server side jquery

> Well, I feel silly now.  Maybe jQuery + env.js + Rhino can come to my house
> and do some laundry as well.

Well of course talking about jQuery server side is pointless.
Now there's a context where it comes interesting.
Something I would really like to see is a ruby binding to libxml with
a jQuery like structure.
When I have to deal with xml in a server side app, I can't stop
telling me that such a module would be great.

--
Fabien Meghazi

Website: http://www.amigrave.com
Email: a...@amigrave.com
IM: amigr...@gmail.com


 
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.
Michael Geary  
View profile  
 More options Dec 16 2007, 8:57 pm
From: "Michael Geary" <M...@Geary.com>
Date: Sun, 16 Dec 2007 17:57:16 -0800
Local: Sun, Dec 16 2007 8:57 pm
Subject: RE: [jQuery] Re: server side jquery

> Well of course talking about jQuery server side is pointless.
> Now there's a context where it comes interesting.
> Something I would really like to see is a ruby binding to
> libxml with a jQuery like structure.
> When I have to deal with xml in a server side app, I can't
> stop telling me that such a module would be great.

I wonder if Hpricot might be a place to start? It's made for HTML, not XML,
though...

http://code.whytheluckystiff.net/hpricot/

-Mike


 
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.
Sharique  
View profile  
 More options Dec 17 2007, 2:29 pm
From: Sharique <saf...@gmail.com>
Date: Mon, 17 Dec 2007 11:29:50 -0800 (PST)
Local: Mon, Dec 17 2007 2:29 pm
Subject: Re: server side jquery

On Dec 16, 3:51 am, "Alexandre Plennevaux" <alexan...@lab-au.com>
wrote:

> hey Sharique,

> joke apart, jquery is javascript: javascript is clientside, meaning it runs
> in the browser visiting the website. Serverside languages are PHP, ASP, ruby
> on rails etc... These "serve" the data to the visitor's browser software,
> and that data can be html, xml, css or javascript and jquery included. but
> it cannot RUN or EXECUTE it.

In classic Asp we use server side Java/Vb Script.


 
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.
Bil Corry  
View profile  
 More options Dec 17 2007, 2:47 pm
From: Bil Corry <b...@corry.biz>
Date: Mon, 17 Dec 2007 13:47:17 -0600
Local: Mon, Dec 17 2007 2:47 pm
Subject: Re: [jQuery] Re: server side jquery
Michael Geary wrote on 12/16/2007 7:57 PM:

> I wonder if Hpricot might be a place to start? It's made for HTML, not XML,
> though...

> http://code.whytheluckystiff.net/hpricot/

AppJet allows you to host webapps for free, with the app written entirely in JavaScript:

-----
With AppJet, you write your entire app using JavaScript, including the server logic and database. This simplifies the process of building a web app, because it lets you do everything in just one language. JavaScript is easy to learn, but still pulls its weight for advanced uses. In fact, the AppJet site itself and the AppJet framework are written in server-side JavaScript.

<http://appjet.com/about/features>
------

I haven't tried it, but it looks interesting.  It was mentioned here, which is how I found out about it:

<http://www.gnucitizen.org/blog/the-next-line-of-defence-web20-you-mus...>

- Bil


 
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.
Fabien Meghazi  
View profile  
 More options Dec 18 2007, 11:54 am
From: "Fabien Meghazi" <a...@amigrave.com>
Date: Tue, 18 Dec 2007 17:54:01 +0100
Local: Tues, Dec 18 2007 11:54 am
Subject: Re: [jQuery] Re: server side jquery

> > on rails etc... These "serve" the data to the visitor's browser software,
> > and that data can be html, xml, css or javascript and jquery included. but
> > it cannot RUN or EXECUTE it.

> In classic Asp we use server side Java/Vb Script.

Of course you can run any language server side using a virtual machine
an interpreter or even compiled code. You can use asp/jscript which is
the microsoft implementation of ecmascript and it can run server side.

But your question is : "Is it possible to run excute jquery on server side."

The answer could be "yes" :

Using any javascript interpreter, you can run the jquery.js file. But
it will throw an error because it won't find the window object.
Why is that ?
Because jquery is a wonderful javascript library which give you the
possibility to manipulate a web page DOM in the context of a browser
(read client side). So the usage of jquery in a server side context is
pointless.

Maybe it would help if you describe what you want to do.

You could start an instance of firefox (remote mode) on the server and
you can control the borwser from your application.
I would be interesting to know what you want to do exactly.

--
Fabien Meghazi

Website: http://www.amigrave.com
Email: a...@amigrave.com
IM: amigr...@gmail.com


 
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.
GeekFreak  
View profile  
 More options Dec 26 2007, 2:14 pm
From: GeekFreak <geekfr...@gmail.com>
Date: Wed, 26 Dec 2007 11:14:43 -0800 (PST)
Local: Wed, Dec 26 2007 2:14 pm
Subject: Re: server side jquery
For you folks that want to run jQuery serverside, here's a little
teaser for a product we're releasing early in the new year, that will
allow you run jQuery server side (and much more) , we currently have
most of the jquery unit tests working, and hope that the wonderfully
active jQuery community will assist in completing those tests (some
not being relevant for that environement)

Essentially we have a page serving product that provides a full DOM
that can be manipulated by jQuery (or any JS) prior to the page being
served to the client. We think  it's pretty cool.

if you want to get a ping from me when it is avail you can send me a
pm to davey at the domain aptana.com

cheers
davey


 
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.
GeekFreak  
View profile  
 More options Dec 26 2007, 2:15 pm
From: GeekFreak <geekfr...@gmail.com>
Date: Wed, 26 Dec 2007 11:15:42 -0800 (PST)
Local: Wed, Dec 26 2007 2:15 pm
Subject: Re: server side jquery
forgot to mention. it is open source and avail under the GPL

On Dec 26, 11:14 am, GeekFreak <geekfr...@gmail.com> wrote:


 
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 »