[Solved] Angular events, ng-click, do not work with other libraries Dojo, Knockout, KendoUI, ESRI JSAPI

Hope this helps anyone who has a similar problem – Turns out, this code was what was affecting the angular events: <!–ko if: someContext.ready() === true–> <div class=”ls-rapidReports”> <div ng-app=”myApp”> <div id=”rapidreportCtrl” ng-controller=”rrController”> <button type=”button” ng-click=”myClick()”>hehe</button> </div> </div> </div> <!–/ko–> So wrapping Angular components inside Knockout is BAD. solved Angular events, ng-click, do not work … Read more

[Solved] How does dojo/request handle html/javascript response?

As I explained you in your other questions, JavaScript is never automatically being executed when using AJAX requests (like dojo/request/xhr) out of security matters. If you want to execute JavaScript code that’s dynamically loaded, you will have to use the eval() function to parse it. However, I also told you already that the Dojo toolkit … Read more

[Solved] Show/hide to work as accordian

Please try following example. I hope it will help you…..:) <html> <head> <style> .head { border:1px solid #666; background-color:#f0f0f0; padding:3px; cursor:pointer; } .content { border:1px solid #666; background-color:#fff; height:100px; padding:3px; } </style> <script type=”text/javascript”> function hideShoowTab(ctb) { var ptb = document.getElementById(“ptbname”).value if(document.getElementById(“ptbname”).value==””) { document.getElementById(“content”+ctb).style.display=”block”; } else if(ptb==ctb) { if(document.getElementById(“content”+ctb).style.display==”block”) { document.getElementById(“content”+ctb).style.display=”none”; } else { document.getElementById(“content”+ctb).style.display=”block”; … Read more