I am trying to display a composite data chart by following the Infragistics example at http://www.igniteui.com/data-chart/composite-chart. Please see the attached image for the error message that I'm getting. Chrome keeps telling me "dispose is not a function". Here is my code:
Hello jouin,
Thank you for posting in our forums!
One thing I noticed with your code is that you are including the IgniteUI files in the order: util.js, dv.js and core.js. The infragistics.util.js file is actually included in the infragistics.core.js file. This may be causing some issues and I would recommend removing the infragistics.util.js reference and including the other IgniteUI scripts in this order:
<script src="/js/infragistics.core.js" type="text/javascript"></script><script src="/js/infragistics.dv.js" type="text/javascript"></script>
If that doesn't help to resolve the issue, please let me know what version of IgniteUI you are using. You can find the version number located at the top of the script files if you open them in a text editor.
Looking forward to hearing from you.
I eliminated infragistics.util.js and I placed the files in the suggested order, but unfortunately it didn't help the problem.
I am using version 15.2.20152.1027
Oh I see. I tried to simply change the URL from http to https.
Thank you for the info and for all of your help.
I am glad to hear you found the source of the issue.
We do have a secure CDN available. An example usage of it would be:
https://secure-cdn-na.infragistics.com/igniteui/2015.2/latest/js/infragistics.dv.js
If you need anything else, please let me know!
Michael,
Thank you so much. After your sample application worked properly in my environment I discovered that, somehow, my project was still using version 14.2 of the infragistics.dv.js library. Thank you for your help on this matter.
I do have one other question. Why does Infragistics not offer a CDN over HTTPS? Or do they offer it and maybe I'm just not aware? My application requires HTTPS, which means I'm unable to use the CDN at all. If I was able to use the latest Javascript files from the Infragistics CDN, I believe I would have caught this much sooner.
Do you have any other code in your page that may be affecting this? Are you sure your script references are pointing to all the correct files?
I've put together a sample using the code you provided using the scripts from our CDN, along with a couple other elements from our composite chart sample you linked and I do not receive any of these errors.
I have attached this sample to this post. Please test this sample on your PC; whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the script versions we are using. My test was performed using version 15.2.20152.1027 in IgniteUI 2015 Volume 2.
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
Please let me know if I can provide any further assistance.
After following your instructions I am now getting the error message shown in the image attached to this post.