Posts

Showing posts from January 16, 2009

Partial Page Refresh ($a_report) and jQuery 1.3 new methods LIVE/DIE

If you are using "Partial Page Refresh" to navigate through the pages of a report, the new methods live and die should be useful. The "Partial Page Refresh" functionality uses the JavaScript function $a_report to request the report's body and then refresh the report without refreshing the whole page (AJAX). Before, we were able to bind a click event to DOM elements. The click event was not propagating itself to new DOM elements created dynamically after the bind action. For example: if you bind the click event to every rows of your report, you have to bind the click event to new rows generated after calling the function $a_report. Now, we are able to bind a live event to our DOM elements. The click event is now able to propagate itself to new DOM elements created dynamically after the bind action. You can try a working example of jQuery Event Live in APEX . Happy Web 2.0 coding! :)