使用 ASPX(面包屑路径)跟踪页面的改进?
我以前做过类似的事情,但我想找出最有效的方法。我的场景如下: 用户可以搜索我们的网站。根据搜索结果,他们可以对数据进行一些改进。有不同细化的类别。每个细化都由一个复选框表示。改进可能如下所示:
设备: 垫圈, 烘干机、 洗碗机, 微波炉
房间: 家庭, 用餐, 卧室, 游戏
每个精炼都有自己的 ID。复选框不是 ASPX 控件。盒子的 HTML 正在服务器端构建。我可能想改变这一点,但不确定这是否重要。
当页面被发回时,我正在为其构建面包屑并预选(检查)已检查的改进。面包屑是不可点击的。但是,我需要跟踪以前检查过的内容。所以面包屑应该看起来像这样:
洗衣机,烘干机>卧室>微波炉
每个“>”代表新的细化搜索。用户可以取消选择细化并从面包屑列表中删除该项目。假设他们取消选中“烘干机”和“卧室:
洗衣机”>“卧室”。微波炉
我需要一些关于如何跟踪面包屑的改进和构建/重建的建议。蒂亚!
I have done stuff like this before, but I want to figure out the most efficient way of doing this. There is my scenario:
A user can search our site. Depending on that search they have a number of refinements they can make to the data. There are categories for different refinements. Each refinement is represented by a checkbox. The refinements might look like this:
Appliances:
Washer,
Dryer,
Dishwasher,
Microwave
Rooms:
Family,
Dining,
Bedroom,
Game
Each refinement has its own ID. The checkboxes are not ASPX controls. The HTML for the boxes is being built server side. I may want to change that, but not sure if it is going to matter.
When the page is posted back to, I am building the breadcrumbs for it and preselecting (checking) the refinements that were checked. The breadcrumbs are not clickable. However, I need to keep track of what may have been previously checked. So the breadcrumbs should look like this:
Washer, Dryer > Bedroom > Microwave
Each ">" represents a new refinement search. The user can unselect a refinement a remove the item from the breadcrumb list. So let's say they uncheck Dryer and Bedroom:
Washer > Microwave
I need some suggestions on how I should keep track of the refinements and building / rebuilding of the crumbs. TIA!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为面包屑不是这个应用程序的正确比喻。面包屑是一种导航辅助工具,用于显示某人到达所在位置的路径,例如:
这意味着用户通过主页进入网站,单击“我的帐户”链接等。
该用户应该能够单击面包屑路径中的“个人资料”即可返回个人资料页面。
我认为这个应用程序真正想要的是一个购物篮比喻,其中所有细化都添加到列表中,然后该列表可以显示在页面顶部的“我的细化”区域中。通过复选框选择列表中的项目以实现添加/删除功能的奖励积分。
一般来说,一旦有了一个既定的隐喻,你就不应该将其用于其他用途,因为用户已经习惯了标准的做事方式。 (我记得遇到过用于列表选择器的滑块,这非常令人困惑。开发人员应该坚持使用经过验证的真实下拉列表)
我正在制作这个社区维基,因为我实际上还没有回答这个问题。
I don't think breadcrumbs are the right metaphor for this application. Breadcrumbs are a navigational aid, to show the path someone took to get where they are, such as:
Meaning that the user entered the site via the home page, clicked the My Account link, etc. etc. etc.
This user should be able to get back to the Profile page by clicking "Profile" in the breadcrumb trail.
I think what you really want for this application is a Shopping Basket metaphor, where all refinements are added to a list, and then the list can be displayed at the top of the page in a "My Refinements" area. Bonus points for making the items in the list selectable via CheckBoxes for an add/remove functionality.
Generally, once there's an established metaphor, you shouldn't use it for something else, as users get used to a standard way of doing things. ( I recall coming across sliders being used for a list selector and it was very confusing. Dev. should have stuck with the tried and true Dropdownlist)
I'm making this Community Wiki as I haven't actually answered the question.
好吧,我最终使用了一些隐藏的输入控件来跟踪复选框状态。
Well, i ended up using some hidden input controls to keep track of checkbox states.