对象不支持属性或方法'igReportViewer' [英] Object doesn't support property or method 'igReportViewer'

查看:128
本文介绍了对象不支持属性或方法'igReportViewer'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在尝试使用HTML5 infragistic报表查看器。但我在java脚本中遇到此错误对象不支持属性或方法'igReportViewer'在此行$(#viewer)。igReportViewer

请告诉我如何解决此问题。以下是我的代码





Hi,

I am trying to use HTML5 infragistic report viewer. But I get this error in java script "Object doesn't support property or method 'igReportViewer'" at this line $("#viewer").igReportViewer
Kindly tell me how to fix this issue. following is my code


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        
        <script src="Scripts/modernizr.min.js" type="text/javascript"></script>  

        <link href="Styles/CSS/structure/jquery-ui-1.8.17.custom.css" rel="stylesheet" type="text/css"/>
       
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
        <script src="Scripts/jquery-ui.min.js" type="text/javascript"></script>
        <script src="Scripts/js/infragistics.loader.js" type="text/javascript"></script>


             <title>test</title>
    </head>

    <body>
        <!-- Report Viewer Loader -->
        <script type="text/javascript">
            var serviceEndpoint = "Services/ReportService.svc/ajaxAddress/";
            $.ig.loader({
                cssPath: 'Styles',
                scriptPath: 'Scripts',
                resources: 'igReportViewer',
                ready: function () {
                    
                    $(function () {
                        $("#viewer").igReportViewer({
                            renderSettings: {
                                definitionUri: "ReportLibrary;component/testReport.igr",
                                serviceEndpointUri: "Services/ReportService.svc/ajaxAddress/"
                            },
                            width: 720,
                            height: 520,
                            pageFit: 'fitToWidth'
                        });
                    });
                }
            });
        </script>
        <div id="viewer" >
        loading . . .
        </div>
    </body>
</html>

推荐答案

(#viewer)。igReportViewer

亲切告诉我如何解决这个问题。以下是我的代码





("#viewer").igReportViewer
Kindly tell me how to fix this issue. following is my code


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        
        <script src="Scripts/modernizr.min.js" type="text/javascript"></script>  

        <link href="Styles/CSS/structure/jquery-ui-1.8.17.custom.css" rel="stylesheet" type="text/css"/>
       
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
        <script src="Scripts/jquery-ui.min.js" type="text/javascript"></script>
        <script src="Scripts/js/infragistics.loader.js" type="text/javascript"></script>


             <title>test</title>
    </head>

    <body>
        <!-- Report Viewer Loader -->
        <script type="text/javascript">
            var serviceEndpoint = "Services/ReportService.svc/ajaxAddress/";


.ig.loader({
cssPath:'Styles',
scriptPath :'Scripts',
资源:'igReportViewer',
ready:function(){
.ig.loader({ cssPath: 'Styles', scriptPath: 'Scripts', resources: 'igReportViewer', ready: function () {


(function(){
(function () {


这篇关于对象不支持属性或方法'igReportViewer'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆