Mozilla Firefox中的问题 [英] Problem in Mozilla firefox

查看:82
本文介绍了Mozilla Firefox中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有javascript函数,在所有浏览器中工作正常接受[Mozill Firefox]

努力工作但没有得到任何合格的结果



主要问题在



if(event.srcElement.getAttribute(ISDate)==)



主要问题是从getattribute找到[ISDate]



寻找你的帮助



I have javascript function which working fine in all browser accept [Mozill Firefox]
work hard on it but not get any eligible result

main problem In

if (event.srcElement.getAttribute("ISDate") == "")

the main problem is to find [ISDate] from getattribute

looking for ur help

function Calendar_DateClick(event, DateId, SelectedColor, SelectedFontColor, DateBGColor, DateFontColor, AMColor, AMFontColor, PMColor, PMFontColor, UnAvailableColor, UnAvailableFontColor) {

    if (event.srcElement.getAttribute("ISDate") == "")
        return
    var i
    switch (event.srcElement.getAttribute("ISDate")) {
        case "D":
            {
                if (typeof (objPrevDateTD) == 'object') {
                    objPrevDateTD.style.backgroundColor = DateBGColor
                    objPrevDateTD.style.color = DateFontColor
                }

                event.srcElement.style.backgroundColor = SelectedColor;
                event.srcElement.style.color = SelectedFontColor;
                objPrevDateTD = event.srcElement
                if (event.srcElement.getAttribute("AM") == "true") {
                }
                $('#myModal').modal();
                break;

            }

    }
}









谢谢





thanks

推荐答案

' #myModal')模态();
break ;

}

}
}
('#myModal').modal(); break; } } }









谢谢





thanks


srcElement is only available in IE. In all other browsers it is target:

var target = event.target || event.srcElement;

if(target.onclick == null) { // shorter than getAttribute('onclick')
    //...
    document.mainForm.submit();
}


这篇关于Mozilla Firefox中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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