在内网里使用机器的ip地址访问页面时出错,使用机器名访问不会出错.
在内网里使用机器的ip地址访问页面时出错,使用机器名访问不会出错.出错行为下行,
"txtA05.Initialize(txtA05,sptCal);",该行是在script脚本中执行的议语句.以下为调用的页html语句.
<OBJECT id="txtA05" style="HEIGHT: 22px; WIDTH: 100%; Z-INDEX: -1" type=text/x-scriptlet viewastext><PARAM NAME="Scrollbar" VALUE="0"><PARAM NAME="URL" VALUE="../Scripts/txtDate.htm"></OBJECT>
在txtDate.htm页面中有
function public_Initialize(tmpself,sptCal)
{
if (sptCal != null)
{
tmpself.style.width = 110;
m_Calendar = sptCal;
}
else
tmpself.style.width = 88;
tmpself.style.height = 22;
m_Self = tmpself;
m_object=m_Self
//txtMonth.focus();
return 0;
}
这样一个函数.请问为什么会出现这样一个问题,该怎么解决它