I would like to know what actually happens on re-render (Ajax Call and DOM replacement) in Salesforce.
- The ajax call is made to get data.
- On completion of the ajax call, the DOM is constructed(the new part).
- The DOM Element is updated/replaced.
Is the DOM updated or replaced?
My Scenario :
I have a Visualforce Page which has multiple input items. I binds
keypress event to the
input elements on document ready. An action function is present which re-renders a section of the page.
Now, the input elements in the re-rendered panel do not have a
keypress event binding.
However, when I have the
document.ready() script in the re-rendered output panel, the
keypress event gets binded.
Can someone explain how exactly re-render works?