JavaScript 运行时错误: 属性"selCompany"的值为 null,未定义或不是 Function
<asp:ContentID="Content1"ContentPlaceHolderID="Formaspx"runat="server"><linkrel="Styl...
<asp:Content ID="Content1" ContentPlaceHolderID="Formaspx" runat="server">
<link rel="Stylesheet" type="text/css" href="../css/pop.css" />
<link rel="Stylesheet" type="text/css" href="../css/super_gridview.css" />
<script type="text/javascript" src="../js/JsGridView1.js"></script>
<script type="text/javascript" src="../js/JsDropDown.js"></script>
<script type="text/javascript" src="../js/poptoform.js"></script>
<script type="text/javascript" src="../js/popwin.js"></script>
<script type="text/javascript" src="../js/global.js"></script>
<script type="text/javascript" src="../js/utils.js"></script>
<script type="text/javascript" src="../js/saveform.js"></script>
<tr>
<td style="width:80px" class="redboldtext">公司名称:</td>
<td><input name="Company" id="Company" type="hidden" abs="abs" />
<span id="Company_stext" class="spantext" style="width: 90%;"></span><img id="imgSelComp" alt="" src="../imgs/popb.gif" class="pop_imgbutton" onclick="selCompany();" /></td>
</tr>
function selCompany()
{
setHTMLfocus('Company,Company_stext,txtSuo', true);
showpopwin(Company_stext, 800, 380, '../Pop/SelCompany.aspx?frame=2', '选择公司')
} 展开
<link rel="Stylesheet" type="text/css" href="../css/pop.css" />
<link rel="Stylesheet" type="text/css" href="../css/super_gridview.css" />
<script type="text/javascript" src="../js/JsGridView1.js"></script>
<script type="text/javascript" src="../js/JsDropDown.js"></script>
<script type="text/javascript" src="../js/poptoform.js"></script>
<script type="text/javascript" src="../js/popwin.js"></script>
<script type="text/javascript" src="../js/global.js"></script>
<script type="text/javascript" src="../js/utils.js"></script>
<script type="text/javascript" src="../js/saveform.js"></script>
<tr>
<td style="width:80px" class="redboldtext">公司名称:</td>
<td><input name="Company" id="Company" type="hidden" abs="abs" />
<span id="Company_stext" class="spantext" style="width: 90%;"></span><img id="imgSelComp" alt="" src="../imgs/popb.gif" class="pop_imgbutton" onclick="selCompany();" /></td>
</tr>
function selCompany()
{
setHTMLfocus('Company,Company_stext,txtSuo', true);
showpopwin(Company_stext, 800, 380, '../Pop/SelCompany.aspx?frame=2', '选择公司')
} 展开
2个回答
展开全部
js代码要放在 <script></script>标签内。js是可以在后边进行定义的,js编译有自动提前功能。
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询