Title: js error -------> message: 'nodeName' is null or not object Post by: wwjjkk on July 12, 2011, 06:23:44 PM the following code is right in firefox,but when click "testBtn" in IE will occur js error like this
message: 'nodeName' is null or not object .row 82041540 <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>jQuery EasyUI</title> <link rel="stylesheet" type="text/css" href="../themes/default/easyui.css"> <script type="text/javascript" src="../jquery-1.4.4.min.js"></script> <script type="text/javascript" src="../jquery.easyui.min.js"></script> <script> function setTarget(centerURL){ $('#layOutDiv').layout('panel','center').panel({ href:centerURL }); } </script> </head> <body > <div id="layOutDiv" class="easyui-layout" style="width:1023px;height:100%;" > <div region="north" border="false" style="height:60px;background:#B3DFDA;">north region</div> <div region="center" title="Main Title"> <a href="#" id="testBtn" onclick="setTarget('datagrid.html')" >test</a> </div> </div> </body> </html> Title: Re: js error -------> message: 'nodeName' is null or not object Post by: wwjjkk on July 12, 2011, 10:13:21 PM the part2
Title: Re: js error -------> message: 'nodeName' is null or not object Post by: stworthy on July 13, 2011, 12:06:20 AM The page(datagrid.html) to be loaded cannot contain a body tag. Try the page code below:
Code: <table id="tt"></table> Title: Re: js error -------> message: 'nodeName' is null or not object Post by: wwjjkk on July 13, 2011, 03:26:54 AM For your suggestion,no error now.Thank you.
|