Jaxer的优缺点 [英] Pros and cons with Jaxer
问题描述
我意识到这个问题已经问过了,但是它已经过去一个月都没有体面的回应...我正在查看
脚本使用 它还可以用于处理用另一种语言(例如php,ruby)生成的文档,我认为这是不切实际的,只是有助于将现有应用程序转换为使用Jaxer. 关于我在使用Jaxer时发现的缺点,我发布了另一个问题:定义使用Jaxer时的对象 我已经很长时间没有使用Jaxer了,但是我发现了一些东西: 专业人士 缺点 总的来说,我认为Jaxer作为另一个web framewok的后处理器最有前途.使用Jaxer将所有精美的AJAX内容分层放置在现有站点的顶部将是很棒的.在服务器和客户端之间共享具有验证/页面操作逻辑的动态站点将变得容易得多.我认为我不想只使用Jaxer编写应用程序.另外,它还很年轻(而且还不成熟)-我很想知道它的结局. I realize that this question has been asked before, but it has been a month with no decent responses... I'm looking at Aptana's Jaxer and I find the concept to be very exciting. Here is a quick overview for those who are not familiar with it: Jaxer is, in their words, "the world's first true AJAX server". It is based on the Mozilla engine so scripts are written with javascript and you have complete access to the DOM on the server-side. Scripts are placed on your pages with It also can be used to process documents that are generated in another language (e.g. php, ruby) which I imagine is not practical except to help in transitioning existing applications to use Jaxer. EDIT: I've posted another question regarding a drawback I discovered while playing with Jaxer: Defining objects when using Jaxer I didn't use Jaxer for very long, but here's some things I found: Pros Cons Overall, I think Jaxer has the most promise as a postprocessor in front of another web framewok. It would be great to use Jaxer to layer all the spiffy AJAX stuff on top of an existing site. It would make it a lot easier to make a dynamic site with validation / page manipulation logic shared between server and client. I don't think I would want to write an application using only Jaxer. Also, it's young (and immature) - I'll be interested to see where it ends up. 这篇关于Jaxer的优缺点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!<script>
标记放置在页面上,并且可以指定runat
属性(ala ASP.NET)来标记脚本以在客户端,服务器(两者)上或作为"server-proxy"执行这使功能在客户端上可用,但是它们通过AJAX在服务器上执行.这也意味着您可以在服务器以及客户端上使用自己喜欢的客户端库(jQuery,Prototype).
<script>
tags and you can specify a runat
attribute (ala ASP.NET) to mark scripts for execution on the client, server, both, or as a "server-proxy" which makes the functions available on the client, but they execute on the server via AJAX. This also means that you can use your favorite client-side libraries (jQuery, Prototype) on the server as well as the client.