Javascript · JQuery

when() working with jQuery promise() then() it is probably deferred

Overview Asynchronous calls are very useful in UI programming as it does not block the interface. We can use callback methods to execute code when the asynchronous calls are completed. This is all well and good, however, chaining more than a few callbacks will render your code near obfuscated. Here comes Deferred to save the… Continue reading when() working with jQuery promise() then() it is probably deferred

Customization · Dynamics CRM · Javascript · Node · RequireJS · UI

Using Node and RequireJS with CRM

It is a good practice to separate your script into separate files to improve re-usability, maintainability, readability, and other-abilities. Traditionally, you would add the scripts into CRM form in order that they need to be loaded, CRM would then load them all before it executes anything. This has its impacts in performance and hence since… Continue reading Using Node and RequireJS with CRM

Dynamics CRM 2011 · Javascript · Web Resource

CRM 2011: Referencing Web Resources (Relative Url/Path)

This is a great functionality of CRM 2011. CRM will simulate directories so that you can add references to other web resources using relative url. Say you are writing a html web resource that uses libraries, custom javascript files and stylesheets. – mypage.html – jquery.js – myscript.js – mystyle.css What you need to do is… Continue reading CRM 2011: Referencing Web Resources (Relative Url/Path)