jQWidgets Forums

jQuery UI Widgets Forums Grid Grid responding with "Exception"

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Grid responding with "Exception" #48485

    bobby.wallace
    Participant

    I get:

    Exception was thrown at line 7, column 2203 in https://localhost:44307/Scripts/jqwidgets/jqxbuttons.js
    
    0x80070005 - JavaScript runtime error: Access is denied.
    
    If there is a handler for this exception, the program may be safely continued.
    

    The code looks like:

        <script type="text/javascript">
            $(document).ready(function () {
                // prepare the data
                var get_request_url = "Home/GetTicketRequestsForPerformer?PerformerID=22";
                var source =
                    {
                        datatype: "json",
                        datafields: [
                             { name: 'RequestID', type: 'number' },
                             { name: 'ShowYear', type: 'number' },
                             { name: 'ShowDate', type: 'date' },
                             { name: 'PerformerID', type: 'number' },
                             { name: 'PerformerName', type: 'number' },
                             { name: 'SectionDescription', type: 'string' },
                             { name: 'TotalSeatCount', type: 'number' }
                        ],
                        id: 'RequestID',
                        url: get_request_url
                    };
                var dataAdapter = new $.jqx.dataAdapter(source);
    
                // initialize jqxGrid
                $("#jqxgrid").jqxGrid(
                    {
                        width: '100%',
                        source: dataAdapter,
                        columns: [
                            { text: "Action", datafield: "RequestID" },
                            { text: "Section", datafield: "SectionDescription" },
                            { text: "Seats Request", datafield: "TotalSeatCount" }
                        ]
                    });
            });
        </script>
    
    <body class='default'>
        <div id='jqxWidget' style="font-size: 13px; font-family: Verdana; float: left;">
            <div id="jqxgrid"></div>
        </div>
    </body>

    “Home/GetTicketRequestsForPerformer?PerformerID=22” responds with:

    [{"RequestID":2049,"ShowYear":2014,"ShowDate":"\/Date(1393912800000)\/","PerformerID":22,"PerformerName":"Brad Paisley","SectionDescription":"East Field, West Field","TotalSeatCount":6},{"RequestID":2094,"ShowYear":2014,"ShowDate":"\/Date(1393912800000)\/","PerformerID":22,"PerformerName":"Brad Paisley","SectionDescription":"Club II (West)","TotalSeatCount":4},{"RequestID":2076,"ShowYear":2014,"ShowDate":"\/Date(1393912800000)\/","PerformerID":22,"PerformerName":"Brad Paisley","SectionDescription":"East Field, West Field, Club I (East), Club II (West), Club III (North), Club III (South)","TotalSeatCount":6}]

    I have my non-profit waiting on the answer, so any help would be greatly appreciated…

    Grid responding with "Exception" #48490

    Peter Stoev
    Keymaster

    Hi bobby.wallace,

    We are not aware what that exception is and why the access to a JavaScript file is denied on your side. I suggest you to check whether all the required references are added correctly, whether their path is correct and whether the access to the Scripts folder is not restricted for some reason.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.