jackyrong

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

magicajax是个不错的.net 下的ajax解决框架,安装配置很简单,只需要在TOOLBOX里引用magicajax for .net 2.0下那个dll文件,就可以了,多了个ajax下的pannel控件。但在使用时,右上角的英文LOADING提示一直不爽,经过在cnblogs查看,归纳了下,在.net 2.0下,可以改成其中文提示
1 首先下载ajax的源代码,然后将script这个目录放到工程文件下,在工程中让其可见
2 打开其中的AjaxCallObject.js,找到最下面的一段,如下
  function CreateWaitElement() {
                      var elem = document.getElementById('__AjaxCall_Wait');
                   if (!elem) {
                             elem = document.createElement("div");
                             elem.id = '__AjaxCall_Wait';
                             elem.style.position = 'absolute';
                             elem.style.height = 17;
                             elem.border = "1px";
                             elem.style.paddingLeft = "3px";
                             elem.style.paddingRight = "3px";
                             elem.style.fontSize = "12px";
                             elem.style.borderColor = "#990000";
                             elem.style.borderWidth = "0";
                             elem.style.borderStyle="solid";
                             elem.style.backgroundColor = "#990000";
                             elem.style.color = "#FFFFFF";
                             elem.innerHTML = "loading"
                             elem.style.visibility = 'hidden';

                        document.body.insertBefore(elem, document.body.firstChild);    
                }
                     waitElement = elem;   
                   }
                    // end wait element
  将 elem.innerHTML = "loading"改为 elem.innerHTML = "正在加载,请下载"就可以了
3  在web.config中,还要改两个地方,修改如下
    <magicAjax tracing="false" scriptPath="~/script">
            <pageStore/>
           </magicAjax>
注意是scriptPath,大小写,有朋友说是AJAX的文档写错了,呵呵。。。。
4 .net 2.0的话,web.config里写成
<xml version="1.0" encoding=gb2312" ?> 
 .net 1.1的话,还要添加 

   <globalization
                               requestEncoding="gb2312"
                                responseEncoding="gb2312"
                           />




posted on 2006-02-08 20:49  jackyrong的世界  阅读(1150)  评论(5编辑  收藏  举报