I have this code on my page and i want to display a graph but I get an error ReferenceError:initialize is not defined and also google is not defined. which means that something is wrong on my initialize() function. Here is the complete code on plunkr. http://plnkr.co/edit/x1Ai9ynZuZclP11VEV0m
Here is the part i know is giving me error
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script src="http://static.loanstreet.com.my/assets/calculator/calcpack.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
initialize();
mainFlow();
})
</script>
My aim is to get this similar result http://loanstreet.com.my/calculator/home-loan-and-entry-cost-calculator minus all the css stuffs.
Does anyone know what I am doing wrong? I read somewhere to do this but it still gives me error. <body ng-app="IpadAppApp" ng-strict-di>
Any help appreciated.
$
will give you a ReferenceError. On top of that, it looks like you're stealing the calcpack.js code, which has been intentionally obfuscated to prevent such a thing. – nickgraef Feb 12 '15 at 6:50<script src="script.js"></script>
. You're welcome for pointing out two coding errors and one bad ethical practice. I'm glad to hear your issue was resolved. – nickgraef Feb 12 '15 at 17:02