Menu
Download Free Trial

JavaScript Error after mounting ASP.NET web application to IIS

Hi Flexmonster support team,
I am using a trial version of 2.4 version of Pivot control. When I run solution from Visual Studio I can see the control being populated with SSAS Cube data.
When I mount the same application to IIS as a web application, I get a JavaScript error ‘$’ is undefined for the following code.
        var pivot = $(“#pivotContainer”).flexmonster({
            toolbar: true,
            report: {
                dataSource: {
                    dataSourceType: “microsoft analysis services”,
 
Could You please help me to troubleshoot this issue?
 
 

2 answers

Public
Roman Petrusha Flexmonster 7 days ago

Hi Amit,

It looks like you experiencing a migration issue. jQuery is not necessary for the new version and it is not included into HTML in download package by default. So you have two ways to resolve the issue.

  1. Add the following lines to your code:
    <script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
    <script type="text/javascript" src="flexmonster/flexmonster.js"></script>

    instead of 

    <script type="text/javascript" src="flexmonster/flexmonster.js"></script>
  2. Use new syntax to insert the component:
    var pivot = new Flexmonster({
    container: "#pivotContainer",
    toolbar: true,
    report: {
    dataSource: {
    dataSourceType: "microsoft analysis services"
    }
    }
    });

Please find more information about migration here: http://www.flexmonster.com/doc/migration-guide-from-2-3-to-2-4/

Does it work for you?

Regards,
  Roman

Public
Amit Shinde 2 days ago

Thanks Roman that helped

Please login or Register to Submit Answer