Pages

Saturday, December 4, 2010

Refresh the Notes Section

A recent CRM Development forum inquiry lead me to probe the DOM of an entity page to discover a simple way to refresh only the Notes area of that form.  The following two line script simply reloads the Iframe containing the notes, which can be helpful in situations where the notes have been changed through some ancillary mechanism, but you don’t want to reload the entire form to view the changes.

var notesFrame = document.getElementById("notescontrol");
notesFrame.src = notesFrame.src;