我正处于正在考虑构建的 Web 应用程序的研究阶段,需要一些建议来选择最适合该工作的技术。
该应用程序将大量使用将小部件拖放到页面上以及其他小部件之上。
我知道对这种事情有很好支持的两个框架是 Sproutcore 和 卡布奇诺。
还有其他我应该了解的技术可以做得更好吗?
有关我有兴趣构建的应用程序类型的示例,请参阅 http://gomockingbird.com/ (卡布奇诺应用程序)。
尽管我必须强调,我并不是在尝试构建模仿鸟克隆,但这只是我想要在应用程序中使用的拖放功能类型的一个示例。
I'm in the research phase for a web application I'm considering building and need some advice on the best choosing the best technology for the job.
The app will make heavy use of dragging and dropping widgets onto a page and on top of other widgets.
Two frameworks I'm aware of that have good support for this kind of thing are Sproutcore and Cappuccino.
Are there any others technologies I should be aware of which would do a better job?
For an example of the type of application I'm interested in building, please see http://gomockingbird.com/ (a cappuccino application).
Though I must emphasise I'm not trying to build a mockingbird clone, this is just an example of the type of drag and drop functionality I want in my app.
发布评论
评论(3)
我不能代表 Sproutcore,但 Cappuccino 具有出色且易于实现的拖放功能。例如,请参阅卡布奇诺剪贴簿教程。如果您按照这些步骤操作,您可以确定卡布奇诺对于您的应用程序是否过度。 平面图演示应用程序还演示了卡布奇诺拖放操作还有一些额外的细节,比如小部件上的旋转控制。源代码可用。就我个人而言,我认为在没有像 Cappuccino 这样的强大框架的情况下编写像 Mockingbird 这样的应用程序会令人沮丧。
I can't speak for Sproutcore but Cappuccino has great, easy to implement drag and drop. See the Cappuccino Scrapbook Tutorial for example. If you follow along the steps you can decide if Cappuccino is overkill for your application. The Floor Plan demo app also demonstrates Cappuccino drag and drop in action together with some extra niceties like rotation controls on widgets. The source code is available. Personally I think writing an app like Mockingbird without a full power framework like Cappuccino would be frustrating.
使用 Sproutcore 可以轻松实现您想要的 DnD 功能。 Sproutcore本身就是一个非常棒的框架,功能极其强大,我相信它在未来会越来越受欢迎。不过,有一点学习曲线。一旦您了解了 MVC 本质并使用框架,事情就变得非常简单......
the DnD features you want are easily achievable with Sproutcore. Sproutcore itself is a great framework that is extremely powerful, and I believe it will become increasingly popular in the future. There is a bit of a learning curve though. Once you get the MVC nature and work with the frameworks, things are pretty straightforward....
从我使用过的所有工具来看,jQuery 是迄今为止最适合这项工作的工具。它提供了易于使用的语法和几乎无穷无尽的插件,可以准确解决在网站上拖放内容的问题。
一个非常好的第一个检查基础是 jQuery UI。它支持很多功能,而且很少有需要比 jQuery UI 提供的更高级的功能的情况。如果你找到了,可能已经有一个插件涵盖了这一点。
From everything that I've used, jQuery is by far the best tool for the job. It offers an easy-to-use syntax and a nearly endless supply of plugins that solve exactly the problem of dragging and dropping things around a website.
A very good first base to check is jQuery UI. It enables a lot of functionality and very rarely is there a case that requires something more advanced than jQuery UI can offer. If you find one, there's probably a plugin already covering that too.