Server-side jQuery and more cool tricks with Aptana Jaxer | Aptana

Above is the contents of the HEAD element. Just the usual suspects, setting the title and some simple CSS stuff. The only interesting part is at line #3, where we load the jQuery library on the server, because we intend to do some serverside DOM manipulation before the page is sent to the client.The runat=’server’ attribute tells Jaxer to load this javascript library on the server.

Server-side jQuery and more cool tricks with Aptana Jaxer | Aptana

Yes, please. Now, where can I get an environment set up with Jaxer so I can try this?

Why do I think server-side JavaScript will only take off when ECMAScript 4.0 becomes reality and brings with it explicit class declarations, packaging, imports, etc? Those things would make it feel more like those languages Java/.net folks use everyday, and could make them sit up and take notice. Yes, it works fine now, but it’s all about perception.

Tags: ,

4 Responses to “Server-side jQuery and more cool tricks with Aptana Jaxer | Aptana”
  1. Lonnie Says:

    Will you still be able to create classes the old way too in 4.0? Will you still be able add properties to object during runtime? I haven’t had time to investigate it lately.

  2. ajm Says:

    Dynamic properties are supported in 4.0, from what I’ve read.

    As far as I can tell, ECMAScript 4.0 should be backwards compliant with 3.0 (at least their whitepaper says so), so *ideally* you wouldn’t need to change too much.

    However, it looks like you’ll be using the class keyword to create new classes of Objects, instead of just using the standard function keyword.

    I could very well be wrong, however, as the documentation’s pretty dense. Anyone?

  3. davey Says:

    You can download jaxer from the website. http://www.aptana.com/jaxer/download it is pretty easy to get going, works on mac/pc/linux, the aptana forums is a good place to ask for help or just make observations.

    It is a very interesting tool, when you get into the whole JS1.8, E4X, Serverside DOM, you really get to do a lot of cool stuff without worrying about the cross browser stuff that pull most current js projects down.

  4. ajm Says:

    @Davey:

    Thanks for posting. My big question: do I need to be running any special version of Apache or do I need any kind of server-side components (i.e. Java, some version of PHP) to get things up and going?

Leave a Reply

I'm Reading…
Search This Site

AddThis Feed Button

Need great hosting?

Categories