【发布时间】:2014-03-26 12:07:52
【问题描述】:
有人可以帮忙吗,我遇到以下错误:
'document.Form1.imgLoading' 为 null 或不是对象 control.js,第 55 行字符 2
这是:
第 55 行:document.Form1.imgLoading.style.width=370
发件人:
function setLoading(){
var strPath = "../images/"
var strFName = "searchingText.gif"
var strSearchPath = ""
//15/2if (!document.Form1.TextBoxLangID.value == "") { //SO LANG USED
// strSearchPath = strPath + document.Form1.TextBoxLangID.value + "/brand/" + strFName
//}
//else{
// strSearchPath = strPath + "brand/" + strFName
//15/2}
//document.Form1.imgSearchingText.src = strSearchPath
document.Form1.imgLoading.style.width=370
document.Form1.imgLoading.style.height=328
document.Form1.imgLoading.style.left = 327
document.Form1.imgLoading.style.top = 220
document.Form1.imgLoading.style.zIndex=2000'
【问题讨论】:
-
继承 index.aspx 中的 javascript
-
表示您没有名为“imgLoading”的元素。
-
为什么这只是在虚拟机上运行时才会出现问题,它也在其他虚拟机上运行而没有错误。这是 IIS 问题吗?
-
无法用您提供的内容告诉您原因。
标签: javascript asp.net asp-classic controls