Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/86.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery ajax工具包错误_Jquery_Asp.net Ajax - Fatal编程技术网

Jquery ajax工具包错误

Jquery ajax工具包错误,jquery,asp.net-ajax,Jquery,Asp.net Ajax,我在asp.net 4.0中使用以下代码: panel = $('#<%= Panel1.ClientID %>') panelBounds = CommonToolkitScripts.getBounds(panel); // error here panel=$(“#”) panelBounds=CommonToolkitScripts.getBounds(panel);//这里出错 其中panel1是asp.net面板 得到这个错误 Microsoft JScript运

我在asp.net 4.0中使用以下代码:

 panel = $('#<%= Panel1.ClientID %>')
 panelBounds = CommonToolkitScripts.getBounds(panel); // error here
panel=$(“#”)
panelBounds=CommonToolkitScripts.getBounds(panel);//这里出错
其中panel1是asp.net面板

得到这个错误

Microsoft JScript运行时错误: Sys.ArgumentException:值必须是 DOM元素。参数名称:元素

如何解决这个问题?另外,jquery中是否有其他getbounds来保存高度宽度X和Y位置?

$('xxx')
返回jquery对象,而不是DOM对象。要获取DOM引用,只需使用:

panel=document.getElementById(“”)

在jQuery中使用.position、.width、.height。

$('xxx')
返回jQuery对象,而不是DOM对象。要获取DOM引用,只需使用:

panel=document.getElementById(“”)

在jQuery中使用.position、.width、.height