Comments on: Ajax Webserver Jaxer from Aptana – Javascript on the server – my criticism http://blog.as.tl/2008/11/07/ajax-webserver-jaxer-from-aptana-javascript-on-the-server-my-criticism/ un planeta con desilusión Wed, 16 Sep 2009 09:23:09 +0200 http://wordpress.org/?v=2.8.4 hourly 1 By: LnddMiles http://blog.as.tl/2008/11/07/ajax-webserver-jaxer-from-aptana-javascript-on-the-server-my-criticism/comment-page-1/#comment-336 LnddMiles Tue, 21 Jul 2009 17:11:06 +0000 http://blog.as.tl/?p=269#comment-336 Pretty cool post. I just stumbled upon your blog and wanted to say that I have really liked reading your blog posts. Anyway I’ll be subscribing to your blog and I hope you post again soon! Pretty cool post. I just stumbled upon your blog and wanted to say
that I have really liked reading your blog posts. Anyway
I’ll be subscribing to your blog and I hope you post again soon!

]]>
By: davey http://blog.as.tl/2008/11/07/ajax-webserver-jaxer-from-aptana-javascript-on-the-server-my-criticism/comment-page-1/#comment-261 davey Sun, 09 Nov 2008 06:54:04 +0000 http://blog.as.tl/?p=269#comment-261 Andreas, Caught your post on the reddit feed, I work on Jaxer at Aptana and felt I should jump in and comment on this thread. The Jaxer.Response object you were trying to access is a constructor and is documented as such in the api. So as you discovered what you needed was the instance of the Response, in our system, and a common programming practice, the instance is given a lowercase name. Next you were running into problem with HTMl and XHTML, this is a mozilla thing, and not really under the control of jaxer, you just need to use the correct doc types/file extensions. When Mozilla serializes a document It will do it in accordance with the doc/file type provided, so it can result in tags being altered, there have been ongoing discussions in the jaxer forums on this. http://forums.aptana.com/viewtopic.php?t=7123 The issue around files being accessible to the outside world, is simply because you placed the files in a location accessible as such. The default jaxer conf files contain directives to provide a way to not serve specific Js content, as unlike something like PHP, you'd generally allow js to be served by Apache. any file referenced with a path containing jaxer-include would not be served in out base config. You can change that to suit you own preferences but that is the exemplar we ship. One other major issue, which is relatively new, and wasn't in the earlier beta's is that in Jaxer you dont need to have an HTML file, you can just as easily serve and process a js only file, this is a much better fit if you want to have some controller logic, as that is more naturally placed in a 'code' file rather than a layout file like html. Now that we have the code stable and shipped, we are working on greatly improving the docs and examples, as this is a 'brave new world' and will certainly take you experience into account and make some alterations to make the things you ran into less confusing. Sorry you found creating an account too much of a burden for filing a ticket for your issues, but as we try to minimize spam on the forums and ticketing system, we do require you to have one for write access to those systems, though that doesn't prevent you from reading the forums or tickets. If you do decide to take the plunge and create an account, i look forward to helping you on the forums. cheers davey Andreas,

Caught your post on the reddit feed, I work on Jaxer at Aptana and felt I should jump in and comment on this thread.

The Jaxer.Response object you were trying to access is a constructor and is documented as such in the api. So as you discovered what you needed was the instance of the Response, in our system, and a common programming practice, the instance is given a lowercase name.

Next you were running into problem with HTMl and XHTML, this is a mozilla thing, and not really under the control of jaxer, you just need to use the correct doc types/file extensions. When Mozilla serializes a document It will do it in accordance with the doc/file type provided, so it can result in tags being altered, there have been ongoing discussions in the jaxer forums on this. http://forums.aptana.com/viewtopic.php?t=7123

The issue around files being accessible to the outside world, is simply because you placed the files in a location accessible as such. The default jaxer conf files contain directives to provide a way to not serve specific Js content, as unlike something like PHP, you’d generally allow js to be served by Apache. any file referenced with a path containing jaxer-include would not be served in out base config. You can change that to suit you own preferences but that is the exemplar we ship.

One other major issue, which is relatively new, and wasn’t in the earlier beta’s is that in Jaxer you dont need to have an HTML file, you can just as easily serve and process a js only file, this is a much better fit if you want to have some controller logic, as that is more naturally placed in a ‘code’ file rather than a layout file like html.

Now that we have the code stable and shipped, we are working on greatly improving the docs and examples, as this is a ‘brave new world’ and will certainly take you experience into account and make some alterations to make the things you ran into less confusing.

Sorry you found creating an account too much of a burden for filing a ticket for your issues, but as we try to minimize spam on the forums and ticketing system, we do require you to have one for write access to those systems, though that doesn’t prevent you from reading the forums or tickets.

If you do decide to take the plunge and create an account, i look forward to helping you on the forums.

cheers
davey

]]>
By: Ricardo J. Valle http://blog.as.tl/2008/11/07/ajax-webserver-jaxer-from-aptana-javascript-on-the-server-my-criticism/comment-page-1/#comment-260 Ricardo J. Valle Fri, 07 Nov 2008 15:10:45 +0000 http://blog.as.tl/?p=269#comment-260 In my opinion, Jaxer is a great complement for web development... It still has to evolve to represent a real framework to develop a complete web application.. But Aptana has done a great job... I'm definitely following Jaxer... Your post is great.. Thanks for talk about jsRepeater (i didn't know about it).. In my opinion, Jaxer is a great complement for web development… It still has to evolve to represent a real framework to develop a complete web application.. But Aptana has done a great job… I’m definitely following Jaxer…

Your post is great.. Thanks for talk about jsRepeater (i didn’t know about it)..

]]>
By: Ricardo J. Valle http://blog.as.tl/2008/11/07/ajax-webserver-jaxer-from-aptana-javascript-on-the-server-my-criticism/comment-page-1/#comment-259 Ricardo J. Valle Fri, 07 Nov 2008 15:05:34 +0000 http://blog.as.tl/?p=269#comment-259 To restrict outside access to your jaxer files.. yo must configure your jaxer-linux.httpd.conf # Place any files that are to be served only to Jaxer (usually to be included) # in a folder structure that has /jaxer-include/ somewhere in the hierarchy above them. # prevents processing by Jaxer before it's served back to Jaxer JaxerPassThrough on Order Deny,Allow # Jaxer will fetch these files directly from the file system, not via Apache Deny from all #this is the important line.. To restrict outside access to your jaxer files.. yo must configure your jaxer-linux.httpd.conf

# Place any files that are to be served only to Jaxer (usually to be included)
# in a folder structure that has /jaxer-include/ somewhere in the hierarchy above them.

# prevents processing by Jaxer before it’s served back to Jaxer JaxerPassThrough on
Order Deny,Allow
# Jaxer will fetch these files directly from the file system, not via Apache
Deny from all #this is the important line..

]]>
By: Andrew Ingram http://blog.as.tl/2008/11/07/ajax-webserver-jaxer-from-aptana-javascript-on-the-server-my-criticism/comment-page-1/#comment-258 Andrew Ingram Fri, 07 Nov 2008 14:10:19 +0000 http://blog.as.tl/?p=269#comment-258 I dislike Jaxer and Aptana Cloud just because they clutter up what would otherwise be a very nice IDE. I dislike Jaxer and Aptana Cloud just because they clutter up what would otherwise be a very nice IDE.

]]>
By: linkingarts http://blog.as.tl/2008/11/07/ajax-webserver-jaxer-from-aptana-javascript-on-the-server-my-criticism/comment-page-1/#comment-257 linkingarts Fri, 07 Nov 2008 05:53:31 +0000 http://blog.as.tl/?p=269#comment-257 You time wasn't wasted from my perspective since you saved me the time of going through all that! I was not to clear about what Jaxer was, but wasn't ready to dive into it yet. Sounds like an interesting idea but maybe not such a good one unless you absolutely live for javascript. Which I don't. Thx! You time wasn’t wasted from my perspective since you saved me the time of going through all that! I was not to clear about what Jaxer was, but wasn’t ready to dive into it yet. Sounds like an interesting idea but maybe not such a good one unless you absolutely live for javascript. Which I don’t. Thx!

]]>
By: Thomas http://blog.as.tl/2008/11/07/ajax-webserver-jaxer-from-aptana-javascript-on-the-server-my-criticism/comment-page-1/#comment-256 Thomas Fri, 07 Nov 2008 03:15:46 +0000 http://blog.as.tl/?p=269#comment-256 Thanks for trying this out so that I and others didn't have to. I doubted this from the outset, mainly because "you're an IDE company, what the hell are you doing trying to do here?" I'm very interested in SSJS, but I'd rather not have to learn Java to use it (which seems to be the case for Rhino). I'm not sure what the point is of manipulating the DOM server side...I suppose you could make more dynamic templates, or that it could act as a "push" templating model, but it sounds like trouble to me. For a tool like this to succeed, it will need clear separation of concerns. It will need to be far engineered than this system appears to be. Thanks for trying this out so that I and others didn’t have to. I doubted this from the outset, mainly because “you’re an IDE company, what the hell are you doing trying to do here?” I’m very interested in SSJS, but I’d rather not have to learn Java to use it (which seems to be the case for Rhino).

I’m not sure what the point is of manipulating the DOM server side…I suppose you could make more dynamic templates, or that it could act as a “push” templating model, but it sounds like trouble to me.

For a tool like this to succeed, it will need clear separation of concerns. It will need to be far engineered than this system appears to be.

]]>