医药CRM系统开发

自已做医药CRM系统有四年了,终于可以算个产品了,努力市场化,今年重种将医药营销的理念加入CRM

导航

AutoComplete设置隐藏输入框

Posted on 2008-02-12 20:03  hhq80  阅读(370)  评论(0编辑  收藏  举报
        BehaviorID="AutoCompleteEx2"
         ServicePath="../WebService/ResinWebService.asmx"
         ServiceMethod="GetEmployeeByQuery"
         MinimumPrefixLength="1"
         CompletionInterval="1000"
         FirstRowSelected="true"
         EnableCaching="true"
         OnClientItemSelected="IAmSelected"

  
<script language="javascript">
      function GetSplitStr(srcStr,DelimiterCharacters)
      {
          var value=srcStr.split(DelimiterCharacters);
          if(value.length<2)
          {
           return "error";
          }
          else
          {
              return value[0];
          }
      }
              function IAmSelected( source, eventArgs)
              {
                  //将返回值放入到返回值框
                  //得到隐藏列
                  var TextValue=eventArgs.get_text();
                  document.getElementById("hideValue").value=GetSplitStr(TextValue,',');//拆分得到关键字.innerText
              }
  </script>