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.

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

报告相同问题?

悬赏问题

  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line