JavaScript Events
JavaScript events are related to forms and the controls inside the forms only. Each form has OnLoad and OnSave events, which can accept JavaScript. Each field also has the OnChange event, which can also accept JavaScript. This new version of CRM 2011 also adds new events for the Tab control to track the tabStateChange event and to IFRAMEs to track the OnReadyStateComplete event (see Figure 23.28). This new version also introduces new javascript objects to easily access the from fields values and context information through the Xrm object. The previous version used to use the crmForm.all object collection, while this collection still exists in CRM 2011 for compatibility, the new Xrm.Page object collection is the recommended ...
Get Microsoft Dynamics CRM 2011 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.