在IE 10的jQuery工具提示不工作 [英] jquery tool tip doesnt work in ie 10

查看:157
本文介绍了在IE 10的jQuery工具提示不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下code的片上产生IE 10的错误。
它运作良好,在所有其他浏览器。

的JavaScript

$(函数(){
    VAR杜= 1000;
    VAR提示;
    (文档)$ .tooltip({
        显示: {
            功效:'了slideDown
        },
        隐藏:{
            功效:'爆炸',
            件:20,
            持续时间:杜,
            延迟:杜/ 100
        },
        轨道:真实,
        项目:H5,
        内容:函数(){
            提示= $(本).siblings('提示');
            返回tooltip.html();
        }
    });
});

.aspx的

< D​​IV CLASS =工具提示的风格=显示:无>
    < D​​IV的风格=文本对齐:中心;字体重量:大胆;>
        <%#的eval(姓名)%>
        < BR />
    < / DIV>
    <表ALIGN =中心>
        &所述; TR>
            &所述; TD>
                < D​​IV的风格=FONT-重量:正常>来电和LT; / DIV>
            < / TD>
        < / TR>
    < /表>
< / DIV>

有没有人有任何解决方案或变通解决我可以尝试?

它抛出的错误是:


  

JavaScript的运行时错误:对象不支持属性或方法提示



解决方案

对于任何人面临同样的问题
更改Jquery的参考1.10.3最新版本解决了这个问题。

 <脚本类型=文/ JavaScript的SRC =htt​​p://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min .js文件>< / SCRIPT>

The following piece of code is generating an error on IE 10 . It works well on all other browsers .

JavaScript

$(function () {
    var du = 1000;
    var tooltip;
    $(document).tooltip({
        show: {
            effect: 'slideDown'
        },
        hide: {
            effect: 'explode',
            pieces: 20,
            duration: du,
            delay: du / 100
        },
        track: true,
        items: "h5",
        content: function () {
            tooltip = $(this).siblings('.tooltip');
            return tooltip.html();
        }
    });
});

Aspx

<div class="tooltip" style="display: none">
    <div style="text-align: center; font-weight: bold;">
        <%# Eval( "Name") %>
        <br />
    </div>
    <table align="center">
        <tr>
            <td>
                <div style="font-weight: normal">Calls</div>
            </td>
        </tr>
    </table>
</div>

Does anyone have any solution or work around I could try ?

The error it throws is :

JavaScript runtime error: Object doesn't support property or method 'tooltip'

解决方案

For anyone facing the same problem Changing the Jquery reference to the latest version 1.10.3 resolved the problem.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>

这篇关于在IE 10的jQuery工具提示不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆