Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
loader js file not working on iPhone WebView
posted

HI,

     I have been trying to make the charts work on webview of iPhone. The chart works well on the browser. But when i load the chart on a webView inside the application, I see that the loader js fails to load the chart on the screen.

It should be noted that the filepaths had to be changed from:

<link href="../content/style.css" rel="stylesheet" type="text/css" />

to:

<link href="style.css" rel="stylesheet" type="text/css" />

As seen above, the filename had to be mentioned without the filepath for it to work on webview.

But the loader js file does not load the charts on the screen.

The code is as follows:

<script src="modernizr.min.js"></script>
    <script src="jquery.min.js" type="text/javascript"></script>
    <script src="jquery-ui.min.js" type="text/javascript"></script>
    <script src="jquery.tmpl.min.js" type="text/javascript"></script>

    <script src="infragistics.loader.js" type="text/javascript"></script>

$.ig.loader({
            scriptPath: "../../js/",
            cssPath: "../../css/",
            resources: "igPieChart,igCombo"
        });

I believe the problem is in providing the source folders in the above loader fuction code. I can assure that the source files linking has been done perfectly. I am not sure if it is the problem with providing the resource parameters or a general problem of making jquery work in web view. Kindly assist in resolving the above issue. Any simple sample code would be much appreciated. Thanks in advance for your support.

Also, please provide link to a chart sample that does not involve loader javascript i.e; loading the required js files manually. I could not find these samples in the documentation.

Thanks and regards,

Shiva

Parents
No Data
Reply
  • 45
    posted

    Hi Shiva,

    unfortunally there is no online sample that does not use the loader. Here is an example of manually including the scripts (working for pie chart):

        <link href="../../../../Source/ClientUI/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" type="text/css" />
        <link href="../../../../Source/ClientUI/css/structure/modules/infragistics.ui.chart.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="jquery.min.js"></script>
        <script type="text/javascript" src="jquery-ui.min.js"></script>
        <script type="text/javascript" src="modernizr-1.7.min.js"></script>
        <script type="text/javascript" src="infragistics.util.js"></script>
        <script type="text/javascript" src="infragistics.dv.core.js"></script>
        <script type="text/javascript" src="infragistics.chart_piechart.js"></script>
        <script type="text/javascript" src="infragistics.dataSource.js"></script>
        <script type="text/javascript" src="infragistics.ui.chart.js"></script>
        <script type="text/javascript" src="infragistics.dvcommonwidget-en.js"></script>
        <script type="text/javascript" src="infragistics.dvcommonwidget.js"></script>

    You also might have a look here:

    http://help.infragistics.com/NetAdvantage/jQuery/2012.1/CLR4.0?page=igDataChart_Overview.html

    I hope this helps.
    Nikolai Dimitrov

Children