• 示例3:论坛主题搜索


        发现下面这个例子跟我正在实现的东西很相似。我正在做的FAQ系统就想引导用户靠自己找到问题的答案,而不是忽略掉已经解决的问题直接去点击“我要问问题”按钮。FAQ(Frequently Asked Questions)要真正起到它的作用。

    Sample 3: Forums Subject Search

    The last example we'll look at will be the modification of an existing app. I heard this idea first proposed by Josh Ledgard as a feature being played with for the MSDN forums. The goal of it is to try to help users with questions help themselves, as well as to curb the number of duplicate posts. Basically, when a user goes to ask a new question in the forum, he or she enters a subject and a question, all too often not doing a search to see whether the question was already asked and answered. Enter AJAX. After the user finishes entering the subject (and tabs out of the field), we'll asynchronously search the forums, based on the subject, and non-obtrusively present the results to the user. Sometimes the results will be helpful, sometimes not.

    To accomplish this, we'll modify the asp.NETPRO Reader's Choice Award for Best Forum Application, CommunityServer. The downloadable samples doesn't include the code in this section (or the forums), but you can learn more about CommunityServer at http://communityserver.org/ and apply the following code snippets to it.

    英文引用自:MSDN ASP.NET Spiced: AJAX


    示例3:论坛主题搜索

        我们要看的最后一个示例是一个现有应用程序的修改。我第一次听到这个想法是Josh Ledgard设想在MSDN forums里 添加一个新特性,目的是尝试让用户自己找到问题的答案,来阻止以前那样贴很多重复的帖子。基本上用户要在论坛里提问的时候,他/她直接键入主题和问题,而 不去搜索这个问题是不是已经有人问过并且已经有了答复。输入AJAX,当用户输入完这个主题以后(或者切换到这个输入区外),我们基于这个主题异步地搜索论坛,然后不冒失的把结果呈现给用户。有时候这些结果会有帮助,当然也有时候不会。

        要实现这个,我们要修改asp.NETPRO Reader's Choice Award for Best Forum Application, CommunityServer。可下载的示例中不包含着一部分(或这个论坛)的代码,但是你能在http://communityserver.org/学到关于CommunityServer的知识,并且把下面这些代码片断应用进去。

    翻译: Ja
  • 相关阅读:
    设计模式——桥接模式
    设计模式——工厂模式
    挖个坑
    Java 线程应用
    vtep-ctl + add-ls+ bind-ls +br-get-external-id
    ovs vtep 源码Tunnel_Ip
    vtep-ctl del-ls ls0
    vtep-ctl unbind-ls
    virt manager
    ironic 裸金属 failed to mount sysroot
  • 原文地址:https://www.cnblogs.com/Ja/p/282636.html
Copyright © 2020-2023  润新知