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 Reply Children
No Data