douding_1073 2011-06-15 13:46
浏览 38
已采纳

将JavaScript生成的内容发布到文件以便以CSV格式下载的建议

I have some user specific JavaScript generated content I want to post to the server to generate a CSV file that the user can then download.

I have in mind to follow the guidance under Option 3.1 of the jQuery Table to CSV Plugin but the following occurs to me…

What if 2 or more users are concurrently on the page and using the same functionality? If a generic URL is used for the CSV file (as kunalbabre suggests) is it not possible then that they end up downloading each other's data?

Presumably one should therefore generate a unique URL for the CSV? If so, what methods are best?

Any advice much appreciated.

  • 写回答

1条回答 默认 最新

  • douan7601 2011-06-15 13:47
    关注

    No. The CSV is generated dynamically in response to the request. The only file on the server is the PHP program. The CSV file doesn't exist until the browser receives the response and saves it to a file.

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

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题