博客
关于我
magicajax中的中文提示问题
阅读量:132 次
发布时间:2019-02-26

本文共 1284 字,大约阅读时间需要 4 分钟。

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"
                           />

转载地址:http://uzsf.baihongyu.com/

你可能感兴趣的文章
No static resource favicon.ico.
查看>>
no such file or directory AndroidManifest.xml
查看>>
No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
查看>>
NO.23 ZenTaoPHP目录结构
查看>>
no1
查看>>
NO32 网络层次及OSI7层模型--TCP三次握手四次断开--子网划分
查看>>
NOAA(美国海洋和大气管理局)气象数据获取与POI点数据获取
查看>>
NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata
查看>>
node
查看>>
node exporter完整版
查看>>
node HelloWorld入门篇
查看>>
Node JS: < 一> 初识Node JS
查看>>
Node JS: < 二> Node JS例子解析
查看>>
Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime(93)解决
查看>>
Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime(72)
查看>>
Node 裁切图片的方法
查看>>
node+express+mysql 实现登陆注册
查看>>
Node+Express连接mysql实现增删改查
查看>>
node, nvm, npm,pnpm,以前简单的前端环境为什么越来越复杂
查看>>
Node-RED中Button按钮组件和TextInput文字输入组件的使用
查看>>