wuguangbiao518 2010-08-16 17:12 采纳率: 0%
浏览 351
已采纳

ext中file控件的浏览按钮的样式 怎样改变??

ext中file控件的浏览按钮的样式 怎样改变??

  • 写回答

5条回答 默认 最新

  • lizhiyezi 2010-08-18 14:05
    关注

    修改一下代码
    this.input_file.on("change", function(e) {
    if (navigator.userAgent.indexOf('Firefox') >= 0) { //Firefox浏览器
    try {
    netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
    } catch (e) {
    alert('Unable to access local files due to browser security settings. To overcome this, follow these steps: (1) Enter "about:config" in the URL field; (2) Right click and select New->Boolean; (3) Enter "signed.applets.codebase_principal_support" (without the quotes) as a new preference name; (4) Click OK and try loading the file again.');
    }
    } else if(Ext.isIE){
    this.input_file.dom.select();
    url = document.selection.createRange().text;
    }
    var url = url || this.input_file.dom.value;
    panel.getForm().findField('fileValue').setValue(url);
    }, this);

    访问firefox about:config 添加 signed.applets.codebase_principal_support 属性 值为true

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?