可访问的网络数据网格?
我正在构建一个预算网络应用程序,主要是为了我的个人需求和自我培训。我可能会在稍后的某个时候发布它。
该界面将具有一个操作表(贷方/借方)。我计划使用 Ajax 通过单击单元格(类似于 Excel)来使表格“可编辑”。 因此,我需要:
- 显示操作
- 添加新操作
- 修改现有操作
我不知道如何使“修改”很好地降级,就像删除 JS 一样,这将是一个普通的旧表,无法修改现有条目。
将表格变成一个巨大的表格会很难看,添加链接来编辑每个操作然后使用 JS 隐藏它们似乎相当复杂......
I'm building a budget webapp, mostly for my personal needs and for the sake of self training. I may release it later at some point.
The interface will feature a table of operations (credit / debit). I was planning to use Ajax to make the table "editable" by clicking in a cell (Excel-like).
I therefore need to:
- diplay operations
- add new ones
- modify existing ones
I fail to see how to make "modify" degrade nicely, as if you remove JS, this will be a plain old table without the possibility to modify an existing entry.
Turning the table into a giant form would be ugly, adding links to edit each operation then hide them using JS seems fairly complex...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一种可能的解决方案是添加指向允许进行修改操作的其他表单的链接。这比帐户的就地编辑要流畅得多,但它仍然可以访问而不会造成负担(就像一大页表单输入一样)。
然后,您可以使用 javascript 覆盖链接,以提供您正在寻找的 ajaxy、网络应用程序功能。
One possible solution would be to add links that go to other forms that allow the modify operations to take place. This is much less fluid than in-place edits for accounts, but it still remains accessible without being burdensome (like a huge page of form inputs would be).
You can then override the links with javascript to give the ajaxy, web-app functionality you are looking for.