--- /dev/null
+<div id='csv_import_report'></div>
+
+<script type='text/javascript'>
+ function get_report(target, source, data){
+ $.ajax({
+ url: source,
+ success: function (rsp) {
+ $(target).html(rsp);
+ $(target).find('.paginate').find('a').click(function(event){ redirect_event(event, target) });
+ },
+ data: data,
+ });
+ };
+
+ function redirect_event(event, target){
+ event.preventDefault();
+ get_report(target, event.target + '', {});
+ }
+
+ $(document).ready(function(){
+ get_report('#csv_import_report', 'controller.pl', { action: 'CsvImport/report', 'no_layout': 1, 'id': [% SELF.background_job.data_as_hash.report_id %] });
+ });
+
+
+</script>
+