drf16571 2010-07-29 16:22
浏览 51
已采纳

XML - CSV数据输出:服务器 - 客户端交互和优化

I am planning an application that involves pulling XML data from the server side and manipulating it on the client side before allowing the user to save it as CSV.

On the server side, I will use Apache and PHP as the primary service interface, and the data source could be coming from MySQL server and/or Exist database server.

Then, on the client side, I am thinking of using ExtJS to allow users to 'limit & view' the data and further format it in that table grid. Then, ExtJS would 'POST' the formatted table grid data and POST it to a second PHP controller that simply takes the data and convert and save it to a CSV attachment.

My question is, given the stack involved, is this the best way to do this? If there is a way for ExtJS to directly output the data as a CSV file, should I use it? I mean, Javascript is not supposed to write to the HD, right?

In case any of you are wondering, why the manipulation could not be done first, I am trying to use a limited number of stored queries only (on both MySQL and Exist), to serve frequently requested and updated data.

Thank you in advance for any comments and suggestions.

  • 写回答

1条回答 默认 最新

  • douguachan2879 2010-07-30 01:09
    关注

    My question is, given the stack involved, is this the best way to do this? If there is a way for ExtJS to directly output the data as a CSV file, should I use it? I mean, Javascript is not supposed to write to the HD, right

    I don't see it as a bad way to do it based on what you are trying to achieve. I wouldn't rely on Javascript for saving, which it cannot do directly. I would definitely recommend that you handle that on one backend as it would be easier and probably more reliable.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥30 关于用python写支付宝扫码付异步通知收不到的问题
  • ¥50 vue组件中无法正确接收并处理axios请求
  • ¥15 隐藏系统界面pdf的打印、下载按钮
  • ¥15 MATLAB联合adams仿真卡死如何解决(代码模型无问题)
  • ¥15 基于pso参数优化的LightGBM分类模型
  • ¥15 安装Paddleocr时报错无法解决
  • ¥15 python中transformers可以正常下载,但是没有办法使用pipeline
  • ¥50 分布式追踪trace异常问题
  • ¥15 人在外地出差,速帮一点点
  • ¥15 如何使用canvas在图片上进行如下的标注,以下代码不起作用,如何修改