浏览器中的AJAX命令行界面

时间:2022-11-21 00:13:48

I'm building a Web app to allow users to view and manipulate data, particularly numeric and geographic data. It's important that the output be clear and professional (data grids, Google Map overlays, etc.). But in terms of the user interface, I'd rather start with the flexibility of a command-line interface before building GUI-style forms.

我正在构建一个Web应用程序,允许用户查看和操作数据,特别是数字和地理数据。输出必须清晰且专业(数据网格,Google Map叠加等)。但就用户界面而言,在构建GUI样式表单之前,我宁愿从命令行界面的灵活性入手。

Can you offer any tips, tricks, or suggestions to create an AJAX-based command-line interface that can drive the rest of the interface? Pointers to existing applications would be great, too.

您能否提供任何提示,技巧或建议来创建可以驱动接口其余部分的基于AJAX的命令行界面?指向现有应用程序的指针也很棒。

The stack I'm using is Django/Python on the server side and ExtJS in the browser. If possible, I'd like to route commands to the Django shell and then just add some extra functions to output the results to a data grid, a map, etc.

我正在使用的堆栈是服务器端的Django / Python和浏览器中的ExtJS。如果可能的话,我想将命令路由到Django shell,然后添加一些额外的函数将结果输出到数据网格,地图等。

Thanks!

@Soviut Thanks for the quick response. I'm afraid I must not be making myself that clear. I want to use a shell to fire off commands on the server side that'll then feed back to output on the client side.

@Soviut感谢您的快速回复。我担心我一定不能让自己那么清楚。我想使用shell来触发服务器端的命令,然后将命令反馈到客户端的输出。

Here's an example I just found: http://shell.appspot.com/

这是我刚刚找到的一个例子:http://shell.appspot.com/

It's just that I'd like to have that not just produce text output inside the shell but also produce output that will be picked up by other AJAX listeners for data grids and maps.

只是我想让它不仅在shell中产生文本输出,而且还产生将由其他AJAX侦听器为数据网格和地图拾取的输出。

2 个解决方案

#1


goosh is a great example of a command line web application. I had nothing to do with it's creation but I have used parts of it's design for something at work.

goosh是命令行Web应用程序的一个很好的例子。我与它的创作没有任何关系,但是我已经将其部分设计用于工作中。

#2


Get Firebug for Firefox. It has consoles for monitoring the DOM and network traffic, and has a command line for making calls directly. This works especially well for testing ajax commands in frameworks like JQuery and, I assume, ExtJS. The network traffic panel is especially useful since it can see AJAX errors that often get swallowed by ajax libraries.

获取适用于Firefox的Firebug。它具有监控DOM和网络流量的控制台,并具有直接拨打电话的命令行。这对于在JQuery等框架中测试ajax命令特别有用,我认为是ExtJS。网络流量面板特别有用,因为它可以看到经常被ajax库吞噬的AJAX错误。

#1


goosh is a great example of a command line web application. I had nothing to do with it's creation but I have used parts of it's design for something at work.

goosh是命令行Web应用程序的一个很好的例子。我与它的创作没有任何关系,但是我已经将其部分设计用于工作中。

#2


Get Firebug for Firefox. It has consoles for monitoring the DOM and network traffic, and has a command line for making calls directly. This works especially well for testing ajax commands in frameworks like JQuery and, I assume, ExtJS. The network traffic panel is especially useful since it can see AJAX errors that often get swallowed by ajax libraries.

获取适用于Firefox的Firebug。它具有监控DOM和网络流量的控制台,并具有直接拨打电话的命令行。这对于在JQuery等框架中测试ajax命令特别有用,我认为是ExtJS。网络流量面板特别有用,因为它可以看到经常被ajax库吞噬的AJAX错误。