简体   繁体   English

在IIS7上使用jqGrid

[英]Using jqGrid on IIS7

I have jqGrid running fine locally in VS 2008 in a ASP.NET MVC project. 我在ASP.NET MVC项目的VS 2008中让jqGrid在本地运行良好。 When I upload the project to the server (W2008, IIS7) I get an error in IE 8, Object doesn't support this property or method on the call to jqGrid. 当我将项目上载到服务器(W2008,IIS7)时,IE 8中出现错误,对象在调用jqGrid时不支持此属性或方法。 In Firebug - jqGrid is not a function. 在Firebug中-jqGrid不是函数。 All other JQuery plugins works fine (before and after the upload). 所有其他JQuery插件都可以正常工作(在上传之前和之后)。 Any ideas what could be causing this? 任何想法可能是什么原因造成的?

I found the problem was with the var pathtojsfiles in the jquery.jqGrid.js file. 我发现问题出在jquery.jqGrid.js文件中的var pathtojsfiles。 /scripts/js/ works fine locally, but on the server I had to use the full path http://servername/project/Scripts/js/ " / scripts / js /在本地可以正常运行,但是在服务器上,我必须使用完整路径http:// servername / project / Scripts / js /

I had a different problem with JQGrid on IIS7.5 where the columns were displaying but there was no data in the grid. 我在IIS7.5上的JQGrid遇到了一个不同的问题,该列正在显示,但是网格中没有数据。 Changing the app pool of the application to the classic app pool fixed this..bit of a weird one. 将应用程序的应用程序池更改为经典应用程序池可解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM