<div dir="ltr"><div>Hi,</div><div><br></div><div>while generating reports, I want to show the user some kind of information about the status of the report generation. After each step, I want to alert him about the status. Alert is only an example for reducing the problem here.  will use the mdlSnackbar for it.</div><div><br></div><div>When he clicks on "create reports", an alert should show before the first step and then after each next step. In my reduced example below, the alerts are all shown at the end, AFTER the script.</div><div><br></div><div>How can I do this, I don't get it and could need some help...</div><div>Sabine</div><div><br></div><div>reducedExample>>html mdlButton</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">   o</span>nClick: (html jQuery ajax</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">             </span>script: [ :script | </div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                  </span>self session reportModel: RKAReportHead new.</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">   </span><span style="white-space:pre">     </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span>script alert: 'Reisekosten' inspect.</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                   </span>RKAPDFWriter new createCostReports: self session.</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                      </span>script alert: 'Belege' inspect.</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>RKAPDFWriter new createReceiptReports:  self session.</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                 </span>script alert: 'Fahrten' inspect.</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                       </span>RKAPDFWriter new createVehicleReports:  self session.</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                 </span>script alert: 'Buchungen' inspect.</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                     </span>RKAPDFWriter new createBookingReports:  self session ]);</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">              </span>with: 'test'</div></div>